Click to See Complete Forum and Search --> : Just one more thing !!! Crontab & PPP (Well 2)


colinp
06-22-1999, 06:52 AM
First of all, thanks for your help so far Eccentric, Geoff et all.

I'm up and running, even got SETI running and damn it's fast on Linux, much faster on a P166 with Linux than an AMD 350 WIN98.

Two Questions though :-

I guess I can edit crontab to make SETI start automatically ?

I want Communicator and SETI to be able to automatically call up / activate the PPP connection. I don't really want to activate it at boot (phone bills). How do I do it ?

cheers,

Col.

p.s. MGallik, you've gotta see the speed of SETI in Linux. Get your 3 boxes sorted and we'll be up there!!

colinp
06-22-1999, 08:34 AM
I know it's crontab -e then
* * * * * /home/blahblah/setiathome
But what I'm looking for is evertime the machine is rebooted it starts, not just a particular time/date.

Col.

Geoff
06-23-1999, 03:04 AM
You'll need to put it in the rc.d directories. Those contain instructions for what to run when switching to different runlevels. I think the normal level is 2 so you'll need to put an executable file in the /etc/init.d directory with instructions to start the SETI program and make a symbolic link in the /etc/rc2.d directory.

Basically go into /etc/init.d and create a new file called seti, inside that you basically just have to have the path and filename to run the seti program. Then save, exit and "chmod 755 seti" to make it executable. Then do:

ln -s /etc/init.d/seti /etc/rc2.d/Xnnseti, where the X is a letter and the nn is a 2 digit number. Eccentric: addendum please. I've reached the limit of my knowledge, I don't know rc.d naming conventions http://discussions.linuxplanet.com//smile.gif

You may also have to write a kill-script that runs when you shut down, to make sure it saves and quits properly. But when you shut down, linux sends a TERM and then a KILL to all processes anyway so it should sort itself out...

Geoff

Geoff
06-23-1999, 03:06 AM
BTW move the program file to /usr/local/bin, don't leave it lying around in your ~ http://discussions.linuxplanet.com//smile.gif

colinp
06-25-1999, 03:58 AM
Cheers Geoff,

I should have thought of all that myself, keep forgetting it's unix, I'll have to stop using the window manager, get my brain working.

Col.

Geoff
06-25-1999, 08:12 AM
Well if you actually get your brain to function properly you'll have accomplished more than me.... http://discussions.linuxplanet.com//smile.gif

Geoff