redss has asked for the wisdom of the Perl Monks concerning the following question:
$ftp = Net::FTP->new($FTP_HOST); $ftp->login($FTP_USERNAME, $FTP_PASSWORD);
I want the script to either continue running in the background (to keep the ftp connection alive) or exit without closing the connection.
Here's my real question:
I want to invoke a DIFFERENT perl script that will access the FTP object created in the first script, to utilize the put method of it.
(that way the 2nd script can quickly send the file without having to initialize the connection, as that was done in the first script)
I suppose I'm looking for a way to serialize the ftp object to a file, unless there is a better technique of interprocess communication that I can try.
Ideas anyone?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to serialize Net::FTP object?
by Joost (Canon) on Dec 06, 2004 at 20:38 UTC | |
by redss (Monk) on Dec 06, 2004 at 21:56 UTC | |
by BUU (Prior) on Dec 07, 2004 at 07:04 UTC |