[nlug] Re: Running Commands in Perl

From: Scott Carr (Yeah, right)
Date: 02/09/06

  • Next message: Phil Dier: "[nlug] Re: Running Commands in Perl"

    Why not just do the FTP from within PERL?

    http://search.cpan.org/~gbarr/libnet-1.19/Net/FTP.pm

    Paul Boniol wrote:
    > I know there are a couple of ways to execute an external program with
    > Perl, but what I know of is more like spawning external processes. Is
    > there a way to run a command line tool "interactively" with Perl, so
    > that it sees what the responses are, and can give it different
    > commands based on the responses.
    >
    > In this particular case, I'd like to run ftp to transfer a file,
    > verify there was no error, and then continue processing. If there
    > were an error (like server unreachable, etc.) I'd do put out a warning
    > and do something different (haven't thought out what yet...).
    >
    > Thanks,
    > Paul

    -- 
    Scott Carr
    OpenOffice.org
    Documentation Co-Lead
    http://documentation.openoffice.org
    -- 
    Send all requests to:  Yeah, right
     Put your command in the SUBJECT of the message:
       "subscribe" or "unsubscribe"
    Quick unsubscribe: <mailto:Yeah, right?Subject=3Dunsubscribe>
    Mailing list archives may be found at: <http://www.nlug.org/mail/>
    **********************************************************************
    This list is from your pals at NetCentral <http://www.netcentral.com/>
    

  • Next message: Phil Dier: "[nlug] Re: Running Commands in Perl"

    This archive was generated by hypermail 2.1.6 : 02/09/06 CST