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 like it to ask me whether it was OK to go offline, and > > allow me to override, but that's not too hard). > > 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 at the end of the directory listing. 'run-parts' runs the scripts alphabetically AFAIK. You could put some sort of file checking functionality into the script to decide if it should disconnect. Similar to the no-ppp-on-boot system. HTH, Michael Beattie ([EMAIL PROTECTED]) PGP Key available, reply with "pgpkey" as subject. ----------------------------------------------------------------------------- Computers are not intelligent. They just think they are. ----------------------------------------------------------------------------- Debian GNU/Linux.... Ooohh You are missing out!