Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: FTP issue - feedback appreciated

by monk2b (Pilgrim)
on May 23, 2001 at 22:21 UTC ( [id://82660]=note: print w/replies, xml ) Need Help??


in reply to FTP issue - feedback appreciated

I use a very simple version of what you are doing.
It is easier for me to understand
#!/usr/local/bin/perl -w use Net::FTP; $hostname = 'hostname'; # ie laserlight.net $username = 'whatever'; # ie login name $password = 'whatever'; # ie adb87nhe $ftp = Net::FTP->new($hostname); $ftp->login($username, $passwd); $ftp->cwd("/home/kevin"); # this is where you change directories $ftp->put("$OUTFILE2/IC$CPREVDATE"); $ftp->quit;

This code sample may very well be too simple for you to use
it helps me understand the process better.

made the corrections that beatnik suggested

learning monk2b

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found