Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread john
I wrote: Are you saying that 'demand' now works in Linux? Mitch Blevins writes: Don't use it. I had assumed from the man page and a VagueMemory(tm) that I had heard of it working... Actually, 'demand' purportedly does work in Linux but, according to the documentation, filtering doesn't. As

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread Michael Beattie
On Thu, 22 Oct 1998, Moore, Paul wrote: From:Michael Beattie[SMTP:[EMAIL PROTECTED] On Wed, 21 Oct 1998, mwb wrote: Although I haven't tried it, but you might try putting poff (or your query script) as the last item in ip-up. Exactly like what I would have suggested. Make a

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread Moore, Paul
To all who replied so helpfully, thanks. I now have a working setup. Basically, the simplest solution for me is to add the idle option to my ppp options, to hangup the line when there is no more activity. A number of people suggested diald - it certainly looks good, and I may well look into it

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Moore, Paul
I've had a number of suggestions now, thanks to all who replied. However, I've still got some problems. First - for all those who suggested fetchmail, thanks but I am aware of fetchmail, and it just does not do what I need. The reasons are complex but conclusive... [If anybody really wants to

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Michael Beattie
On Wed, 21 Oct 1998, mwb wrote: On Wed, 21 Oct 1998, Moore, Paul wrote: What I'd like to do is to write a script which starts the PPP connection, then waits for all the ip-up.d scripts to run, and for my mail to finish arriving, and then drops the connection with poff (actually, I'd

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Michael Beattie
On Thu, 22 Oct 1998, Moore, Paul wrote: First problem was that I can't do the necessary kill -HUP diald-pid to force the link up unless I am root. I don't really want a setuid root script to do this... Also, getting the PID of diald is (slightly) tricky in a script. Never mind, I can fix this

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Moore, Paul
From: Michael Beattie[SMTP:[EMAIL PROTECTED] On Wed, 21 Oct 1998, mwb wrote: Although I haven't tried it, but you might try putting poff (or your query script) as the last item in ip-up. Exactly like what I would have suggested. Make a script such as 'zpoff' - so the leading 'z' puts the file

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Pann McCuaig
On Thu, Oct 22, 1998 at 11:12:36AM +0100, Moore, Paul wrote: The second problem is the big one - Demon dropped the line on me (for no reason I could see :-() while my slrnpull session was under way. Diald proceeded to restart the link, as expected. Great. BUT, when the link came up again,

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread W. Paul Mills
I use pidof for this purpose. Seems to work better, for me at least, than searching for strings in the output of ps You can discard the output of pidof and use the return value. Something like shown below. Substituting the program you want to monitor for suck. while pidof suck /dev/null ; do

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Alex Shnitman
Moore, Paul writes: Can diald be persuaded to do this (hangup-only, no dialup function)? If not, how do I get at the ppp link stats to monitor packets going through? If I can monitor packets/sec across the ppp link, or maybe traffic over the modem, I could write my own monitor-and-timeout

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Mitch Blevins
Moore, Paul wrote: [snip] The second problem is the big one - Demon dropped the line on me (for no reason I could see :-() while my slrnpull session was under way. Diald proceeded to restart the link, as expected. Great. BUT, when the link came up again, diald started a SECOND copy of

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Moore, Paul
From: Mitch Blevins[SMTP:[EMAIL PROTECTED] Moore, Paul wrote: [snip] The second problem is the big one - Demon dropped the line on me (for no reason I could see :-() while my slrnpull session was under way. Diald proceeded to restart the link, as expected. Great. BUT, when the link came up

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread john
Paul writes: I've come to the conclusion that the best way of doing what I'm after is to dial up manually, using pon. This is no problem. Diald doesn't really offer me anything extra here, as I basically don't want to dial up on demand... BUT, once I am online, I'd like to be able to get at

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Raymond A. Ingles
On Wed, 21 Oct 1998, Moore, Paul wrote: What I'd like to do is to write a script which starts the PPP connection, then waits for all the ip-up.d scripts to run, and for my mail to finish arriving, and then drops the connection with poff (actually, I'd like it to ask me whether it was OK to go

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread john
Mitch Blevins writes: For the most part, pppd can now do most of what people use diald for. Are you saying that 'demand' now works in Linux? -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Rob Collins
On Wed, 21 Oct 1998, Raymond A. Ingles wrote: On Wed, 21 Oct 1998, Moore, Paul wrote: What I'd like to do is to write a script which starts the PPP connection, then waits for all the ip-up.d scripts to run, and for my mail to finish arriving, and then drops the connection with poff

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Mitch Blevins
[EMAIL PROTECTED] wrote: Mitch Blevins writes: For the most part, pppd can now do most of what people use diald for. Are you saying that 'demand' now works in Linux? Don't use it. I had assumed from the man page and a VagueMemory(tm) that I had heard of it working... Anybody out there

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-21 Thread Peter Iannarelli
Hello: Wouldn't it just be cleaner to use dial on demand (diald) which would automatically bring up and/or turn down the link based on idle time. Peter -Original Message- From: Moore, Paul [EMAIL PROTECTED] To: 'Debian Users' debian-user@lists.debian.org Date: Wednesday, October 21,

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-21 Thread Moore, Paul
From: Peter Iannarelli[SMTP:[EMAIL PROTECTED] Hello: Wouldn't it just be cleaner to use dial on demand (diald) which would automatically bring up and/or turn down the link based on idle time. Sorry, I should have said this. Diald won't work for two main reasons. First, my ISP passes mail to me

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-21 Thread Moore, Paul
From: Mitchell, James T1[SMTP:[EMAIL PROTECTED] I use demon, who also use SMTP to send email while online. My 'solution' is based on the fact that I use diald to manage connections. Actually, I use demon, too :-) [Are there any good web pahes about how to set up Linux with demon?] diald will

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-21 Thread tko
Moore, Paul writes: From:Peter Iannarelli[SMTP:[EMAIL PROTECTED] Hello: Wouldn't it just be cleaner to use dial on demand (diald) which would automatically bring up and/or turn down the link based on idle time. Sorry, I should have said this. Diald won't work for two main