bengalliboy
MIS
Greetings!
I am trying to execute one korn shell script through crontab, and scheduler. The crontab runs my script okay. The way it is set up is, the script is a korn shell script that basically calls another korn shell script.
When It is run, instead it doing what it is supposed to do on the 2nd script , it just prints the second script and quit.
Here is an example:
Script 1:
#!usr/bun/ksh
echo "Starting 2nd script..."
ksh MyScript.scr
Here is MyScript.scr
#!usr/bun/ksh
cat a b >c
echo "Done"
exit
When MyScript is executed it works okay that is cat a and b and puts in c
but when the script is run from script 1 it just prints the result....
What am I doing wrong?
TIA
I am trying to execute one korn shell script through crontab, and scheduler. The crontab runs my script okay. The way it is set up is, the script is a korn shell script that basically calls another korn shell script.
When It is run, instead it doing what it is supposed to do on the 2nd script , it just prints the second script and quit.
Here is an example:
Script 1:
#!usr/bun/ksh
echo "Starting 2nd script..."
ksh MyScript.scr
Here is MyScript.scr
#!usr/bun/ksh
cat a b >c
echo "Done"
exit
When MyScript is executed it works okay that is cat a and b and puts in c
but when the script is run from script 1 it just prints the result....
What am I doing wrong?
TIA