home *** CD-ROM | disk | FTP | other *** search
- #
- # Trumpet Winsock 3.0 Bye.cmd
- #
- # Copyright (C) 1996 distributed by
- # Trumpet Software International Pty Ltd
- # A.C.N 070065860
- # Under Licence from the Copyright owners.
- # All Rights Reserved.
- #
- #
- # Set %which to 1 for normal DTR hang up or
- # 2 for ATH style hangup
- #
- include "modem.cmd","preload"
- %which = 2
- status "Disconnecting modem..."
- if %which = 1
- set dtr off
- sleep 2
- set dtr on
- end
- if %which = 2
- # set the hangup string to a sensible value in case user
- # has blanked it out by mistake. Otherwise modem will not
- # hang up.
- if trim($modemhangup) = ""
- $modemhangup = "h"
- end
- sleep 2
- output +++
- if ![input 1 +++]
- %ok = [input 5 OK\n]
- else
- output \n
- end
- output at$modemhangup\r
- input 5 OK\n
- end
- status "Modem has been disconnected."
-
-