[Ilugc] crontab not to run in night time

  • From: rajusns@xxxxxxxxx (Raju s)
  • Date: Thu, 19 Nov 2015 16:27:05 +0530

On Wed, Nov 18, 2015 at 3:38 PM, Balaji G <fossbalaji at gmail.com> wrote:




On Wed, Nov 18, 2015 at 3:27 PM, Raju s <rajusns at gmail.com> wrote:

Hello,

We can set the time interval for scripts to run thro' crontab
Is it possible to make crontab not to run at night.
Or can we fix a from and to time for a script to run.

Thanks
Raju
_______________________________________________
yes .. It's possible.

you can specify hours .

crontab -e

# m h  dom mon dow   command

h - hours ( you can specify your timing here)

(e.x) 7 - 18 ( 7am  to 6pm)

Hope it helps.

---------------------------------
Thanks for the info. It works
 i have added
*/30 09-18 * * 1-6
to work every 30 mnts from 9 to 18 hrs from monday to saturday

Raju

Other related posts: