LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices

Reply
 
Search this Thread
Old 11-06-2006, 11:15 AM   #1
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
cron job and boot command


Can anyone supply detailed and full information on how to run webalizer every hour?

I expect the command is

59 * * * * /usr/bin/webalizer

but then what?

Also I need to start /opt/wwwroot/bin/ httpd on boot.
 
Old 11-07-2006, 04:36 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Thulemanden
Can anyone supply detailed and full information on how to run webalizer every hour?

I expect the command is

59 * * * * /usr/bin/webalizer

but then what?
I think that is a correct entry for a crontab file, but I don't recall DSL providing cron (but you could check myDSL repository to see if something is available). In any case (as of v2.4) cron isn't running by default, so you would need to start it in /opt/bootlocal.sh.

Quote:
Also I need to start /opt/wwwroot/bin/ httpd on boot.
You need to start this in /opt/bootlocal.sh which is run as part of the startup sequence. You also need to make sure that bootlocal.sh gets saved (according to the list in /home/dsl/.filetool.lst) so it gets restored at subsequent boots. If you are not already saving things at powerdown, you need to use a tool (I forget what its called) in the menus to save the specified files. After you do that the first time, it is automatic for subsequent powerdowns and bootups.
 
Old 11-07-2006, 02:31 PM   #3
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Smile

Quote:
Originally Posted by blackhole54
I think that is a correct entry for a crontab file, but I don't recall DSL providing cron

You need to start this in /opt/bootlocal.sh

Thanks a lot -I installed kcron and entered the job as root. Don't see it working though. I think I also got apt-got crom


I also added my command lines to said boot file and that worked fine.

Last edited by Thulemanden; 11-07-2006 at 05:26 PM.
 
Old 11-08-2006, 12:22 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Thulemanden
Thanks a lot -I installed kcron and entered the job as root. Don't see it working though.
Did you start the cron daemon up from bootlocal.sh? You should be able to see it running with the ps command.

Quote:
I think I also got apt-got crom
I gather then that you did a regular install rather than a frugal install or running as live CD? If so, you might have other options for starting things at boot than bootlocal.sh. I did a regular install for somebody over a year ago, but I don't remember details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron job Thulemanden Linux - General 1 11-06-2006 11:40 AM
Cron Job help...how to write this command? pxumsgdxpcvjm Linux - Newbie 2 09-05-2006 04:42 AM
Cron Job newbie_adm Linux - Newbie 2 06-05-2006 11:52 PM
cron job ? johnyy Linux - Software 3 12-10-2003 06:00 PM
Cron job T-Rex Linux - Newbie 1 09-26-2001 11:28 AM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration