Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: use of quote within ftp

by kschwab (Priest)
on Aug 20, 2002 at 16:40 UTC ( #191509=note: print w/replies, xml ) Need Help??


in reply to use of quote within ftp

Net::FTP can do this, is has a "quot" method to send commands that it doesn't have specific support for:
use Net::FTP; my $ftp = Net::FTP->new('ftp.rge.com'); $ftp->login('ftp','anon@'); my $okay=$ftp->quot('HELP'); my $code=$ftp->code; my $message=$ftp->message; print "[$okay] [$code] [$message]\n";
Prints:
$ perl tester [2] [214] [The following commands are recognized (* =>'s unimplemented +). USER PORT STOR MSAM* RNTO* NLST MKD* CDUP PASS PASV APPE* MRSQ* ABOR SITE XMKD* XCUP ACCT* TYPE MLFL* MRCP* DELE* SYST RMD* STOU* SMNT* STRU MAIL* ALLO* CWD STAT XRMD* SIZE REIN* MODE MSND* REST XCWD HELP PWD MDTM QUIT RETR MSOM* RNFR* LIST NOOP XPWD Direct comments to ftp@rge.com. ]
Some of the methods come from Net::Cmd, which Net::FTP is derived from. See the docs for both.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://191509]
help
Chatterbox?
[shmem]: perl -lE '$_="odd mornin";($o=$_)=~ s/^|$/g/g;say$o'
[Eily]: Hi monks o/
[choroba]: 3 PM in Vietnam, BTW
Discipulus maybe a wrong impression..
[karlgoethebier]: Discipulus: Workshops are for weenies ;-)
[Discipulus]: here 43C high umidity, tiger mosquitos, violence in the street.. everywhere is vietnam
[karlgoethebier]: OK, i'm socially unacceptable
[karlgoethebier]: Discipulus: Were the hell are you today?
[Discipulus]: ..or suitable for the presidence ;=)
[Discipulus]: at Caput Mundi

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-06-27 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (600 votes). Check out past polls.