[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chat script ?




how do i get the exit status of chat, or any program.

i havent gotten around to trying ERRORLEVEL 

this is my ppp-on-dialer script

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
# exit=1
# while exit != 0 do

 /usr/sbin/chat                                                 \
  TIMEOUT         3                               \
  ABORT           '\nBUSY\r'                      \
  ABORT           '\nNO ANSWER\r'                 \
  ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
         ''              \rAT                            \
         'OK-+++\c-OK'   ATH0                            \
         TIMEOUT         30                              \
         OK              ATDT$TELEPHONE                  \
         CONNECT         ''                              \
         ogin:--ogin:    $ACCOUNT                        \
         assword:        $PASSWORD   \
  TIMEOUT  60    \
  enu:  p

# done


--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.