Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
how to Call a shell script
Name: Amrish Date: August 12, 2002 at 17:06:07 Pacific
Comment:
Hello everybody, I am wondering how to call a shell script into another script if you are working in a same directory? Please provide examples if possible
Name: Sunil Jasper Date: August 13, 2002 at 02:28:06 Pacific
Reply:
Hi Amrish If you want to call a shell script inside a script , You can directly enter the script filename at the place where you want to execute. For eg
fileA.sh ======== echo "Inside File A"
file2.sh ======== echo "Inside File B"
If you want to call file2.sh inside file1 do the following fileA.sh ======== echo "Inside File A" file2.sh
But file2.sh must have execute permission or use sh
Have a nice day Sunil
0
Response Number 2
Name: Jerry Lemieux Date: August 13, 2002 at 17:40:30 Pacific
Reply:
There is also:
exec fileB.sh
or
. ./fileB.sh
There are times when difference invocations are appropriate. The first example may be appropriate for a menu system where you don't want scripts calling another script from within your shell. You end up with many child shells. The second example is good for when you have a script that contains a bunch of variables that you want to maintain separate from your script. When you source them in, they become visable to your script and can be used for further processing.
Summary: I'm new with AWK script. I have an awk script and inside this script, I want to call other shell script or awk script to run. How to call other shell script/awk script in my awk script Please help me....
Summary: Hello Everyone i want to know if anyone can help me in writing this script that forwards the mail with subject "SMS Message" to the mailbox folder and discards the other mail (i.e without that subject...