LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto start a perl script only from tuesday to friday at 8.00 am ? (https://www.linuxquestions.org/questions/linux-newbie-8/howto-start-a-perl-script-only-from-tuesday-to-friday-at-8-00-am-303344/)

cccc 03-18-2005 07:47 PM

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

btmiller 03-18-2005 07:58 PM

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.

cccc 03-18-2005 08:06 PM

sorry, but my cron seems doesn't understand the tue-sat notation.

btmiller 03-18-2005 08:29 PM

Then use 2-6 or 2,3,4,5,6 -- I think that will work with about every modern cron.

cccc 03-19-2005 05:23 AM

thanks !


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