The FTP protocol has a nicely defined set of standardized error/success
messages so if you capture the session you can parse for the expected
messages. For example, I execute a batch file and capture the session
results then check as follows:

* check results                                                    
      LOCATE "226 Transfer complete." IN RESULTS SETTING POS THEN  
         TSTATUS = "TRANSFER COMPLETED"

      END ELSE                                                     
         TSTATUS = "TRANSFER FAILED"                               
      END                                                          

-----Original Message-----
From: Daly, Mark [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 5:05 AM
To: 'U2 Users Discussion List'
Subject: callFTP?


Anyone know if there's been talk about a callFTP function? That would be
nice to have.

Currently we're executing unix commands to ftp files around. But parsing the
output to determine whether or not the transfer was successful seems a bit
hap-hazard to me.

If anyone would care to share their ftp tricks and tips, I'd greatly
appreciate it.

Thanks,

Mark.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to