Re: crontab problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/12/2007, goommy <iloveyunxuan@xxxxxxxxx> wrote:
> redhat-listhii,list!
>
> I have a trouble with crontab!
> I want to run a script every two times between 9:00 to 15:00 from monday to freiday!
>
> And i add "*/2 9-15 * * 1-5 /path/to/someshell.sh" with crontab.
> But after 15:00 the script still running !
> # more  /var/log/cron | grep someshell.sh
> Dec  4 14:54:01 hexuncms-1123 crond[4867]: (root) CMD someshell.sh
> Dec  4 14:56:01 hexuncms-1123 crond[5004]: (root) CMD someshell.sh
> Dec  4 14:58:01 hexuncms-1123 crond[5103]: (root) CMD someshell.sh
> Dec  4 15:00:01 hexuncms-1123 crond[5197]: (root) CMD someshell.sh
> Dec  4 15:02:01 hexuncms-1123 crond[5863]: (root) CMD someshell.sh
> Dec  4 15:04:01 hexuncms-1123 crond[5902]: (root) CMD someshell.sh
>
*/2 in position 1 means "run every two minutes"
9-15 in position 2 means "as long as the hour part of time is any
value between 9 and 15 inclusive"

Kind regards,

Herta

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux