Hello Paul, 

(P == "Paul") [EMAIL PROTECTED] discovered:

P> During the course of a cronjob scheduled script, I need to execute an
P> external program which connects to another server using an
P> implementation of eftp (sort of ftp for ISDN). The eftp program returns
P> no success/error codes, is moderately unstable, and the remote
P> server/network is often unavailable - thus blind automation is out of
P> the question. On a good day,  however, it all works and data/info is
P> sent to STDOUT.

P> My problem is this: how to make my script interact with the eftp
P> program? I need to start it, check for a successful connection, move
P> files around locally, upload/download files, send emails, log data, etc,
P> etc, depending on which commands were successful and which were not.

IMVHO, that sounds like a lot to ask. On the surface, it sounds like a
job for expect.

http://expect.nist.gov/

-Brian
--
Everyone who believes in telekinesis, raise my hands.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to