-=> Quoting William Mastop to Will Honea <=-
WM> isp, and if it fails to connect, then to call back and try again.
WH> Get PPDIALnn from Hobbes, etc. It's a REXX script for doing about
WH> what you want and has lots of helpful info. Last I saw was PPDIAL31.
WM> I feel a little foolish, but after looking at it, it appears not to be
WM> a command line utility. Is it? If so, how? William
Try this script:
/* REXX */
'ppp.exe'
say rc
The fist line, /* ... */ tells OS/2 that this is a rexx
script and not a simple batch file. The second line is the
command you'd use to connect to your internet server. The third
line prints to the screen the Return Code of the last command.
You should be able to figure out the various return codes that
occur in different situations, and execute different actions.
select
when rc = 99 then do
say 'User terminated the command'
exit
end
when rc = ...
end
otherwise
say 'This return code (' || rc || ') was received'
end
Or you could get PPPdial, which is a number of batch files,
and look at what's been done there.
Stephane [TEAM OS/2]
--- Blue Wave/OS2 v2.30
---------------
* Origin: Juxtaposition BBS. Lasalle, Quebec, Canada (1:167/133)
|