Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Setting up a cron job< Next Oldest | Next Newest >
Thulemanden Offline





Group: Members
Posts: 95
Joined: Sep. 2005
Posted: July 15 2006,08:10 QUOTE

I need to run the statistics application Webalizer in command mode every hour. I know this:  0 1 * * * webalizer

I recall it is best with making a file with the command and then have this files executed on boot (by crond?), so the file runs webalize each hour.

But I recall no more the exact way.   :(  

I need to know

1) The name I have to call above file
2) where to put it
3) what to put in it
4) how to have the file executed on boot

or better :)

Hope someone has the time and effort to help me on this.

Thank you


--------------
Linuxcounter member #322220. http_//www.linuxcounter.org
Back to top
Profile PM WEB 
Thulemanden Offline





Group: Members
Posts: 95
Joined: Sep. 2005
Posted: July 15 2006,10:55 QUOTE

I managed to install kcron and set this up. Hope it helps. :D

Which file can I now check to see the code?


--------------
Linuxcounter member #322220. http_//www.linuxcounter.org
Back to top
Profile PM WEB 
mulanee Offline





Group: Members
Posts: 28
Joined: Mar. 2006
Posted: July 15 2006,17:15 QUOTE

Just command crontab -e

--------------
Emmanuel
Back to top
Profile PM WEB 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: July 16 2006,12:04 QUOTE

If I remember correctly you have to include the full path to commands in the cron entry, i.e. 0 1 * * * /full/path/to/webalizer
Back to top
Profile PM 
Thulemanden Offline





Group: Members
Posts: 95
Joined: Sep. 2005
Posted: July 29 2006,22:30 QUOTE

Quote (skaos @ July 16 2006,09:04)
If I remember correctly you have to include the full path to commands in the cron entry, i.e. 0 1 * * * /full/path/to/webalizer

OK, I did that.

After installing Kcron, the command crontab does not exist, but Kcron seem to work outside of crontab. Maybe it's using cron directly?


--------------
Linuxcounter member #322220. http_//www.linuxcounter.org
Back to top
Profile PM WEB 
14 replies since July 15 2006,08:10 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Setting up a cron job

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code