![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum 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 08:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 | ||
|
|
|
#3
|
|||
|
|||
|
I actually searched the forum and read the cron and crontab article. I did not find a resolution to this problem. Which is why I posted it.
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
They are not I just changed the script name for posting and forgot to change on my reply.
|
|||
| Google The UNIX and Linux Forums |