*BSD News Article 66725


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!hpg30a.csc.cuhk.hk!news.cuhk.edu.hk!newsfeeder.ust.hk!nntp.hk.super.net!news.duke.edu!news.mathworks.com!newsfeed.internetmci.com!tech.cftnet.com!ns2.mainstreet.net!sloth.swcp.com!haunt.com!ele
From: ele@haunt.com (Erik L. Ellis)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: QUESTION - checking for successful ppp connect in script
Date: 21 Apr 1996 20:45:41 GMT
Organization: University of New Mexico
Lines: 34
Message-ID: <4le6pl$r6i@sloth.swcp.com>
Reply-To: ele@eece.unm.edu
NNTP-Posting-Host: casper.haunt.com
X-Newsreader: TIN [version 1.2 PL2]

HERE'S WHAT I'M TRYING TO DO:

I'm using the ppp device (although I eventually would prefer to (and
eventually plan to) use the tun device) by way of pppd and a chat
script to log into the ppp servers at the university.  The university
has three modem lines which are often very busy.  So, I'd like to
write a script something like:
   
   while(1)
   {
      dial_modem_line(1);
      if (connect_sucessful)   exit(0);
      dial_modem_line(2);
      if (connect_sucessful)   exit(0);
      dial_modem_line(3);
      if (connect_sucessful)   exit(0);
   }

SO MY QUESTION IS:

How do I check for a "connect_sucessful"?


AND IF YOU'RE FEELING GENEROUS:

Where can I get crypt (to be run from the command line) for freebsd?


Thanks much,

|  ___ Erik L. Ellis ____________ | ___ Staff Research Engineer _____________
| University of New Mexico        | Voice: 505/277-3431     FAX: 505/277-1413
| Department of Electrical and Computer Engineering
| Albuquerque, NM  87131          | URL: http://www.khoros.unm.edu/staff/ele/