LinuxQuestions.org
Help answer threads with 0 replies.
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 03-18-2005, 06:47 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,610

Rep: Reputation: 45
howto start a perl script only from tuesday to friday at 8.00 am ?


hi

howto start a perl script from cron every morning from tuesday to saturday at 8.00 am ?

kind regards
cccc

Last edited by cccc; 03-18-2005 at 07:04 PM.
 
Old 03-18-2005, 06:58 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,093

Rep: Reputation: 299Reputation: 299Reputation: 299
Sounds like a job for cron -- here's the line you'd add to crontab:

0 8 * * tue-sat /path/to/perl/script

Depending on your cron version, you may have to give a comma separated list of days in the 5th field (some don't understand the tue-sat notation). Reading man crontab will tell you more.
 
Old 03-18-2005, 07:06 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,610

Original Poster
Rep: Reputation: 45
sorry, but my cron seems doesn't understand the tue-sat notation.
 
Old 03-18-2005, 07:29 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,093

Rep: Reputation: 299Reputation: 299Reputation: 299
Then use 2-6 or 2,3,4,5,6 -- I think that will work with about every modern cron.
 
Old 03-19-2005, 04:23 AM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,610

Original Poster
Rep: Reputation: 45
thanks !
 
  


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
Howto start script at boot ? hendrixx Programming 3 11-15-2005 01:42 PM
Perl Script Program (need) : SpamAssassin-ClamAV-Procmail-Howto cyberjames Slackware 8 01-27-2005 11:53 AM
howto control a perl script by a hardware switch jujo Linux - Software 0 08-17-2004 03:24 PM
howto send a mail with attachment via perl script ? cccc Programming 24 03-05-2004 07:49 PM
Help with Howto start a shell script at boot draven Linux - Newbie 7 03-03-2004 11:20 PM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration