TIP: Click on subject to list as thread! ANSI
echo: os2inet
to: WILLIAM MASTOP
from: JOE LERCH
date: 1997-06-29 05:35:00
subject: ppp.exe errorlevels

William Mastop wrote in a message to All:
 WM> The goal is to run ppp.exe from the command line, have it dial my
 WM> isp, and if it fails to connect, then to call back and try again. 
 WM> I do not want it to do an endless loop, where it calls back every
 WM> time the session is over, as this is for unattended news and mail
 WM> pickup.  I've found, and built, a script that will just keep
 WM> calling, but that's not what I want.  I only want it to call back
 WM> if it fails to actually connect, like due to a busy, or no
 WM> dialtone. Any suggestions would be appreciated here, or to
 WM> wmastop@junction.net William
There is a Rexx program called autodial.zip available
that has everything you need to use ppp to call out,
and with a few modifications to your system, you should
be able to do all that you mention above. 
Although it was originally written for another purpose, 
it is easily changed to limit it's function to what you 
describe.  Everything is well documented, you just don't 
use the  parts you don't need. For us, it was much easier 
to use and  understand than PPPDIAL. Of course, you may 
want to also  use the sendip every time it calls out, 
just in case you  want to log on to your bbs from another 
system on the internet :)
here is the comments from the file:
/* auto dialup */
/* By Jeff Jackowski       */
/*    jeffj@ro.com         */
/*    http://ro.com/~jeffj */
/* This script will make the computer remotely dial up an ISP on demand */
/* Sequence of events:
   If the "S" paramter is given, call the suspend script (seporate process)
      The computer will enter suspend mode in 10 seconds
      AutoDial will continue to run before then
      See the instructions for the suspend script to make it work
   Wait for the phone to ring
   Wait for a person to leave a message on an answering machine
      75 seconds
   Spawn the OS/2 dialer to connect to the network
      The dialer is a text based dialer that the graphical dialer uses
      The dialer is included with Warp Connect and Warp v4.
   Wait for the dialer to connect
      75 seconds (mine is slow)
   Check the connection
   Dial again until connectio is made
   Send an email with computer's IP address
      use "SENDIP21"
   Check connection every 15 minutes
      Dialer is set to disconnect after 12 minutes of inactivity
   After loss of connection, wait again for the phone to ring.
   This works great with the telnetd and ftpd programs included in Warp v4. 

joe
--- timEd/2 1.10
---------------
* Origin: After Hours BBS (717)865-2636 USR DS 16.8 (1:270/315)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.