Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Beginners guide to Net::FTP

by RMGir (Prior)
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

Replies are listed 'Best First'.
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?
[Corion]: I hope all is well marto! ;) My godson had a surprise visit to the hospital yesterday because he fell and had cut his skin besides his eye, but everything was glued together again and all is well
[marto]: good grief, that's not fun, glad to hear all is as well as could be :)
[Corion]: marto: Yeah - their mother picked all three of them up at the kindergarden to then go to the hospital, and all three of them were well behaved, and all also were quite obedient when they came home, so they recognized the situation

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2016-12-08 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.