home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
mailftp.zip
/
startppp.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1995-12-08
|
2KB
|
64 lines
/***********************************************************************
* Purpose: To automate an FTP session using a PPP account to pull in
* FidoTech stuff... rgwallen@datasync.com
* StartPPP.CMD - Updated from Bill Seward's two liner startup script
* Rexx Script to login to provider and launch Ftp-Sstar script if login
is successful...
* Pulled alot of stuff in from Don Russell's PPPDIAL.CMD script, along
* with comp.lang.rexx and OS2REXX newsgroup and echo areas.
***********************************************************************/
if RxFuncQuery("SysLoadFuncs") then
do
rc = RxFuncAdd("SysLoadFuncs","RexxUtil","SysLoadFuncs")
rc = SysLoadFuncs()
end
version = ".43"
/* Introduction */
say
say "Start-Up Script for Ftp-Sstar Version "version
say "Created in 1995. This program is freeware"
say
say "Many thanks to all that helped make this"
say "possible and work! - especially to the"
say "author of PPPDIAL - Don Russell - v2.7"
say
'@C:'
'@CD \tcpip\bin'
log = "c:\logs\fidoFtp.log" /* logfile location & name */
day = left(date('E'),2) /* logfile day formatted leading 0 */
mon = left(date('M'),3) /* logfile month formatted */
rc = stream(log,'C','open write') /* create if not exist and write */
say
say 'Starting PPPDial v2.7 Rexx OS/2 FTP Session'
say
rc = lineout(log,' ')
rc = lineout(log,''date('N') '---------------------------------------------')
rc = lineout(log,''day' 'mon' 'time()' FTP begin, PPPDial v2.7 Rexx OS/2 Session')
rc = lineout(log,''day' 'mon' 'time()' FTP Attempting PPP linkup with Datasync.com')
rc = stream(log,'C','close')
call syssleep 3
/* change this to the comport your goin to use along with the response file pathname. */
'ppp com2 115200 rtscts modem defaultroute priority 1 exit connect "pppdial.cmd c:\temp1\datasync.rsp"'
say
say 'PPP return code' rc
exit