|
Hi Rick, Try using the PING command. What happens if you PING the remote system before the PPP dialup connection has completed? If it just returns an error, you could try CL code like this. LOOP: PING RMTSYS(remotesystem) MSGMODE(*QUIET *ESCAPE) MONMSG MSGID(TCP3210 TCP3202) EXEC(GOTO CMDLBL(ERR)) GOTO CMDLBL(CONT) ERR: DLYJOB DLY(60) GOTO CMDLBL(LOOP) CONT: ... do the FTP ... Another option might be to use the RTVCFGSTS command to retrieve the status of the PPP device. DCL VAR(&STS) TYPE(*DEC) LEN(5 0) LOOP: RTVCFGSTS CFGD(device) CFGTYPE(*DEV) STSCDE(&STS) IF COND(&STS *NE xx) THEN(DO) DLYJOB DLY(60) GOTO CMDLBL(LOOP) ENDDO ... do the FTP ... The "xx" in the IF statement is the value you are checking for. If you prompt the RTVCFGSTS command and get help on the "CL variable for status code", you can see what the different values are (60=ACTIVE, 40=CONNECT PENDING, etc). Hope this helps! Richard Casey -----Original Message----- From: Richard B Baird Sent: Tuesday, October 08, 2002 8:41 AM To: midrange-l@midrange.com Subject: Monitor for dialup connection before issuing FTP commands Hey all, I'm looking for recommendations on how to programatically wait for/monitor for/ensure that a PPP dialup connection has completed, and all the handshaking is done, so that I may start an ftp connection with the remote machine. <snip>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.