FTP ... stands for File Transfer Protocol. You have a server which has directories that you can read files from or copy file to (Depending on you access).
By typing FTP at the shell (command line) you are starting a client that can "get" or "put" files on the server.
If you are looking at doing this Client stuff from within a script hardburn is correct look at Net::FTP. (Example from the docs below)
#You have to tell your script to use the module.
#Establish a connection to the ftp server (in this case some.host
$ftp = Net::FTP->new("some.host.name", Debug => 0)
or die "Cannot connect to some.host.name: $@";
#provide the login information to the ftp server
or die "Cannot login ", $ftp->message;
#Change dir to /pub
or die "Cannot change working directory ", $ftp->message;
#copy the file from the ftp server to your local dir.
or die "get failed ", $ftp->message;
#End your connection to the ftp server
If you are looking to write a "kind of" server you need to look at Net::FTPServer although I have had no experience with this.
Of all the things I've lost in my life, its my mind I miss the most.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||