Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 think you need to load Readline in the debugger, but I don't know how
[Corion]: Yay, invitation for a team-building workshop, with a team of 100 people :-/
[Eily]: marto after an additional read I started to see the light actually. And choroba's link was helpful as well :)
[Corion]: I'll send my colleague who doesn't yet know the people there, and I'll do production duty instead.
[GotToBTru]: ugh. Thanks Corion

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-07-26 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (396 votes). Check out past polls.