MODEM_BREAK
Section: User Commands (1)
Updated: local
Index
Return to Main Contents
NAME
modem_break - send a modem break
SYNOPSIS
modem_break
DESCRIPTION
Modem_break
creates a "modem break" on the stdout. Modem break is a
condition of a communications line when the line is held "low"
for 200 ms. It is typically used to tell the remote system to switch to
a different baud rate.
Modem_break
is designed to be used by
Pcomm
in a shell script for automatically logging a user onto a remote system.
EXAMPLE
- while true
do
- # wait 5 seconds for the login prompt
waitfor -5 login:
# test the exit code of the waitfor command
if [ $? -eq 0 ]
then
- # send my user ID and break out of the loop
echo egray
break
fi
# send a modem break
modem_break
done
SEE ALSO
pcomm(1), waitfor(1), matches(1), Pcomm Reference Manual
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLE
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 20:33:03 GMT, September 18, 2024