|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Join Date: Aug 2002
Posts: 100
Reputation: 5
|
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. Chris |
|
|
|
|
#2 |
|
Founder - Xinil.net
Join Date: Mar 2002
Location: Orange County
Posts: 466
Reputation: 14
|
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! |
|
|
|
|
#3 |
|
Join Date: Aug 2002
Posts: 100
Reputation: 5
|
Thanks!!
Chris |
|
|
![]() |
| Thread Tools | |
|
|