Thursday, May 26, 2011

Add cronjob using shell script

have your script ...

a. crontab -l > $tmpfile
b. edit $tmpfile
c. crontab $tmpfile
d. rm $tmpfile

No comments: