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?
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
how do i change it to for every 30 minutes rather than 30minutes after the hour. May be I was checking it incorrectly. Because my intention is to do it every half hour.