Home Forums Unix & Linux Use Crontab to Execute a Script only on Weekdays

Tagged: 

  • Author
    Posts
  • admin
    Keymaster
    Post count: 111

    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.

  • admin
    Keymaster
    Post count: 111

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

    * * * * 1-5 command

    1-5 indicates Monday to Friday

Reply To: Use Crontab to Execute a Script only on Weekdays
Your information: