07-03-2001
Use Net::FTP Module from
http://search.cpan.org
$ftp = Net::FTP->new("some.host.name", Debug => 0);
$ftp->login("name",'pass');
$ftp->cwd("mydir");
$ftp->get("file");
$ftp->quit;
HTH
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello!
How I can increase or decrease predefined pipe buffer size?
System FreeBSD 4.9 and RedHat Linux 9.0
Thanks! (1 Reply)
Discussion started by: Jus
1 Replies
2. Shell Programming and Scripting
Hi all,
I am trying to download a build from an ftp server.
My problem is that my build contains sub folders and files within the sub folders.
I can ftp a single file at a time, but it will be difficult to specify all the paths and download individula files.
My build structure is:
... (2 Replies)
Discussion started by: gurukottur
2 Replies
3. Shell Programming and Scripting
Hello,
I have a program which opens a pipe for communication using file handle and forks 5 child processes.
@waitlist = (1,2,3,4,5);
foreach $item (@waitlist) {
pipe *{$item},RETHAND;
unless ($pid = fork()) {
# Child process
print RETHAND... (1 Reply)
Discussion started by: the_learner
1 Replies
4. Shell Programming and Scripting
Hi All, i want to have a ftp function in my perl but i am unfamailiar with the perl syntax. Can any body help ?
The ftp code below is in csh, can anybody help to convert this to perl with the same functionality ?
foreach t (10.10.10.10 20.20.20.20)
set USER = "xxx"
set PASS = "zzz"... (21 Replies)
Discussion started by: Raynon
21 Replies
5. Shell Programming and Scripting
My situations is I cannot use NET::ftp. So I need to have a way to automate ftp. I know how to do it in ksh:
#!/usr/bin/ksh
ftp -i -v -n $host_name <<_FTP >> $log_file 2>&1
user $user_name
lcd $local_dir
cd $remote_dir
put $file_name
bye
_FTP
But how can I do it in perl?
Note:... (6 Replies)
Discussion started by: egyfan
6 Replies
6. Shell Programming and Scripting
Hi,
I am using NET::FTP in perl to tranfer files.
i have an array of files
and then I m getting one bye one using foreach.
the problem is I m not gettng the complete list of files.
the program terminates after 2 files.
when I execute again it will transfer the remaining 2 files. (... (3 Replies)
Discussion started by: shellwell
3 Replies
7. Shell Programming and Scripting
Hi,
I have three files in this /home/mani/ location. I would like to ftp to another server.
could you please give perl for that requirement.
Thanks,
Mani (10 Replies)
Discussion started by: Mani_apr08
10 Replies
8. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
9. Shell Programming and Scripting
Hi,
Can anyone help me to start a monitoring script in perl of a FTP server. (2 Replies)
Discussion started by: phanik143
2 Replies
10. Shell Programming and Scripting
i want to upload two different files in to two different directories(path) on ftp server.but i am able to ftping only one at a time :(.. not both simultaneously.
here i have connectd the ftp and use the binary mode to transfer the files
$ftp = Net::FTP->new($ftphost, Debug => 0)
or... (2 Replies)
Discussion started by: aarts
2 Replies
LEARN ABOUT DEBIAN
authen::simple::ftp
Authen::Simple::FTP(3pm) User Contributed Perl Documentation Authen::Simple::FTP(3pm)
NAME
Authen::Simple::FTP - Simple FTP authentication
SYNOPSIS
use Authen::Simple::FTP;
my $ftp = Authen::Simple::FTP->new(
host => 'ftp.company.com'
);
if ( $ftp->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::FTP
PerlSetVar AuthenSimpleFTP_host "ftp.company.com"
<Location /protected>
PerlAuthenHandler Authen::Simple::FTP
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Authenticate against a FTP service.
METHODS
* new
This method takes a hash of parameters. The following options are valid:
* host Connection host, can be a hostname or IP number. Defaults to "localhost".
host => 'ftp.company.com'
host => '10.0.0.1'
* port Connection port, default to 21.
port => 21
* timeout
Connection timeout, defaults to 60.
timeout => 60
* log Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::FTP')
* authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
Net::FTP.
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.8 2008-03-01 Authen::Simple::FTP(3pm)