Support & Downloads

Quisque actraqum nunc no dolor sit ametaugue dolor. Lorem ipsum dolor sit amet, consyect etur adipiscing elit.

s f

Contact Info
198 West 21th Street, Suite 721
New York, NY 10010
[email protected]
+88 (0) 101 0000 000
Follow Us

Forum

Use Crontab to Exec...
 

Use Crontab to Execute a Script only on Weekdays  


Alan
Posts: 35
 Alan
(@alan)
Eminent Member
Joined: 4 months ago

How to schedule in crontab to run a command or shell script only on working days (Monday to Friday). I tried the below one, but its running even on weekends also.

* * * * * command

Expecting the answer as soon as possible. Advance Thanks bro.

1 Reply
admin
Posts: 93
Admin
(@mjv119gmail-com)
Member
Joined: 5 years ago

Try below command in crontab to run the command only on weekdays.

* * * * 1-5 command

1-5 indicates Monday to Friday

Reply

Leave a reply


 
Preview 0 Revisions Saved
Share:

Please Login or Register