03-24-2005
I don't know what is happening. Let me give a little scope of my problem:
1) An email is received, and it is forwarded to a shell script.
2) the main script copies entire email contents to a file
3) the main script calls another script to extract the email address of the sender (the previous problem that I mentioned)
4) the main script then calls another script to validate that email address (I have a text file that contains all of the valid emails), and the other script also writes some information such as the users name, etc, to a file name OWNER
This is where I'm having a problem now. If I invoke the main script (the same script invoked when an email is received) from the command prompt, it works fine. But when an email is received, and the main script is invoked, everything works, except #4. It seems like its sending empty strings as the parameters to the script (I tried outputing the values of the variables I'm passing as parameters, and they have the correct values in the main script. Then I also output the variables in script that is invoked, but it outputs empty lines)
I dont even know how to ask my question, I'm just venting now I guess. If you have any suggestions for me, please throw'em at me, if not, thanks for reading.
By the way, here's how I've tried calling the script from within the main script:
/path/to/script ${arg1} ${arg2}
/path/to/script `echo ${arg1} ${arg2}`
Maybe I just need to take a break, and look at it again, maybe I'm just missing something.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everybody,
i learning unix now only.Can u pls guide me in invoking a shell script.Actually i need to know how to write the command for invoking the shell script.Suppose the shell file name is count , then how i will write the command.
thanks (1 Reply)
Discussion started by: gopa_mani
1 Replies
2. Shell Programming and Scripting
Hey all,
My boss tasked me with the job to write a script which would invoke various java programs, the thing is I don't know much about shell scripting so would you experts help me out?
Here is the requirement
- 2 applications written in java: App_A and App_B
-... (0 Replies)
Discussion started by: mpang_
0 Replies
3. Shell Programming and Scripting
hey, can I invoke the same script twice simultaneously? I want both instances to run at the same time with different parameters. Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies
4. Shell Programming and Scripting
Hi,
I just tried to call a simple shell script from a cgi script writing in c programming.But,it is not working.i will be grateful if anyone can show me the problems going on as i m new to c and oso shell script.Thanks.
-Here is my shell script of call the 'pc shut down' system command in... (1 Reply)
Discussion started by: carolline
1 Replies
5. Shell Programming and Scripting
hi all,
i recieve a file from other server, on a daily basis .... but the time of arrival is unpredictable ....
i need to move this file to another directory before the next file arrives ...
i have written a script that does this op and performs some manipulations on the data...
but i... (2 Replies)
Discussion started by: sais
2 Replies
6. Shell Programming and Scripting
Hi all,
Iam writing a KSH script which needs to export dispaly to Xwindows and then involke a sh script .. But a core file is getting genrated for reasons not known to me.
Please check i need incorporate below mentioend code in my script which iam not abel to ..
export DISPLAY=`who am i |... (1 Reply)
Discussion started by: rahman_riyaz
1 Replies
7. Shell Programming and Scripting
Hi all,
I use the perl script to invoke the bash script. and now there is a problem.
my bash script lists as follows:
and I use perl run this test scripts
now the problem is when I run the perl script I find there is nothing recorded in the file /tmp/jdk.txt (2 Replies)
Discussion started by: Damon_Qu
2 Replies
8. Emergency UNIX and Linux Support
I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts
1. master script. I use this one to call other four scripts to do database work.
2. db_backup_1 and log_backup_1
3. db_backup_2 and log_backup_2
in master script, I want to... (4 Replies)
Discussion started by: duke0001
4 Replies
9. Shell Programming and Scripting
Is it possible that a shell script invokes a windows mailing application like Lotus Notes and creates a mail and sends it ? (2 Replies)
Discussion started by: csrohit
2 Replies
10. Shell Programming and Scripting
I have script below
#! /bin/bash
if
then
echo "JBoss is NOT running"
else
echo "JBoss is running"
fi
If JBoss is NOT running need to be invoke another script i.e jboss startup script /home/vizion/Desktop/jboss-4.2.3.GA/bin/run.sh script from other script not... (5 Replies)
Discussion started by: Chenchireddy
5 Replies