Re: Automating PPP with cron?
On Mon, 09 Feb 1998 18:03:00 +0400, Timothy M. Hospedales wrote: Sounds like a dooable crack. I see a cron.daily, weekly monthly directory in /etc, with scripts in it, which I presume get executed daily weekly and month respectively. I'de like it to run every 6 hours. I tried read the cron cron tab manpages, but I'm still clueless as to how to do this I can't find any howto's on this either. :(. Any pointers to doc files, (or actual help:), on this subject? For things I might forget, I like to put reminder remarks in my files and align the columns for easy reading. This is the for the system crontab, but the columns should be the same for all users (except for the `user' column, obviously). # m h dom mon dow usercommand 21 21 * * * rootrun-parts /etc/cron.daily 31 21 * * 0 rootrun-parts /etc/cron.weekly 41 21 1 * * rootrun-parts /etc/cron.monthly m minutes (0-59) h hour (0-23) dom day of month (0-32) mon month (1-12 or jan-dec) dow day of week (0-6 or sun-sat) commas may separate entries like so: 0,10,20,30,40,50 * * * * /home/kotsya/.checkformail 1 /dev/null 2 /dev/null asterisks of course match all -- D a v i d S t e r n -- http://weber.u.washington.edu/~kotsya [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
-Original Message- From: Alex Yukhimets [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Cc: debian-user@lists.debian.org debian-user@lists.debian.org Date: Monday, 9 February 1998 6:59 am Subject: Re: Automating PPP with cron? Hi, I would like to setup my system to do two things. To check periodically to see if my PPP connection has died, and redial my isp if it has. And to disconnect and redial every 6 hours, (my isp doesn't like it if you stay one more than 6 hours consecutively). What would be the best way to go about implementing this, and how should I start going about it? Add persist option to pppd. Alex Y. Is there a way to limit the number of times that the persist option will redial ?. I don't want my modem blindly redialling if it can't connect, would drive my phone bill through the roof !. John -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
Pardon me for being on a soap box. I work for an ISP. It costs us $30 for one phone line, not counting our T or anything else. Our customers pay anywhere between 10 and 18 dollars a month. Every one of them that hogs a line makes us lose money, gives everyone busy signals, and eats our T's. If you need dedicated access -- pay for it. You are only stealing from the very people you pay for service. And when you get a busy signal, remember why. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
On Sun, Feb 08, 1998 at 11:43:15PM -0500, Shaleh wrote: Pardon me for being on a soap box. I work for an ISP. It costs us $30 for one phone line, not counting our T or anything else. Our customers pay anywhere between 10 and 18 dollars a month. Every one of them that hogs a line makes us lose money, gives everyone busy signals, and eats our T's. If you need dedicated access -- pay for it. You are only stealing from the very people you pay for service. And when you get a busy signal, remember why. Pardon me but it is not nice of you to describe your customers in this way. Your policies should give you a way to deal with the problem; if you want to have unlimited access (which I gather is the trend in the USA; we have quite a high amount of time-charging here in Oz), you should have advertised time limits per day or per call and you should enforce them. You should not get on your soapbox on a mailing list about it. Hamish -- Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
Hi, On this topic, why not try diald? Instead of keeping my ppp on all the time, I have made t so that I never need know whether I am connected or not. I just send mail, start a ftp session, or lynx, or query dns -- and the connection is brought up seemlessly. I go to the other extreme -- a couple of minutes of idle ppp causes a disconnect. I only use as much of bandwidth as I need -- and I also remove most of the bother of ppp connections. manoj -- The expenditure of funds is critical--engineers and scientists should not be permitted to authorize any purchase. -- Richard F. Moore Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
Sounds like a dooable crack. I see a cron.daily, weekly monthly directory in /etc, with scripts in it, which I presume get executed daily weekly and month respectively. I'de like it to run every 6 hours. I tried read the cron cron tab manpages, but I'm still clueless as to how to do this I can't find any howto's on this either. :(. Any pointers to doc files, (or actual help:), on this subject? Thanks, Timothy And about the hours disconnect/connect thing: You could kill pppd with a cronjob, but this is rather a bad idea (in the case you are doing a download at this moment :-). Maybe using diald is better. Never used it though. Ciao, Martin -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Automating PPP with cron?
Hi, I would like to setup my system to do two things. To check periodically to see if my PPP connection has died, and redial my isp if it has. And to disconnect and redial every 6 hours, (my isp doesn't like it if you stay one more than 6 hours consecutively). What would be the best way to go about implementing this, and how should I start going about it? Thanks alot! Timothy -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
Hi, I would like to setup my system to do two things. To check periodically to see if my PPP connection has died, and redial my isp if it has. And to disconnect and redial every 6 hours, (my isp doesn't like it if you stay one more than 6 hours consecutively). What would be the best way to go about implementing this, and how should I start going about it? Add persist option to pppd. Alex Y. -- _ _( )_ ( (o___ +---+ | _ 7 |Alexander Yukhimets| \()| http://pages.nyu.edu/~aqy6633/ | / \ \ +---+ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Automating PPP with cron?
Alex Yukhimets [EMAIL PROTECTED] writes: I would like to setup my system to do two things. To check periodically to see if my PPP connection has died, and redial my isp if it has. And to disconnect and redial every 6 hours, (my isp doesn't like it if you stay one more than 6 hours consecutively). What would be the best way to go about implementing this, and how should I start going about it? Add persist option to pppd. And about the hours disconnect/connect thing: You could kill pppd with a cronjob, but this is rather a bad idea (in the case you are doing a download at this moment :-). Maybe using diald is better. Never used it though. Ciao, Martin -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .