GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Cron question (https://gfy.com/showthread.php?t=559976)

DarkPeter 01-04-2006 01:09 AM

Cron question
 
I need a script to be runned by cron each 4 minutes so i should use

*/4

in minutes field. But what if i need that script to be runned each 4 minutes but exactly at 00, 04, 08, 12, 16, 20, 24, etc.? (= not for example 03, 07, 11,...) May i use

00,*/4

as correct syntax? It should do that in first 00 it will be runned although previous run could be at 59 and then it goes to each 4 minutes. Am i guessing it well or is it nonsense?

chaze 01-04-2006 01:13 AM

hey peter,

Check out this free tool

http://www.clockwatchers.com/cron_tool.html

Love that thing

Tempest 01-04-2006 01:20 AM

Quote:

Originally Posted by DarkPeter
I need a script to be runned by cron each 4 minutes so i should use

*/4

in minutes field. But what if i need that script to be runned each 4 minutes but exactly at 00, 04, 08, 12, 16, 20, 24, etc.? (= not for example 03, 07, 11,...) May i use

00,*/4

as correct syntax? It should do that in first 00 it will be runned although previous run could be at 59 and then it goes to each 4 minutes. Am i guessing it well or is it nonsense?

Simply */4 should do it...

J.P. 01-04-2006 02:00 AM

You can control it like this:

0-59/4

or if you want it to run at 01, 05, ...

1-59/4

Hope this helps

LiveDose 01-04-2006 02:02 AM

Quote:

Originally Posted by chaze
hey peter,

Check out this free tool

http://www.clockwatchers.com/cron_tool.html

Love that thing


very nice. :thumbsup

uvort 01-04-2006 02:12 AM

Quote:

Originally Posted by chaze
hey peter,

Check out this free tool

http://www.clockwatchers.com/cron_tool.html

Love that thing

Nice tool indeed. :thumbsup


All times are GMT -7. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123