|6-19-03, 06:32 PM||#1|
Join Date: Aug 2002
cron job 2 commands?
I have a crontab setup to update awstats and it works successfully.
Now I want to execute a cgi script to backup mysql once a day.
Can you have 2 commands in a crontab? If so, what's the format? By that I mean 1 command on each line, is a empty line required or not required between the lines, all one line, etc.
Or do I need to create a script to execute both commands and point the crontab to that script?
Also, the awstats is updated once an hour and I want the mysql backed up once or twice a day...
An example would sink in more with me than an explanation.
|6-19-03, 08:42 PM||#2|
Founder - Xinil.net
Join Date: Mar 2002
Location: Orange County
just make another script right under the one above it. Example:
55 23 * * * /usr/local/bin/php /www/x/xinil/htdocs/...
30 * * * * /usr/local/bin/webalizer -c /www/x/xinil/etc/webalizer.conf -p
Also, make sure you have two line spaces under those
MyAnimelist.net - Get your own free Anime list!