Hi All,
I am not sure whether I am asking this on right forum or not but I have problem while setting the cron job.
I am trying to set the job run time for .sh file from every 1 hour to 45 min time interval, but unable to set the time.
I tried these two methods to set the time
0-59/45 * * * * * * * * exec /appl/prod/bin/test.sh >/dev/null 2>&1
*/45 * * * * * * * * exec /appl/prod/bin/test.sh >/dev/null 2>&1
and in both cases getting this error - crontab: error on previous line; unexpected character found in line.
Please suggest. Thanks in advance.
I am not sure whether I am asking this on right forum or not but I have problem while setting the cron job.
I am trying to set the job run time for .sh file from every 1 hour to 45 min time interval, but unable to set the time.
I tried these two methods to set the time
0-59/45 * * * * * * * * exec /appl/prod/bin/test.sh >/dev/null 2>&1
*/45 * * * * * * * * exec /appl/prod/bin/test.sh >/dev/null 2>&1
and in both cases getting this error - crontab: error on previous line; unexpected character found in line.
Please suggest. Thanks in advance.