Home › Questions › Use Crontab to Execute a Script only on Weekdays
This topic contains 1 reply, has 2 voices, and was last updated by admin 2 years, 1 month 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.
Try below command in crontab to run the command only on weekdays.
* * * * 1-5 command
1-5 indicates Monday to Friday
You can use BBCodes to format your content.Your account can't use Advanced BBCodes, they will be stripped before saving.
Mail (will not be published) (required):
Enter the destination URL
Or link to existing content