Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Mon Aug 17, 2009 11:08 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
For completeness' sake, I'll note that multiple commands can be placed on a single line, separated by semicolons. Instead of writing a script, you could put the line 0 0 * * * /etc/init.d/apache2 stop ; perl /var/path/to/my/backup/script ; /etc/init.d/mysql restart ; /etc/init.d/apache2 start into your crontab. When the first command completes, the second one will run, and so on.

There might be line-length limitations in crontab, so I wouldn't go overboard and generate huge strings of commands.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group