Re: Interactive external program execution
| From: | Brian Clark | Date: | Tue, 30 Jan 2001 12:59:14 +0000 |
| Subject: | Re: Interactive external program execution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37340@lists.php.net to get a copy of this message | ||
Hello Paul,
(P == "Paul") paul@page87.com 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.