LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-01-2003, 08:02 PM   #1
grandpuba
LQ Newbie
 
Registered: Sep 2003
Location: Harrisburg, PA
Distribution: Mandrake 10
Posts: 16

Rep: Reputation: 0
Smile need help configuring crontab in Mandrake


Hello all. I'm running into a bit of a problem configuring the crontab file. I'm relatively new to Linux so please bear with me. I'm trying to get seti at home to run on startup, and following the instructions provided with the program the following is the entry I should make in the crontab file...
0 1,5,9,13,17,21 * * * cd <setidir>; ./setiathome -nice 19 > /dev/null 2> /dev/null

Where <setdir> is I specified the directory where setiathome is.
According to the instructions this should run seti at startup, then check every 4 hours to verify that it is running. The problem is seti doesnt start when I reboot my machine.
I added this line to the /etc/crontab file. When that didnt work I created a crontab file for my user. when that didnt work I created a crontab file for root. still nothing. There is no cron.deny or cron.allow files so I assume that my user specific crontab file is valid (this is what I am currently using.
I verified that crond is running, and have tried several variables to the above command. Any help would be greatly appreciated.
Thanks, and have a great day.
 
Old 10-01-2003, 09:01 PM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Why not use inittab if you want it to always run no matter what?

in /etc/inittab

zz:12345:respawn:/sbin/my_deamon

The inittab line consists of an arbitrary (but unique) two charater identification string and (in this case zz), followed by the run levels this program should be run in, then the respawn keyword, and finally the full path to the command. init should respawn another copy whenever it exits. After/IF you make changes to your inittab, be sure to send a HUP to init so it will reload it's configuation. The quick way is:

# kill -HUP 1
 
Old 10-02-2003, 04:45 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Looks like it should work. Rather than doing a cd you can put the full path to setiathome and put the cd in that file. Also you can use */4 to specify "in increments of 4 hours", which would make an entry like this:
0 */4 * * * root /path/to/setiathome -nice 19 > /dev/null 2> /dev/null

Do you get any errors in /var/log/syslog ? Or is root getting any email errors?
 
Old 10-02-2003, 11:11 PM   #4
grandpuba
LQ Newbie
 
Registered: Sep 2003
Location: Harrisburg, PA
Distribution: Mandrake 10
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the help guys. I left it go and came back a few hours later to find seti at home running. for some reason it just wont run at startup weird.
Have a great day.
 
  


Reply



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
Configuring Mandrake 9.2 santiagosilva Mandriva 4 03-04-2004 11:30 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
Need Help Configuring Mandrake Nightmatrix Linux - Newbie 2 08-08-2003 02:27 PM
configuring sound in mandrake 8.2 FuGeE Linux - Hardware 2 09-23-2002 10:01 PM
Configuring X on a Old Box with Mandrake 8.0 Casper Linux - Software 3 12-24-2001 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration