![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Local shell script need to be executed on a remote linux box | rajeshomallur | Linux | 6 | 05-02-2008 10:05 AM |
| perl - why is the shell script executed before the print command? | mjays | Shell Programming and Scripting | 3 | 09-21-2007 02:49 AM |
| Unix shell script couldn't be executed. Pls help! | duke0001 | Shell Programming and Scripting | 8 | 09-14-2006 08:15 PM |
| Help - Need simple example of VI executed in shell script | corsart | AIX | 2 | 06-03-2006 03:25 PM |
| bash scripting cannot executed in crontab | jimmbp | Shell Programming and Scripting | 6 | 11-11-2005 07:23 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Shell script doesn't get executed using crontab
I have the following crontab entry to run a shell script for every 30 minutes of every day:
30 * * * * $HOME/main.sh > $HOME/main.log 2>$HOME/error.log after I created the crontab file I have also done: $crontab my_crontab I also check to make sure it exists, by using the following command. $crontab -l I get the crontab entry- 30 * * * * $HOME/main.sh > $HOME/main.log 2>$HOME/error.log But, why is the shell script not getting executed every minute? |
| Forum Sponsor | ||
|
|
|
|||
|
I didn't think the problem was in environment variables- because the following works:
45 13 * * 1-5 $HOME/main_ics.sh >> $HOME/main_ics.log 2>>$HOME/error.log but not when I change the cron to: 30 * * * * $HOME/main.sh > $HOME/main.log 2>$HOME/error.log |
|
||||
|
Quote:
|