Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Welcome to the Monastery
 
PerlMonks  

Re: Beginners guide to Net::FTP

by RMGir (Parson)
on Aug 14, 2002 at 12:29 UTC ( #190045=note: print w/ replies, xml ) Need Help??


in reply to Beginners guide to Net::FTP

Nice guide, ++.

But don't forget binary!

The version you wrote will work fine if you're running from a Unix client box to a Unix server.

But if the client side is a Win32, Mac, or VMS box (and maybe if the server side is) you want to make sure you call

$f->binary();
before you do any other operations. From the perldoc
The protocol also defines several standard translations which the file can undergo during transfer. These are ASCII, EBCDIC, binary, and byte. ASCII is the default type, and indicates that the sender of files will trans- late the ends of lines to a standard representation which the receiver will then translate back into their local representation.

--
Mike


Comment on Re: Beginners guide to Net::FTP
Select or Download Code
Re^2: Beginners guide to Net::FTP
by Anonymous Monk on Apr 14, 2009 at 02:03 UTC
    Is it possible to execute 'ls -la' via Net::FTP. I'm using the module but the server creates files that begin with a '.' and I need to see those.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-04-23 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls