How about a trick I use in M$DOS frequently to test modem response:

ECHO ATH0>/dev/modem  (or COMx: in DOS)

Toss that in right after the pppd kill in your script.

On  7 Jun 97,  debian-user@lists.debian.org wrote regarding:
__ Non-interactive modem hangup __

> Does anyone know a simple command or tool to hang up the modem? Just hang
> it up, not stay connected to the tty and await more commands.
> 
> What I'm after is something simple I can put into a script for sudo
> to kill the ppp daemon and also hang up the line, freeing /dev/ttyS1
> immediately (rather than waiting for the ISP to idle out the line and
> hang up on me).
> 
> The first part I've got figured out --
> 
> start-stop-daemon --stop --verbose --exec /usr/sbin/pppd
> 
> But there has to be an easier way to hang up the modem than writing a
> chat script or something like that.
> 
> Does anyone have any ideas?
> 
> -- 
> G. Branden Robinson
> Purdue University
> [EMAIL PROTECTED]
> http://cartoon.ecn.purdue.edu/~branden/
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] . Trouble?  e-mail to
> [EMAIL PROTECTED] .
> 
Gerald V. Livingston II

Reply to [EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to