I have a simple script that uses Net::FTP to open an FTP connection, like so:
$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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.