Re: Non-interactive modem hangup
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
> branden@purdue.edu
> http://cartoon.ecn.purdue.edu/~branden/
>
>
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> debian-user-request@lists.debian.org . Trouble? e-mail to
> templin@bucknell.edu .
>
Gerald V. Livingston II
Reply to gvl@usa.net
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: