head 1.35; access; symbols; locks; strict; comment @# @; 1.35 date 98.08.27.15.08.13; author alexis; state Exp; branches; next 1.34; 1.34 date 98.08.07.11.28.42; author alexis; state Exp; branches; next 1.33; 1.33 date 98.03.01.22.30.11; author alexis; state Exp; branches; next 1.32; 1.32 date 98.03.01.14.55.38; author alexis; state Exp; branches; next 1.31; 1.31 date 98.02.28.14.38.24; author alexis; state Exp; branches; next 1.30; 1.30 date 98.02.05.12.21.47; author alexis; state Exp; branches; next 1.29; 1.29 date 98.02.04.17.10.59; author alexis; state Exp; branches; next 1.28; 1.28 date 97.11.24.15.48.44; author alexis; state Exp; branches; next 1.27; 1.27 date 97.11.11.11.52.00; author alexis; state Exp; branches; next 1.26; 1.26 date 97.10.26.20.55.04; author alexis; state Exp; branches; next 1.25; 1.25 date 97.10.26.18.54.11; author alexis; state Exp; branches; next 1.24; 1.24 date 97.10.26.17.46.36; author alexis; state Exp; branches; next 1.23; 1.23 date 97.10.26.14.34.07; author alexis; state Exp; branches; next 1.22; 1.22 date 97.10.26.12.12.36; author alexis; state Exp; branches; next 1.21; 1.21 date 97.10.26.10.44.08; author alexis; state Exp; branches; next 1.20; 1.20 date 97.10.26.10.14.46; author alexis; state Exp; branches; next 1.19; 1.19 date 97.10.22.23.01.00; author alexis; state Exp; branches; next 1.18; 1.18 date 97.10.22.22.24.35; author alexis; state Exp; branches; next 1.17; 1.17 date 97.10.22.16.29.26; author alexis; state Exp; branches; next 1.16; 1.16 date 97.10.22.16.26.57; author alexis; state Exp; branches; next 1.15; 1.15 date 97.10.20.18.09.41; author alexis; state Exp; branches; next 1.14; 1.14 date 97.03.06.10.44.59; author alexis; state Exp; branches; next 1.13; 1.13 date 97.02.25.18.52.15; author alexis; state Exp; branches; next 1.12; 1.12 date 97.02.21.18.05.25; author alexis; state Exp; branches; next 1.11; 1.11 date 97.02.21.17.07.38; author alexis; state Exp; branches; next 1.10; 1.10 date 97.02.21.17.04.42; author alexis; state Exp; branches; next 1.9; 1.9 date 97.02.16.13.36.47; author alexis; state Exp; branches; next 1.8; 1.8 date 97.02.16.13.06.11; author alexis; state Exp; branches; next 1.7; 1.7 date 97.02.15.11.31.02; author alexis; state Exp; branches; next 1.6; 1.6 date 97.02.15.11.11.41; author alexis; state Exp; branches; next 1.5; 1.5 date 97.02.10.22.52.28; author alexis; state Exp; branches; next 1.4; 1.4 date 97.02.09.17.43.35; author alexis; state Exp; branches; next 1.3; 1.3 date 97.02.09.16.01.58; author alexis; state Exp; branches; next 1.2; 1.2 date 97.02.01.21.51.41; author alexis; state Exp; branches; next 1.1; 1.1 date 97.02.01.21.38.58; author alexis; state Exp; branches; next ; desc @PPP LINK CONTROL CLIENT @ 1.35 log @tidied up again @ text @#!SCRIPTSHELLCMD_MARKER PROGNAME=`basename $0` # $Id: ppplcc.in,v 1.34 1998/08/07 11:28:42 alexis Exp alexis $ VERSION="PATCHLEVEL_MARKER" ############################################################################## # # DON'T CHANGE ANYTHING BELOW HERE # ############################################################################## PPPLCD=LCLSBINDIR_MARKER/ppplcd SNDMSG=LCLBINDIR_MARKER/sndmsg GETMSG=LCLBINDIR_MARKER/getmsg DHUY=LCLBINDIR_MARKER/dhuy QTEST=PRGLIBDIR_MARKER/qtest USECNT=PRGLIBDIR_MARKER/usecnt ANNOUNCE=PRGLIBDIR_MARKER/announce XPPPLCC=LCLBINDIR_MARKER/xppplcc IPUP=/etc/ppp/ip-up IPDOWN=/etc/ppp/ip-down CFGFILE=PRGCFGDIR_MARKER/ppplc.conf PROGNAME=`basename $0` VERSION="PATCHLEVEL_MARKER" BROWN="" WHITE="" INVBROWN="" main() { PAUSE=0 while [ "X$1" != X ]; do case "$1" in -V) if expr "$VERSION" : 'P.*R$' > /dev/null; then warning "this is a development version; use 'ident' for version information" exit 1 else echo "$PROGNAME version $VERSION" exit 0 fi ;; -d) [ "X$2" = X ] && usage VERBOSE_LEVEL=$2 shift ;; -q) [ "X$2" = X ] && usage SNDMSG="$SNDMSG -q $2" shift ;; -c) [ "X$2" = X ] && usage CFGFILE=$2 shift ;; -p) [ "X$2" = X ] && usage PAUSE=$2 shift ;; -v) VERBOSE_LEVEL=3 ;; -*) usage ;; *) break ;; esac shift done if [ "X$1" = X ]; then ppplcc_interactive else ppplcc_commandline "$@@" fi } usage() { { echo "Usage: $PROGNAME [ -d | -v ] [ -p ] [ -q ] [ ... ]" echo " $PROGNAME -V" } >&2 exit 2 } ppplcc_commandline() { debug 5 "ppplcc_commandline: SOF" while :; do debug 5 "args is $1" case "$1" in c) $SNDMSG 0 ;; d) $SNDMSG 5 ;; ns) $SNDMSG 11 ;; ng) $SNDMSG 17 ;; ms) $SNDMSG 8 ;; mg) $SNDMSG 14 ;; m) $SNDMSG 41 ;; n) $SNDMSG 44 ;; dn) $SNDMSG 33 ;; en) $SNDMSG 30 ;; qd) $SNDMSG 32 ;; id) $SNDMSG 31 ;; da) $SNDMSG 38 ;; ea) $SNDMSG 37 ;; lc) $SNDMSG 34 ;; gc) $SNDMSG 36 ;; i0) $SNDMSG 29 2 $GETMSG ;; es) # clear pending announcements and hangups $SNDMSG 31 26 24 31 5 24 # queue a 'going down in 5 minutes' announcement $SNDMSG -q 900 26 7 # queue a hangup for 20 minutes $SNDMSG -q 1200 5 # queue an immediate announcement $SNDMSG 26 8 ;; ds) # clear pending announcements and hangups $SNDMSG 31 26 24 31 5 24 ;; h) ppplcchelp ;; S) [ ! -f $CFGFILE ] && error -f "can't read $CFGFILE" $PPPLCD $CFGFILE ;; K) $SNDMSG 3 ;; i3) ipcs -qc ;; i4) echo if expr "$VERSION" : 'P.*R$' > /dev/null; then echo "$PROGNAME: WARNING: not a bonafide release; no version information available" else echo "$PROGNAME version \ $VERSION" $SNDMSG -V $PPPLCD -V $XPPPLCC -V $QTEST -V $USECNT -V $ANNOUNCE -V $DHUY -V $IPUP -V $IPDOWN -V PRGLIBDIR_MARKER/getmail-sendmail -V PRGLIBDIR_MARKER/sndmail-sendmail -V PRGLIBDIR_MARKER/getmail-fetchmail -V PRGLIBDIR_MARKER/getnews-suck -V PRGLIBDIR_MARKER/sndnews-suck -V PRGLIBDIR_MARKER/getnews-slurp -V PRGLIBDIR_MARKER/sndnews-nntpxmit -V fi ;; i5) echo ident `which $PROGNAME` ident `which $SNDMSG` ident `which $PPPLCD` ident `which $XPPPLCC` ident $QTEST ident $USECNT ident $ANNOUNCE ident $DHUY ident $IPUP ident $IPDOWN ident PRGLIBDIR_MARKER/getmail-sendmail ident PRGLIBDIR_MARKER/sndmail-sendmail ident PRGLIBDIR_MARKER/getmail-fetchmail ident PRGLIBDIR_MARKER/getnews-suck ident PRGLIBDIR_MARKER/sndnews-suck ident PRGLIBDIR_MARKER/getnews-slurp ident PRGLIBDIR_MARKER/sndnews-nntpxmit ;; sq) [ "X$3" = X ] && usage $SNDMSG 27 $2 $3 shift shift ;; si) [ "X$2" = X ] && usage $SNDMSG 25 $2 shift ;; sd) [ "X$2" = X ] && usage $SNDMSG 35 $2 shift ;; ct) [ "X$2" = X ] && usage echo $SNDMSG 0 | at $2 shift ;; dt) [ "X$2" = X ] && usage echo $SNDMSG 5 | at $2 shift ;; mm) $SNDMSG $* break ;; "") break ;; *) debug 5 "error on $1" usage ;; esac shift done } ppplcc_interactive() { if [ "X$TERM" = Xxterm ]; then echo -n "]0;$PROGNAME" fi while :; do menu echo question "select, or press ENTER to redraw the screen" read RESPONSE case "$RESPONSE" in c) $SNDMSG 0 ;; d) $SNDMSG 5 ;; ns) $SNDMSG 11 ;; ng) $SNDMSG 17 ;; ms) $SNDMSG 8 ;; mg) $SNDMSG 14 ;; m) $SNDMSG 41 ;; n) $SNDMSG 44 ;; dn) $SNDMSG 33 ;; en) $SNDMSG 30 ;; qd) $SNDMSG 32 ;; id) $SNDMSG 31 ;; da) $SNDMSG 38 ;; ea) $SNDMSG 37 ;; lc) $SNDMSG 34 ;; gc) $SNDMSG 36 ;; i0) $SNDMSG 29 2 $GETMSG ;; q) clear exit ;; h) ppplcchelp | ${PAGER:-more } ;; es) # clear pending announcements and hangups $SNDMSG 31 26 24 31 5 24 # queue a 'going down in 5 minutes' announcement $SNDMSG -q 900 26 7 # queue a hangup for 20 minutes $SNDMSG -q 1200 5 # queue an immediate announcement $SNDMSG 26 8 ;; ds) # clear pending announcements and hangups $SNDMSG 31 26 24 31 5 24 ;; qe) warning "qe: not coded yet" ;; ie) warning "ie: not coded yet" ;; sm) warning "sm: not coded yet" ;; S) [ ! -f $CFGFILE ] && error -f "can't read $CFGFILE" $PPPLCD $CFGFILE ;; K) $SNDMSG 3 ;; i3) ipcs -qc pause ;; i4) echo if expr "$VERSION" : 'P.*R$' > /dev/null; then echo "$PROGNAME: WARNING: not a bonafide release; no version information available" else echo "$PROGNAME version \ $VERSION" $SNDMSG -V $PPPLCD -V $XPPPLCC -V $QTEST -V $USECNT -V $ANNOUNCE -V $DHUY -V $IPUP -V $IPDOWN -V PRGLIBDIR_MARKER/getmail-sendmail -V PRGLIBDIR_MARKER/sndmail-sendmail -V PRGLIBDIR_MARKER/getmail-fetchmail -V PRGLIBDIR_MARKER/getnews-suck -V PRGLIBDIR_MARKER/sndnews-suck -V PRGLIBDIR_MARKER/getnews-slurp -V PRGLIBDIR_MARKER/sndnews-nntpxmit -V echo fi pause ;; i5) ( echo ident `which $PROGNAME` ident `which $SNDMSG` ident `which $PPPLCD` ident `which $XPPPLCC` ident $QTEST ident $USECNT ident $ANNOUNCE ident $DHUY ident $IPUP ident $IPDOWN ident PRGLIBDIR_MARKER/getmail-sendmail ident PRGLIBDIR_MARKER/sndmail-sendmail ident PRGLIBDIR_MARKER/getmail-fetchmail ident PRGLIBDIR_MARKER/getnews-suck ident PRGLIBDIR_MARKER/sndnews-suck ident PRGLIBDIR_MARKER/getnews-slurp ident PRGLIBDIR_MARKER/sndnews-nntpxmit echo ) | ${PAGER:-more} pause ;; sq) question "minimum quality" read QC_MINLEVEL question "quality check interval (secs)" read QC_INTERVAL $SNDMSG 27 $QC_MINLEVEL $QC_INTERVAL ;; si) question "idle timeout" read IDLE_TIMEOUT $SNDMSG 25 $IDLE_TIMEOUT ;; sd) question "debug level" read DEBUG_LEVEL $SNDMSG 35 $DEBUG_LEVEL ;; ct) info time now: `date '+%H%M'` question "connect time" read CONNECT_TIME echo $SNDMSG 0 | at $CONNECT_TIME ;; dt) info time now: `date '+%H%M'` question "disconnect time" read DISCONNECT_TIME echo $SNDMSG 5 | at $CONNECT_TIME ;; mm) question "message number (and parameters)" read MESSAGE_LIST $SNDMSG $MESSAGE_LIST ;; !*) CMD=`echo "$RESPONSE" | sed 's/!//'` do_a_shell -p "$PROGNAME> " $CMD pause ;; "") ;; *) warning "unrecognised, choose again ... " ;; esac [ $PAUSE != 0 ] && sleep $PAUSE done } menu() { clear printf "$INVBROWN PPP LINK CONTROL CLIENT %28s $WHITE\\n" "Ver. $VERSION" cat <&2 else echo "$PROGNAME: \ ERROR: $*" >&2 fi fi [ $FATAL = true ] && exit 1 return 1 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} warning() { [ $VERBOSE_LEVEL -ge 2 ] && { echo "$PROGNAME: \ WARNING: $*" >&2; } return 0 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} debug() { if [ $VERBOSE_LEVEL -ge $1 ]; then shift if [ "X$MSG_HANDLE" = Xstderr ]; then echo "$PROGNAME: \ DEBUG: $*" >&2 else echo "$PROGNAME: \ DEBUG: $*" fi fi return 0 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} info() { [ $VERBOSE_LEVEL -lt 3 ] && return while :; do case "$1" in -*) internal "invalid option to info() '$1'" ;; *) break ;; esac shift done if [ "X$MSG_HANDLE" = Xstderr ]; then echo "$PROGNAME: \ INFO: $*" >&2 else echo "$PROGNAME: \ INFO: $*" fi return 0 } # The method to suppress the newline displayed by the 'echo' command # varies from system to system. This function abstracts this variation. # Note that even if you don't use this command directly yourself, it *is* # called by other functions in this script. necho() { if [ "X$ECHO_MODE" = X ]; then if [ `echo -n | wc -c` -eq 0 ]; then ECHO_MODE=mn elif [ `echo "\\c" | wc -c` -eq 0 ]; then ECHO_MODE=bsc else error -f "don't know how to suppress newlines in echos" fi fi if [ $ECHO_MODE = mn ]; then echo -n "$@@" elif [ $ECHO_MODE = bsc ]; then echo "$@@""\\c" fi return 0 } ############################################################################## # # # SUPPORT FUNCTIONS # # # ############################################################################## # This function should be called for each major command this script calls. # It tests that the command exists and is in a standard place. It should be # called *after* option processing. A simple example of how to use it is: # REMSH_CMD=`locatecmd remsh rsh ssh` || error -f "can't locate remote shell" # Note that 'whichcmd' is required by 'locatecmd'. locatecmd() { for POSSCMD in $*; do [ X`whichcmd $POSSCMD` != X ] && { echo $POSSCMD; return 0; } done return 1 } whichcmd() { for DIR in `echo $PATH | sed 's/:/ /g'`; do [ -x $DIR/$1 ] && { echo $DIR/$1; return 0; } done return 1 } ############################################################################## # # # ENTRY POINT # # # ############################################################################## # All files created should be readable by all. You might want to change this # to 'umask 077' to exclude all access for group and others. umask 022 # Call the main function, passing it the same arguments that this script # itself recieved. main "$@@" # If main() returned an exit code then now pass that back to the thing that # called this script. Note that that is what would happen anyway but this # just makes that a little more explicit. exit $? @ 1.34 log @milepost - seems to work ok, though few messages seem wrong @ text @d3 1 a3 1 # $Id: ppplcc.in,v 1.33 1998/03/01 22:30:11 alexis Exp alexis $ d13 3 a15 1 SNDMSG=LCLSBINDIR_MARKER/sndmsg d22 1 a22 1 CFGFILE=PRGCFGDIR_MARKER/ppplc.cfg d32 1 a32 1 DO_SLEEPS=true d46 3 d52 3 a54 2 -p) DO_SLEEPS=true ;; -np) DO_SLEEPS=false ;; a61 2 [ ! -f $CFGFILE ] && error -f "can't read $CFGFILE" d72 1 a72 1 echo "Usage: $PROGNAME [ -d | -v ] [ -p ] [ ... ]" d101 14 a114 4 i0) $SNDMSG 29 0 ;; i1) $SNDMSG 29 1 ;; i2) $SNDMSG 29 2 ;; i6) $SNDMSG 29 3 ;; d116 2 a117 1 S) $PPPLCD $CFGFILE ;; d132 1 d152 1 d220 2 a221 9 i0) $SNDMSG 29 0 pause ;; i1) $SNDMSG 29 1 pause ;; i2) $SNDMSG 29 2 pause ;; i6) $SNDMSG 29 3 pause ;; d225 12 d240 2 a241 1 S) $PPPLCD $CFGFILE ;; d257 1 d278 1 d319 1 a319 1 [ $DO_SLEEPS = true ] && sleep 2 d327 1 a328 1 $INVBROWN PPP LINK CONTROL CLIENT Ver. $VERSION $WHITE a331 1 ct) connect at time dt) disconnect at time a332 2 en) enable news dn) disable news ea) enable autoreconnect da) disable autoreconnect d335 3 d340 2 a341 1 S) start control daemon K) kill control daemon d345 3 d354 2 a355 8 cat < | -v ] [ ... ]" echo " $PROGNAME -V" } >&2 exit 2 } a32 3 main() { # Process options - author to add extra options! d45 1 d53 91 d151 1 a151 1 echo -n "Select, or press ENTER to redraw the screen: " a161 3 q) clear exit ;; h) ppplcchelp ;; a164 1 qe) echo "Not coded yet" ;; a165 1 ie) echo "Not coded yet" ;; a167 1 s) $PPPLCD $CFGFILE ;; d171 12 a182 27 sm) echo "Not coded yet" ;; qi) echo -n "Quality check interval: " read QC_INTERVAL $SNDMSG 27 $QC_INTERVAL ;; ii) echo -n "Idle timeout interval: " read IDLE_TIMEOUT $SNDMSG 25 $IDLE_TIMEOUT ;; ds) echo -n "Debug level: " read DEBUG_LEVEL $SNDMSG 35 $DEBUG_LEVEL ;; ct) echo -n "Time now: " date '+%H%M' echo -n "Connect time: " read CONNECT_TIME at $CONNECT_TIME < /dev/null; then echo "$PROGNAME: WARNING: not a bonafide release; no version information available" else echo "$PROGNAME version \ $VERSION" $SNDMSG -V $PPPLCD -V $XPPPLCC -V $QTEST -V $ANNOUNCE -V $IP_UP -V $IP_DOWN -V d214 95 a308 36 fi echo -n "Press ENTER to continue" read DUMMY continue ;; if) echo $SNDMSG 29 1 echo echo -n "Press ENTER to continue" read DUMMY continue ;; im) echo $SNDMSG 29 2 echo echo -n "Press ENTER to continue" read DUMMY continue ;; ii) echo ipcs -qc echo echo -n "Press ENTER to continue" read DUMMY continue ;; !*) CMD=`echo "$RESPONSE" | sed 's/!//'` if [ "X$CMD" = X ]; then ${SHELL:-/bin/sh} else ${SHELL:-/bin/sh} -c "$CMD" echo -n "Press ENTER to continue" read DUMMY continue fi ;; "") continue ;; *) echo "Unrecognised, choose again ... " ;; esac sleep 2 done @ 1.25 log @continued directory reorganisation @ text @d16 1 a16 1 DFLT_CFGFILE=PPPLCDCFGDIR_MARKER/ppplc.cfg d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.24 1997/10/26 17:46:36 alexis Exp $' @ 1.24 log @directory reorganisation @ text @d15 2 a16 2 IP_DOWN=/etc/ppp//ip-down DFLT_CFGFILE=PPPLCDCFGDIR_MARKER/`hostname`.cfg d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.23 1997/10/26 14:34:07 alexis Exp $' d164 1 a164 1 echo "$PROGNAME: INFO: version \ @ 1.23 log @added support for user-definable '/etc' directory @ text @d9 2 a10 2 PPPLCD=LCLSBINDIR_MARKER/ppplcd SNDMSG=LCLSBINDIR_MARKER/sndmsg d13 4 a16 4 XPPPLCC=LCLXBINDIR_MARKER/xppplcc IP_UP=SYSPPPDIR_MARKER/ip-up IP_DOWN=SYSPPPDIR_MARKER/ip-down DFLT_CFGFILE=LCLETCDIR_MARKER/ppplc/`hostname`.cfg d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.22 1997/10/26 12:12:36 alexis Exp alexis $' @ 1.22 log @stamped for release 1.0.6 @ text @d14 2 a15 2 IP_UP=PPPETCDIR_MARKER/ip-up IP_DOWN=PPPETCDIR_MARKER/ip-down d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.21 1997/10/26 10:44:08 alexis Exp alexis $' @ 1.21 log @*** empty log message *** @ text @d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.20 1997/10/26 10:14:46 alexis Exp alexis $' @ 1.20 log @step @ text @d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.19 1997/10/22 23:01:00 alexis Exp $' d52 1 a52 4 im) info on messages ii) info on IPC message queues if) info on flags, vars & states ct) connect at time lc) load config files now gc) generate chat file now mm) message manually @ 1.19 log @*** empty log message *** @ text @d9 8 a16 8 PPPLCD=SBINDIR_MARKER/ppplcd SNDMSG=SBINDIR_MARKER/sndmsg QTEST=MY_LIBDIR_MARKER/qtest ANNOUNCE=MY_LIBDIR_MARKER/announce XPPPLCC=XBINDIR_MARKER/xppplcc IP_UP=PPP_ETCDIR_MARKER/ip-up IP_DOWN=PPP_ETCDIR_MARKER/ip-down DFLT_CFGFILE=MY_ETCDIR_MARKER/`hostname`.cfg d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.18 1997/10/22 22:24:35 alexis Exp alexis $' @ 1.18 log @*** empty log message *** @ text @d13 1 d21 1 a21 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.17 1997/10/22 16:29:26 alexis Exp alexis $' d171 1 @ 1.17 log @*** empty log message *** @ text @d20 1 a20 1 RCS_ID_PPPLCC='$Id: ppplcc.in,v 1.16 1997/10/22 16:26:57 alexis Exp alexis $' d34 1 a34 1 $INVBROWN PPP LINK CONTROL CLIENT $WHITE @ 1.16 log @simplified menu @ text @d20 1 a20 1 RCS_ID_PPPLCC='$Id: ppplcc,v 1.15 1997/10/20 18:09:41 alexis Exp alexis $' d166 2 a167 1 echo "$PROGNAME: INFO: version $VERSION" @ 1.15 log @*** empty log message *** @ text @d5 1 a5 1 # CONFIGURE THESE TO YOUR LOCAL SETUP d9 7 a15 16 # Where is the message dispatcher SNDMSG=/usr/local/sbin/sndmsg # Where is the link control daemon - only used when restarting the daemon PPPLD=/usr/local/sbin/ppplcd # What is default configuration file - only used when restarting the daemon # It is probably a good idea to leave the `hostname`.cfg on the end of this # where ever you decide to put it. DFLT_CFGFILE=/usr/local/etc/ppplc/`hostname`.cfg ############################################################################## # # DON'T CHANGE ANYTHING BELOW HERE # ############################################################################## d20 1 a20 1 RCS_ID_PPPLCC='$Id: ppplcc,v 1.14 1997/03/06 10:44:59 alexis Exp alexis $' d37 10 a46 9 C) connect! D) disconnect! H) help! Q) quit this program! ns) news send now! ms) mail send now! ng) news get now! mg) mail receive now! s) start ppp link control daemon! k) kill ppp link control daemon! ${BROWN}FLAGS AND VARIABLES${WHITE} DN) disable news retrieval en) enable news retrieval(*) DQ) disable quality checking eq) enable quality checking(*) a50 3 ${BROWN}INFORMATION AND MISCELLANEOUS COMMANDS${WHITE} iv) info on versions if) info on flags, vars & states d52 3 a54 3 lc) load config files now! gc) generate chat file now! mm) message manually !) shell escape ct) connect at time d131 1 a131 1 s) $PPPLD $CFGFILE ;; d163 12 a174 4 echo "$PROGNAME: INFO: version $VERSION" $SNDMSG -V $SNDMSG 29 0 echo @ 1.14 log @Xterm title initialisation Added connect-at-time option @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.13 1997/02/25 18:52:15 alexis Exp alexis $' | cut -f3 -d' '`d" @ 1.13 log @changed path names for fsstnd conformancy. @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.12 1997/02/21 18:05:25 alexis Exp alexis $' | cut -f3 -d' '` (development)" d34 4 d47 1 a50 1 H) help! Q) quit this program! d65 1 d156 14 @ 1.12 log @Added -V optrioption# @ text @d10 1 a10 1 SNDMSG=/usr/local/lib/ppp/sndmsg d18 1 a18 1 DFLT_CFGFILE=/usr/local/lib/ppp/`hostname`.cfg d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.11 1997/02/21 17:07:38 alexis Exp alexis $' | cut -f3 -d' '` (development)" @ 1.11 log @added '-c' option to ipcs in order to see message queue perms @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.10 1997/02/21 17:04:42 alexis Exp alexis $' | cut -f3 -d' '` (development)" d102 10 d117 1 @ 1.10 log @Added shell escape @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.9 1997/02/16 13:36:47 alexis Exp alexis $' | cut -f3 -d' '` (development)" d164 1 a164 1 ipcs -q @ 1.9 log @separated mail and news transfer commands into send and get. @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.8 1997/02/16 13:06:11 alexis Exp alexis $' | cut -f3 -d' '` (development)" d60 1 a60 1 mm) message manually d169 9 @ 1.8 log @versions command now also reports version of sndmsg command @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.7 1997/02/15 11:31:02 alexis Exp alexis $' | cut -f3 -d' '` (development)" d43 2 a44 1 n) transfer news now! m) transfer mail now! d111 4 a114 2 n) $SNDMSG 11 ;; m) $SNDMSG 8 ;; @ 1.7 log @improved version info. @ text @d29 1 a29 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ppplcc,v 1.6 1997/02/15 11:11:41 alexis Exp alexis $' | cut -f3 -d' '` (development)" d142 1 @ 1.6 log @Moved config info to start Added RCS id IPC info now limited to message queues mail xfer now works @ text @d28 2 a29 1 VERSION=`echo '$Id$' | cut -f3 -d' '` @ 1.5 log @changed a copuple of menu enteriries. @ text @d3 7 a10 2 PPPLD=/usr/local/lib/ppp/ppplcd CFGFILE=/usr/local/lib/ppp/`hostname`.cfg d12 17 d54 1 a54 1 ${BROWN}INFORMATION AND MISCELLANEOUS${WHITE} d56 1 a56 1 im) info on messages ii) info on ipc d68 2 a69 2 commands, lower case advanced selections. Here only the basic selections are explained. d87 3 a89 2 news retrieval only has effect until the computer is rebooted. Note also that this has no effect on a currently established connection. d92 1 a92 1 disabling news transder. d94 1 a94 1 Remaining commands are not explained here. Although they should eventually d110 1 a110 1 m) echo "Not coded yet" ;; d140 1 d159 1 a159 1 ipcs @ 1.4 log @Changed paths to ppplcd and sndmsg commands. ppplcd now takes one required par - the config file. @ text @d21 1 a21 1 s) start ppp link daemon! k) kill ppp link daemon! d35 1 a35 1 lc) load config files now! gc) generate and config files now! @ 1.3 log @More changes - works. @ text @d3 3 a5 2 SNDMSG=/home/alexis/dev/ppp/sndmsg PPPLD=/home/alexis/dev/ppp/ppplcd d99 1 a99 1 s) $PPPLD ;; @ 1.2 log @MILEPOST - WORKS @ text @d18 4 a21 4 C) connect! D) disconnect! S) start ppp link daemon! K) kill ppp link daemon! N) transfer news now! M) transfer mail now! Q) quit this program! d24 6 a29 6 DN) disable news retrieval EN) enable news retrieval(*) DQ) no quality checking EQ) enable quality checking(*) DI) no idle checking EI) enable idle checking(*) DR) no redial on remote hangup(*) ER) enable redial on remote hangup SQ) set minimum quality for link SI) set interval for quality checks ST) set timeout for idle check SD) set debug level d32 41 a72 4 IV) information about versions IS) information about states IM) information about messages II) information about IPC LC) load config files GC) generate config files MM) message manually d89 1 d94 2 a95 2 di) $SNDMSG 31 ;; ei) echo "Not coded yet" ;; d102 1 a102 1 sq) echo "Not coded yet" ;; d121 1 a121 1 is) echo @ 1.1 log @Initial revision @ text @d17 1 a17 2 ${BROWN}BASIC COMMANDS AND OPTIONS${WHITE} d19 1 d23 1 a26 4 ${BROWN}ADVANCED COMMANDS AND OPTIONS${WHITE} S) start ppp link daemon! K) kill ppp link daemon! d30 2 a31 1 LC) load config files GC) generate config files d34 1 a35 1 d41 1 @