cronjob at specific time
cronjob at specific time
Hello,
I am trying to setup a cronjob which would run every minute at specific time for example 09:00:00, 09:01:00 and i am setting the same while watching clock so it can sync with correct time and can be run at 00 seconds every minute. But it only runs at 01 second of every minute for example 09:00:01, 09:01:01. How can i achieve the same using vesta control panel. Please suggest, thanks
I am trying to setup a cronjob which would run every minute at specific time for example 09:00:00, 09:01:00 and i am setting the same while watching clock so it can sync with correct time and can be run at 00 seconds every minute. But it only runs at 01 second of every minute for example 09:00:01, 09:01:01. How can i achieve the same using vesta control panel. Please suggest, thanks
Re: cronjob at specific time
I think something like this:
every minute
in period 9-10
Code: Select all
*/1 9-10 * * * /path/to/script
in period 9-10
Re: cronjob at specific time
Thanks for your reply, but scripts run 1st second of every minute instead of 0th second of min. That was my question about.
I want it should run every min but at 00 second on every minute not 01 second of every minute. I hope this makes sense to you.
I want it should run every min but at 00 second on every minute not 01 second of every minute. I hope this makes sense to you.
skurudo wrote:I think something like this:
every minuteCode: Select all
*/1 9-10 * * * /path/to/script
in period 9-10
Re: cronjob at specific time
Cron will make this fail with seconds. It's how it work. There is ways to accomplish, what you want - demon script, service script, mixed script/db and command at. I recommend use at, it's simpler.
There is guide for you. Hope it will help.
http://linuxaria.com/howto/manage-plann ... at?lang=en
PS: Can you tell, where you need such accuracy?
There is guide for you. Hope it will help.
http://linuxaria.com/howto/manage-plann ... at?lang=en
PS: Can you tell, where you need such accuracy?