You are not logged in.

#1 2008-11-17 16:49:11

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Run a cron job every minute

Hi,

I would like to run a cron job every minute.
I can find cron.hourly, cron.daily, cron.weekly, cron.monthly in my /etc, but no cron.minutly.

Can I get it? What should I do?

Thanks!
Nathan

Offline

#2 2008-11-17 16:53:59

dw
Member
From: Vienna, Austria
Registered: 2006-11-25
Posts: 160

Re: Run a cron job every minute

hi lonelystar.

crontab -e 
*/1 * * * * echo "job every minute"

should do what you want!

Offline

#3 2008-11-17 16:55:41

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Run a cron job every minute

run

crontab -e

. this opens an editor. therein you type :

#min hour day month weekday command
*/1   *    *    *    *     <your command>

dw was faster smile

Last edited by DonVla (2008-11-17 16:56:42)

Offline

#4 2008-11-17 23:04:05

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: Run a cron job every minute

Works, thanks!

Offline

Board footer

Powered by FluxBB