Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using FTP Without any Modules

by turo (Friar)
on May 18, 2006 at 11:39 UTC ( [id://550218]=note: print w/replies, xml ) Need Help??


in reply to Using FTP Without any Modules

blazar, maybe he wants to migrate from ksh to an oister shell :-P jejeje

anyway, i haven't sleept too much today, so for keeping me on, i decided to translate it:

#!/usr/bin/perl # Give port or mention server name my $ip='some.machine'; #User ID to login into remote server my $user='anonymous'; #Password to login in remote server my $pass='super-secret'; open (FTP, "|-", "/usr/bin/ftp -n"); print FTP <<EOF ; open $ip quote user $user quote pass $pass lcd bye EOF print "*$_\n" while (<FTP>); close FTP;

perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'

Janitored by Corion: Changed machines and login/password

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found