PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > .htaccess / Scheduled Jobs
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 6-19-03, 06:32 PM   #1
CKH
 
CKH's Avatar
 
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
CKH is offline  
Old 6-19-03, 08:42 PM   #2
Xinil
Founder - Xinil.net
 
Xinil's Avatar
 
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!
Xinil is offline  
Old 6-19-03, 11:17 PM   #3
CKH
 
CKH's Avatar
 
Join Date: Aug 2002
Posts: 100
Reputation: 5
Thanks!!

Chris
CKH is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:47 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.