: Does anyone know a way to reset a modem to its default values via executing
: some shell commands ? All I want to do the exact equivalent of
: powering the modem off and on.
: I know how to connect to the modem, and can reset via typing atz,
: but I want to do this in one shell script or command.
There are numerous ways to do this. you can use a cu command to
communicate with port and pass commands. You can use kermit and a script
command. Or you can use a script as you wanted. Your script should have
an stty command to set parameters
myscript </dev/ttyxx # hold port open for duration of script
Contents of myscript:
stty 9600 sane </dev/ttyxx
echo "ATZ" >/dev/ttyxx
Note there is no error checking. With kermit or cu script, you could
check for return OK.
John Pezzano, HP NARC