You are not logged in.

#1 2014-05-15 13:57:04

publicus
Member
Registered: 2014-01-01
Posts: 129

[RESOLVED]How to use cron and how does cron.daily directory gets used?

Hello,

I have a script that I'd like to run every day (at night.)  I was thinking of modifying /etc/crontab and then putting the script into /etc/cron.daily in order to run this once a day... However, I don't know one thing, would this cause my script to run twice?  Once is enough.  I know I can set it to run at 23:30 at night in crontab, but does its location in cron.daily predisposes it to run again at a later time?

Last edited by publicus (2014-05-16 15:50:32)

Offline

#2 2014-05-15 14:24:57

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [RESOLVED]How to use cron and how does cron.daily directory gets used?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2014-05-15 14:32:56

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [RESOLVED]How to use cron and how does cron.daily directory gets used?

If you put it in cron.daily and add an entry to crontab, it should be run twice.

Offline

#4 2014-05-15 19:50:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [RESOLVED]How to use cron and how does cron.daily directory gets used?

Offline

#5 2014-05-16 15:50:00

publicus
Member
Registered: 2014-01-01
Posts: 129

Re: [RESOLVED]How to use cron and how does cron.daily directory gets used?

Thanks all.  lucke, that's what I'm suspecting.

Offline

Board footer

Powered by FluxBB