TIP: Click on subject to list as thread! ANSI
echo: os2inet
to: WILLIAM MASTOP
from: RICH VERAA
date: 1997-06-27 11:52:00
subject: ppp.exe errorlevels

In a message to All William Mastop wrote:
WM> Does ppp.exe that comes with os/2 version 4 have an errorlevels? 
WM> I've tried a couple of simple tests, and checked the docs, but have
WM> not found anything as yet. 
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.  I
WM> do not want it to do an endless loop, where it calls back every time
WM> the session is over, as this is for unattended news and mail pickup.
WM> I've found, and built, a script that will just keep calling, but
WM> that's not what I want.  I only want it to call back if it fails to
WM> actually connect, like due to a busy, or no dialtone. Any
WM> suggestions would be appreciated here, or to wmastop@junction.net
Use ping to test for a good connection:
ping -c 1 -s 1 -n -q somehost
if errorlevel 1 goto nohost
I'm not sure if the OS/2 ping.exe returns an errorlevel -- but if not get 
Jack Grey's enhanced ping.exe -- look for ping.zip on Hobbes.
         Cheers,
           Rich
http://www.netside.net/~rveraa/
---------------
* Origin: Birdsoft - North Miami (1:135/907)

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™.