You are not logged in.

#1 2004-09-19 03:43:27

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Cron

I want  the system to do something at 7.43 every day
how can I do that please?
I was used to editing crontab, but now I'm in a bit of trouble!

secondly :

If a user want's something to be done at 5.56 every day par example , how can he do that ?

And this of course without building a script to check n seconds and see if it time to work !
Thank you in advance !!!
vixie cron, old habbit (not rabbit  smile  )


Forever newbie !!!

Offline

#2 2004-09-19 14:09:08

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Cron

7:43 daily:

43 7 * * * command

Add that line to your crontab using crontab -e , and you're set. The first five fields are minute hour day month dow(day of week), if you're wondering.

For regular users, run crontab -e as the user, and add add a line like the one I gave for each thing you want done.

You can add comments to the file on lines starting with a "#"
Another ex:

#runs command at 5:56 every day
56 5 * * * command

The suggestion box only accepts patches.

Offline

#3 2004-09-20 18:20:00

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: Cron

Thank you!!!
I wa used to editing /etc/crontab
I was used to Vixie cron !!!!


Forever newbie !!!

Offline

Board footer

Powered by FluxBB