[SuSE Linux] Connect / delay ??
Hi all; I'm using PPP at the command line to connect to my ISP. Sometimes it is very slow or worst it picks up the phone but does not make a connection. Does anyone have a script to delay my fetchpop & sendmails commands until there is a connection? Perhaps checks for a connection before it runs the rest of my script? Right now I first run ppp-on and then (by hand) run the rest of my script. TIA!!! J I M ----------------------------------------- Jim Hatridge Germany hatridge@straubing.baynet.de Proud Linux User #88484 !!!!!!!!!! Micro$oft -- Ghostdriver* on the road to the future! (*German Slang for the guy driving on the wrong side of the road!) ---------------------------------------------- "If a President of the United States ever lied to the American people he should resign." Bill Clinton, 1974 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Mon, 8 Feb 1999, James (Jim) Hatridge wrote:
Hi all;
I'm using PPP at the command line to connect to my ISP. Sometimes it is very slow or worst it picks up the phone but does not make a connection.
Does anyone have a script to delay my fetchpop & sendmails commands until there is a connection? Perhaps checks for a connection before it runs the rest of my script? Right now I first run ppp-on and then (by hand) run the rest of my script.
Put your script in /etc/ppp/ip-up. It will be run automatically by pppd once the link is up and packets are being exchanged. See man pppd(8) for details. Phil -- Philip Stokes Email: phil@stokes.demon.co.uk Fax: +44 (0)870 164 1242 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
"James (Jim) Hatridge" wrote:
Hi all;
I'm using PPP at the command line to connect to my ISP. Sometimes it is very slow or worst it picks up the phone but does not make a connection.
Does anyone have a script to delay my fetchpop & sendmails commands until there is a connection? Perhaps checks for a connection before it runs the rest of my script? Right now I first run ppp-on and then (by hand) run the rest of my script.
Did you check into the possibility of using diald or even the demand_dial option of ppp? (ppp dial-on-demand displays an error with kernel 2.034 but it does work). However, I've got diald set up here and then use crontab to get and send mail 3 times a day. Works great here:-). BTW, you could also possibly use the fetchmail -d option in which case it will remain sleeping until a connection is made:) -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Linux Box) $100 invested at 7 0nterest for 100 years will become $100,000, at which time it will be worth absolutely nothing. -- Lazarus Long, "Time Enough for Love" - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
hatridge@straubing.baynet.de
-
leonmcclatchey@homemail.com
-
phil@stokes.demon.co.uk