Consider the following crontab entry: “59 23 13 * 5 /wipe.disk” What time will this cronjob run?

11:59PM

Showing Answers 1 - 8 of 8 Answers

min_max

  • Mar 13th, 2006
 

That means: on Black Friday, your hard drive will get wiped out.

==> (on 13th and Friday) 23:59, /wipe.disk will be running

  Was this answer useful?  Yes

sree_61113

  • Jan 14th, 2007
 

59--->Minut,  23 --->Hour, 13---->Date,  * ---> Means every month,   5---->Friday( 0 represents Sunday and 6 represents Saturday)

So the cronjob does the following.

The script /wipe.disk will be run at 11:59pm on 13th of every month and every friday.

  Was this answer useful?  Yes

mohan

  • Feb 6th, 2007
 

it wont work . check it.here - 59 is min, 23 is hour , 13 is month 12+1 = 1 jan, here no date mentioned, 5 is friday

  Was this answer useful?  Yes

Kira

  • Apr 11th, 2007
 

13 is not a month!!!! it's a date
next field contains "*",  which means EVERY month


Crontab syntax :


*     *   *   *    *  command to be executed
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)

  Was this answer useful?  Yes

Vincent Andhuvan

  • Oct 28th, 2007
 

The script /wipe.disk will be run at 11:59pm on 13th of every month and every friday.

  Was this answer useful?  Yes

vmgarg

  • Nov 4th, 2008
 

I will go in more details.

On every friday, cron will checkup the date (irrespective of any month).
If on friday, the date happens to be 13th,
then,
at 23:59 wipe.disk will be executed.

NOTE:- As per my version, wipe.disk will get executed only on those, fridays that are dated 13th.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions