By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,866 Members | 1,704 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,866 IT Pros & Developers. It's quick & easy.

set shell script on cron tab

P: 27
Hi All,

how will i set shell script on cron tab to execute the script?

please help me.

Thanks!
Vaskar
Feb 27 '08 #1
Share this Question
Share on Google+
1 Reply


ashitpro
Expert 100+
P: 542
Hi All,

how will i set shell script on cron tab to execute the script?

please help me.

Thanks!
Vaskar
save your shell script somewhere e.g. /home/user/test.sh
use 'crontab -e' command to open the configuration file.
schedule your job as follows:
hour min day month year command

Suppose you want to execute shell script every day at 18:30:

18 30 * * * /bin/sh /home/user/test.sh

save the file.
restart the cron service:
/etc/init.d/cron restart

Thats it
Feb 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.