LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2007, 08:31 PM   #1
Icantprintinlinux
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Rep: Reputation: 0
Crontab


* 23 * * 3 mysqldump -u root -p > filepath_filename.sql

Hey so that will run every Wednesday, but I want that to run on every Monday,Wednesday, and Friday. How would I do that?
 
Old 10-16-2007, 08:45 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
0 23 * * 1,3,5 mysqldump -u root -p > filepath_filename.sql

Last edited by AlucardZero; 10-16-2007 at 09:11 PM.
 
Old 10-16-2007, 08:46 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Icantprintinlinux View Post
* 23 * * 3 mysqldump -u root -p > filepath_filename.sql

Hey so that will run every Wednesday, but I want that to run on every Monday,Wednesday, and Friday. How would I do that?
Code:
0 23 * * 1,3,5 mysqldump -u root -p > filepath_filename.sql
The 0 in pos 1 because you *don't* want it to run every minute ...


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab tommytomato Ubuntu 4 07-03-2007 04:15 PM
crontab tux_processor Linux - General 5 06-07-2007 11:10 PM
using crontab goodolday Linux - Newbie 1 04-26-2005 08:16 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 01:35 PM
Crontab WiWa Linux - Software 1 10-06-2003 06:20 PM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration