hi,
I have written a shell script which does nothing but just references to another perl script, this cause i have to pass a parameter to the perl script that im supposed to run. Now, i am trying to run the script as a cron job, but it doesnt work. can anyone help me out here.
the cron, i am defining as < 30 1 2 3 2 /home/raghu/script2.ksh > /home/raghu/data1.txt >
the shell script is
< #!/usr/bin/ksh
. /etc/profile
touch /home/raghu/test1.txt
echo "Automation script1.pl perl script is going to start" >> /home/raghu/logs/file1.log
$sc=/home/raghu;
cd $sc
`script1.pl S & ` >
now i can get the script2.ksh to work fine, but when i put it in the cron it doesnt work.... only the first two lines i.e the file test1 is created and the echo command gets executed, but the rest i.e the script1.pl doesnt get executed. whereas when i run it on the command line, script2.ksh works fine. Im knida stuck and donno what to do further.. any help is deeply appriciated.