Re: solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread Chas. Owens
{CODE} *Fully::Qualified::sub_name = sub { #do stuff before $old->(@_); #do stuff after }; } On Sat, Aug 20, 2016, 05:44 hw wrote: > Chas. Owens schrieb: > > If you want to get rid of ALLO completely, it looks like you just need > to monkeypatch Net::FTP::_ALLO to r

solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread hw
Chas. Owens schrieb: If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new m

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread Chas. Owens
If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new method that just returns 1. I

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread hw
Chas. Owens schrieb: Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a comman

Re: Net::FTP ALLO

2016-08-19 Thread Chas. Owens
Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a command you aren't askin

Net::FTP ALLO

2016-08-19 Thread hw
Hi, is there some way to prevent Net::FTP from using the ALLO command or to make it ignore failures when this command is used? I have to deal with ftp servers that do not understand the ALLO command. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Net::FTP

2013-03-12 Thread Jim Gibson
On Mar 8, 2013, at 4:47 PM, Chris Stinemetz wrote: > U > sing Net::FTP is there a way to rename a file after locating it and before > putting it? > > For example: > > $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't >

Re: Net::FTP

2013-03-11 Thread Nathan Hilterbrand
On 03/08/2013 07:47 PM, Chris Stinemetz wrote: U sing Net::FTP is there a way to rename a file after locating it and before putting it? For example: $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't put file: $!"; Doesn't transfer

Net::FTP

2013-03-08 Thread Chris Stinemetz
U sing Net::FTP is there a way to rename a file after locating it and before putting it? For example: $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't put file: $!"; Doesn't transfer correctly because the windows FTP server doesn&#

Re: Net::FTP fails when invoked from browser

2009-11-10 Thread boman
that when running the script from the command line, I see a lot of Net::FTP GLOB messages. These are not being output to the browser. Once I noticed that, I set debug from 1 to 0. That seems to have fixed the issue. Now the entire set of files get FTPd without the process stalling. So maybe the FTP

Re: Net::FTP fails when invoked from browser

2009-11-09 Thread Peter Scott
On Sat, 07 Nov 2009 09:51:49 -0800, Boman wrote: > Have a simple script to FTP all files in one dir to a Solaris box. > Script runs fine when invoked from command line. However, when invoked > from browser (simple html form with one button that calls the .pl > script), only some files get FTPd. The

Re: Net::FTP fails when invoked from browser

2009-11-08 Thread Dermot
2009/11/7 boman : > Have a simple script to FTP all files in one dir to a Solaris box. > Script runs fine when invoked from command line. However, when invoked > from browser (simple html form with one button that calls the .pl > script), only some files get FTPd. The process seems to stall, then >

Net::FTP fails when invoked from browser

2009-11-07 Thread boman
. Running Apache 2.2 on Windows 2003 SP2, perl 5.8.8, ftp-ing to Solaris 9 box. #!c:/Perl/bin/perl.exe use CGI qw/:standard/; use Net::FTP; $| = 1; $sourcedir = "d:\\sourcefiles"; $ftpdir = "/destination"; print header; print start_html('FTP'); $time = `time /T

Re: Net::FTP fails when invoked from browser

2009-11-07 Thread Uri Guttman
cript), only some files get FTPd. The process seems to stall, then b> the browser times out. b> Running Apache 2.2 on Windows 2003 SP2, perl 5.8.8, ftp-ing to Solaris b> 9 box. b> #!c:/Perl/bin/perl.exe b> use CGI qw/:standard/; b> use Net::FTP; b> $| = 1; b>

Fwd: NET::FTP object constructor's host option as array reference

2009-07-18 Thread Jefferson Kirkland
Sorry, original message had wrong address for this list and I didn't notice. Here is the chain. Regards, Jeff -- Forwarded message -- From: Jefferson Kirkland Date: Sat, Jul 18, 2009 at 9:17 PM Subject: Re: NET::FTP object constructor's host option as array re

NET::FTP object constructor's host option as array reference

2009-07-18 Thread Corey Foote
I'm building an FTP client using NET::FTP. The documentation states that the new constructor has a host option which can be a reference to an array with hosts to try in turn. I don't seem to be able to get this to work. I'm using ActivePerl under Windows XP. Here's

Re: grep Net::FTP

2009-05-27 Thread Mihir Kamdar
get files from multiple >> directories >> in remote location using FTP. Following is the script that I tried:- >> >> #!/usr/bin/perl >> use Net::FTP; >> use strict; >> for (my $count=0; $count < 2; $count++) >> { >> print "Please enter

Re: grep Net::FTP

2009-05-26 Thread John W. Krahn
Mihir Kamdar wrote: Hi, I want to write a perl script which will get files from multiple directories in remote location using FTP. Following is the script that I tried:- #!/usr/bin/perl use Net::FTP; use strict; for (my $count=0; $count < 2; $count++) { print "Please enter the direct

grep Net::FTP

2009-05-26 Thread Mihir Kamdar
Hi, I want to write a perl script which will get files from multiple directories in remote location using FTP. Following is the script that I tried:- #!/usr/bin/perl use Net::FTP; use strict; for (my $count=0; $count < 2; $count++) { print "Please enter the directory name to ftp files:

Re: Re: Net::ftp

2008-11-01 Thread ringlink
or consider to use rsync tool, that's simple and effective enough. - Original Message - From: Dermot To: [EMAIL PROTECTED] Subject: Re: Net::ftp Date: 2008-11-2 05:45:32 2008/11/1 [EMAIL PROTECTED] : You nearly had in. I think you assumed that you could copy a directory and

Re: Net::ftp

2008-11-01 Thread Dermot
ine) or die "Can't read $folder_to_mirror_my_machine: $!\n"; my @files_to_upload = grep{! /\./ && -f "$folder_to_mirror_my_machine/$_" } readdir(DIR); $ftp=Net::FTP->new($host); $ftp->login($user,$pw) or die "could not login"; $ftp->cwd($dir); # You may ch

Net::ftp

2008-11-01 Thread open . network . design
Im trying to mirror a directory on my computer with another directory with Net FTP. Below is the code im using. Im new to perl and new to Net::FTP so any help would be great! use Net::FTP; use File::Basename; my $ftp; my $host ='example.com'; my $user ='example'; my $dir =

Net::FTP troubles with passive

2007-11-20 Thread RICHARD FERNANDEZ
Hi Folks, I have a script that sends a file to a vendor. After running tcpdump I can see that it's trying to do a passive mode transfer which our firewall is having problems with. I would like to turn this off and specify an active mode transfer, but the doco for Net::FTP only talks about tu

RE: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-26 Thread RICHARD FERNANDEZ
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > I'm using a URL of the form ftp://MyCpanMirror/u02/CPAN/ > > Is your mirror server running Apache or some http server? I > have an internal mirror that I connect to via http and it > works like a charm. >

Re: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread Mumia W.
On 06/25/2007 12:40 PM, RICHARD FERNANDEZ wrote: [...] I'm not sure where else to go with this. It looks like I can eventually get what I need installed, but not without a long bumpy ride first. [...] A nice feature for someone to add to CPAN.pm would be the option to set the preferred ftp opt

Re: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread usenet
On Jun 25, 8:32 am, [EMAIL PROTECTED] (Richard Fernandez) wrote: > I'm trying to use the CPAN shell to install some modules from our > internal CPAN mirror. > I'm using a URL of the form ftp://MyCpanMirror/u02/CPAN/ Is your mirror server running Apache or some http server? I have an internal mirr

RE: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread RICHARD FERNANDEZ
quot;)->lpa' > It looks like Net::Netrc is working: # perl -MNet::Netrc -lwe 'print join(" ", Net::Netrc->lookup("MyCpanMirror")->lpa)' Use of uninitialized value in join or string at -e line 1. cpan XpasswdX I've also tested Net::FTP separate

Re: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread Tom Phoenix
r box. At first I was able to query/install modules easily, but then I did an "install Bundle::CPAN", and now I can't log into my CPAN mirror. To be specific, LWP and Net::FTP are attempting to use an anonymous login, which is not allowed, instead of trying to log in via the user

RE: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread RICHARD FERNANDEZ
One other thing. I am able to successfully login to the mirror box using command line FTP and netrc for authentication. richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread RICHARD FERNANDEZ
asily, but then I did an "install Bundle::CPAN", and now I can't log into my CPAN mirror. To be specific, LWP and Net::FTP are attempting to use an anonymous login, which is not allowed, instead of trying to log in via the user information contained in .netrc. I've read the docs

Re: How can I respond to Net::FTP timeouts?

2007-04-30 Thread charlie farinella
On Thursday 26 April 2007 21:47, Tom Phoenix wrote: > On 4/26/07, charlie farinella <[EMAIL PROTECTED]> wrote: > > I have a script which uses Net::FTP to upload a backup file each > > night. It sends me an email each night if it succeeds and a different > > email if any

Re: How can I respond to Net::FTP timeouts?

2007-04-26 Thread Tom Phoenix
On 4/26/07, charlie farinella <[EMAIL PROTECTED]> wrote: I have a script which uses Net::FTP to upload a backup file each night. It sends me an email each night if it succeeds and a different email if any of the methods fail. This all works, but sometimes the ftp connection times out

How can I respond to Net::FTP timeouts?

2007-04-26 Thread charlie farinella
I have a script which uses Net::FTP to upload a backup file each night. It sends me an email each night if it succeeds and a different email if any of the methods fail. This all works, but sometimes the ftp connection times out and my script hangs without sending anything. I don't kno

doing an "mget" with Net::FTP

2006-08-21 Thread RICHARD FERNANDEZ
Hi folks, I have a directory full of filenames that contain spaces (a la Windows). Is there an easy way to do an mget with Net::FTP, or do I need to parse the output of $ftp->dir? The doco for Net::FTP doesn't mention mget... TIA! richf -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: net::ftp with retry & Big brother notifications from applications

2006-05-18 Thread Ken Foskey
Better documentation... Use alert module instead of simply printing error message. =head1 AUTHOR Ken Foskey =head1 COPYRIGHT Copyright 2006 GPL =cut use warnings; use strict; package ftp_retry; use Net::FTP; use File::Basename; require 'Exporter.pm'; use vars qw( $VERSION

Re: net::ftp with retry & Big brother notifications from applications

2006-05-14 Thread Alan_C
On Sunday 14 May 2006 04:45, Ken Foskey wrote: [ during xfer, the connection ocasionally breaks ] [ seeks to resume the xfer where left off ] > Secondly is there an easy way to send messages to Big Brother to go > orange, red then go green again? We are using a file and writing > messages and ther

net::ftp with retry & Big brother notifications from applications

2006-05-14 Thread Ken Foskey
I am trying to transfer across a link that is unreliable. (OK it is reliable but it does break occasionally.) Basically when I connect to the server and fail, I back off issue a message to Big Brother, and then retry after 10 minutes, again after 20 and again after 30 minutes. I was wondering if

Re: NET::FTP

2006-01-25 Thread Tom Phoenix
On 1/25/06, DiGregorio, Dave <[EMAIL PROTECTED]> wrote: > Using PPM I can not find NET::FTP Odd. Have you seen this? http://cpan.uwinnipeg.ca/htdocs/faqs/faq.html#07 > Is NET::FTP only available on perl 5.8? Or should I be able to just > grab the module from somewhere and

NET::FTP

2006-01-25 Thread DiGregorio, Dave
I am using 5.6 Using PPM I can not find NET::FTP all that are listed are: ==> NET::FTP::Common ==> NET::FTP::SHELL ==> NET::FTP::BLAT ==> NET::TFTP Is NET::FTP only available on perl 5.8? Or should I be able to just grab the module from somewhere and pla

Re: perl net ftp on windows

2005-12-30 Thread mtbr1221
(this list replies to the poster, not to the list unless I specify to list--I'm growing accustomed) (here's one for the list) (hopefully in the future I just send to list by remembering to specify so) On Thu, 29 Dec 2005 13:08 , [EMAIL PROTECTED] sent: >I cannot figure out how Net

perl net ftp on windows

2005-12-29 Thread DBSMITH
I cannot figure out how Net::FTP set its local current directory for gets of remote files? Does anyone know? I want to get remotefile from remotehost using: but I want to place this file in $localdir not in what Net::FTP claims to be get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) Get

Net::FTP tip

2005-10-20 Thread kathyjjja
lso, I thought $ftp->ascii was supposed to handle formatting problems. Turns out $ftp->binary is what works for this application. Thanks, Kathy use Net::FTP; $ftp = Net::FTP->new("aaa.bbb.org", Debug =>0) or die "Cannot connect to aaa.bbb.org: $@"; $ftp-&

Re: error message with net::FTP

2005-08-01 Thread Tom Allison
Laurent Coudeur wrote: -Original Message- From: Owen [mailto:[EMAIL PROTECTED] Sent: 29 July 2005 00:07 To: beginners@perl.org Subject: Re: error message with net::FTP On Thu, 28 Jul 2005 10:17:35 -0400 "Laurent Coudeur" <[EMAIL PROTECTED]> wrote: I am having some

RE: error message with net::FTP

2005-07-29 Thread Laurent Coudeur
-Original Message- From: Owen [mailto:[EMAIL PROTECTED] Sent: 29 July 2005 00:07 To: beginners@perl.org Subject: Re: error message with net::FTP On Thu, 28 Jul 2005 10:17:35 -0400 "Laurent Coudeur" <[EMAIL PROTECTED]> wrote: > I am having some trouble with net::FT

Re: error message with net::FTP

2005-07-28 Thread Owen
On Thu, 28 Jul 2005 10:17:35 -0400 "Laurent Coudeur" <[EMAIL PROTECTED]> wrote: > I am having some trouble with net::FTP module > I get this error message > Timeout at /usr/lib/perl5/5.8/Net/FTP.pm line 1001 > > the script list directories in a path > then loo

error message with net::FTP

2005-07-28 Thread Laurent Coudeur
Hi there, I am having some trouble with net::FTP module I get this error message Timeout at /usr/lib/perl5/5.8/Net/FTP.pm line 1001 the script list directories in a path then loops and list subdirectories I can connect and list files but as I try to ls into final sub-directory it hangs I get

Net::FTP works someplaces

2005-06-16 Thread Robert Citek
Anyone have any ideas why code using Net::FTP on one machine won't work on another? I have this piece of code that runs on a Red Hat 9 linux machine and on one Mac OS/X 10.4.1. But this same code does not run on a second OS/X 10.4.1 machine. By not run I mean it waits a long ti

Re: Feed Net::FTP an in-memory file

2005-04-21 Thread John W. Krahn
is the _File_ Transfer Protocol. The put() method seems to expect a path only, rather than a filehandle perldoc Net::FTP [snip] put ( LOCAL_FILE [, REMOTE_FILE ] ) Put a file on the remote server. "LOCAL_FILE" may be a name or a filehandle. John -- use Perl; program fulf

Re: Feed Net::FTP an in-memory file

2005-04-21 Thread Peter Rabbitson
($new_file_on_ftp_server); > $stor->write($new_file_guts, length($new_file_guts)); > $stor->close(); > > See `perldoc Net::FTP` for more info > > HTH :) > > Lee.M - JupiterHost.Net > E... This looks a little complicated. I mean I would have to get size of the

Re: Feed Net::FTP an in-memory file

2005-04-21 Thread JupiterHost.Net
put() method seems to expect a path only, rather than You'd use stor/write/close: my $stor = $ftp->stor($new_file_on_ftp_server); $stor->write($new_file_guts, length($new_file_guts)); $stor->close(); See `perldoc Net::FTP` for more info HTH :) Lee.M - JupiterHost.Net -- To un

Re: Feed Net::FTP an in-memory file

2005-04-21 Thread mgoland
- Original Message - From: Peter Rabbitson <[EMAIL PROTECTED]> Date: Thursday, April 21, 2005 10:42 am Subject: Feed Net::FTP an in-memory file > Hello everyone, > > Very simple: I need to generate a file and upload it to ftp. > Currently I am > wrapping the f

Feed Net::FTP an in-memory file

2005-04-21 Thread Peter Rabbitson
Hello everyone, Very simple: I need to generate a file and upload it to ftp. Currently I am wrapping the file together, writing it out to a temp file on disk, calling $ftp->put($tmp_file) on it, and unlinking it. Is there a way to skip the write to disk? The put() method seems to expect a path

using GET of NET::FTP

2005-04-16 Thread Sunil Kumar Darshanam
get ($remote,$local,$where) is failing whenever i use the third arguement. here in this case my file to be downloaded from FTP is of size 5MB. 2Mb of it is downloaded, now when i am executing the get ($remote,$local,$where) with $where as 2MB(2048), get method is returning me nothing and download

Net::FTP problems

2005-02-24 Thread John
Hi all I tried to chroot the perl and when i am trying to run a Net::FTP script I receive the error Net::FTP: Bad protocol 'tcp' Do you know what is going on?

Installing Net::FTP on Solaris (was: Re: Effective Perl Programming - Still valid, dated 1998?)

2005-02-16 Thread Wiggins d'Anconia
Please start a new thread when sending an unrelated question, don't reply to a previous thread to prevent being ignored. Pablo Wolter wrote: Hi, I have a stupid question to you guys; I need to install Net::Ftp module on a solaris production machine and feeling insecure to screw up the s

Re: Net::FTP and filehandle with get()

2005-01-19 Thread John W. Krahn
steve abrams wrote: Hi all, Hello, First post to the group. I have two questions, but they go hand in hand. The first: Net::FTP documentation reports that get syntax is: get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) I do the following (with $ftp initialization omitted here): local $fh = IO::File

Net::FTP and filehandle with get()

2005-01-17 Thread steve abrams
Hi all, First post to the group. I have two questions, but they go hand in hand. The first: Net::FTP documentation reports that get syntax is: get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) I do the following (with $ftp initialization omitted here): local $fh = IO::File->new_tmpfile; $ftp-&

Re: Net::FTP::SSL ?

2004-12-06 Thread JupiterHost.Net
Kelvin Wu wrote: Hello Perl, Hello, Perl is busy right now, I'm Lee ;p I am looking for a Perl module which is used to access FTPd via SSL, Auth TLS. Is there something called Net::FTP::SSL or others? A quick search on search.cpan.org brought this up: http://search.cpan.org/~drolsky/Net

Net::FTP::SSL ?

2004-12-06 Thread Kelvin Wu
Hello Perl, I am looking for a Perl module which is used to access FTPd via SSL, Auth TLS. Is there something called Net::FTP::SSL or others? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.

RE: ftp w/o using Net::FTP

2004-10-28 Thread Thomas Bätzler
James P Donnelly <[EMAIL PROTECTED]> asked: > I am only trying to login into a server, travese to the > correct directory, dump a file and quit. I have hacked > together something that gets me to the server and > then it seems to hang at the login.. Has anyone written > something like > this

ftp w/o using Net::FTP

2004-10-27 Thread James P Donnelly
I am trying automate some processes and ftp is not allowed to contact servers outside my intranet (socks). I am only trying to login into a server, travese to the correct directory, dump a file and quit. I have hacked together something that gets me to the server and then it seems to hang at the

About Net::FTP::Recursive..................roy

2004-10-18 Thread Roime bin Puniran
Hi all...glad to see u again... I have one question. Actually i used Net::FTP::Recursive to transfer a directory(not even a single files, but it's really2 a directory) and its content between machine..Here is my code.. #!/us

RE: Copy folder using Net::FTP

2004-09-19 Thread Roime bin Puniran
Thanks for ur reply..Actually, i need to transfer a folder that continously updated. It's so difficult to tarball a directory first then send it through Net::FTP while the content of the directory always updated...I mean my problem is, i need to transfer a folder without tarball it first

Re: Copy folder using Net::FTP

2004-09-19 Thread Chris Devers
say, "Perl" doesn't stand for anything, so it shouldn't be capitalized as if it's an acronym. > I have one question to ask..How can i transfer a folder in 2 different > machine using Net::FTP...Now, i can transfer a sigle file between 2 > machine but i am still h

Copy folder using Net::FTP

2004-09-19 Thread Roime bin Puniran
I am new in PERL programming...I have one question to ask..How can i transfer a folder in 2 different machine using Net::FTP...Now, i can transfer a sigle file between 2 machine but i am still having problemm to transfer a folder using Net::FTP...Did anybony have any idea?Please help me

Re: Net ::FTP and subroutine calls

2004-09-17 Thread Colegate Spinks
OhioHealth.com> writes: ..snip.. I'm fairly new to Perl, but have been working on a similar typ problem and monitoring the success of my Net::FTP session. I used logic similarm to the following: my ftp; if($ftp = Net::FTP->new($remotehost)) { print "Initial FTP succe

Re: Net ::FTP and subroutine calls

2004-09-17 Thread Chris Devers
On Fri, 17 Sep 2004 [EMAIL PROTECTED] wrote: > yes my ftp code has always worked, so lets move on! Ok -- you didn't actually say that, you just said things don't work. The way you're using the die statement won't work. Go back to the docs and usual manuals to look for other ways to do this. Th

Re: Net ::FTP and subroutine calls

2004-09-17 Thread DBSMITH
s List <[EMAIL PROTECTED]> Subject: Re: Net ::FTP and subroutine calls On Fri, 17 Sep 2004 [EMAIL PROTECTED] wrote: > Right thanks forgot about that! So how do I out this failed info to > STDOUT (ftplog), b/c if it does fail I would want to know! First thin

Re: Net ::FTP and subroutine calls

2004-09-17 Thread Chris Devers
On Fri, 17 Sep 2004 [EMAIL PROTECTED] wrote: > Right thanks forgot about that! So how do I out this failed info to > STDOUT (ftplog), b/c if it does fail I would want to know! First things first: does the version I sent yesterday work? Focus on getting the FTP transaction to finish properl

Re: Net ::FTP and subroutine calls

2004-09-17 Thread DBSMITH
my $user="; my $pass="xxx; my $data=$scratchtps; my $ftplog="/usr/local/log/ftp_IrMt_scratchtapes.log"; my $ftp = Net::FTP->new($remotehost, Debug => 10) || die "Cannot

Re: Net ::FTP and subroutine calls

2004-09-16 Thread Chris Devers
tchtps ); sub ftpme { my $data = shift; my $remotehost = "ftp.digitalarchives.com"; my $user = "cb100524"; my $pass = "xxx"; my $ftp= Net::FTP->new( $remotehost, Debug => 10 ) or d

Re: Net ::FTP and subroutine calls

2004-09-15 Thread Chris Devers
On Wed, 15 Sep 2004 [EMAIL PROTECTED] wrote: > no nothing is showing up in the file. Here is where I looked for > information on Net::FTP > > http://search.cpan.org/~gbarr/libnet-1.19/Net/libnetFAQ.pod > > ok I will look in perldoc -f package. Is there a better place thou

Re: Net ::FTP and subroutine calls

2004-09-15 Thread DBSMITH
no nothing is showing up in the file. Here is where I looked for information on Net::FTP http://search.cpan.org/~gbarr/libnet-1.19/Net/libnetFAQ.pod ok I will look in perldoc -f package. Is there a better place though? Chris Devers <[EMAIL PROTECTED]> 09/15/2004 07:04 PM

Re: Net ::FTP and subroutine calls

2004-09-15 Thread Chris Devers
= "xxx"; > my $data = $scratchtps; > my $ftplog = "/usr/local/log/ftp_IrMt_scratchtapes.log"; > > my $ftp= Net::FTP->new( >$remotehost, Debug => 10 > ) or die "cannot connect to $remotehost: I

Net ::FTP and subroutine calls

2004-09-15 Thread DBSMITH
local/log/ftp_IrMt_scratchtapes.log"; my $ftp = Net::FTP->new( $remotehost, Debug => 10) or die "cannot connect to $remotehost: IronMt"; $ftp->login($user, $pass) or die "cannot login ", $ftp->$f

Re: Net::FTP Help !

2004-08-13 Thread Kelvin Wu
gt; > Chris > > > > > -----Original Message- > From: Kelvin Wu [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 10:44 PM > To: [EMAIL PROTECTED] > Subject: Re: Net::FTP Help ! > > my @raw_list = $ftp->dir($remote_dir); > my @f

RE: Net::FTP Help !

2004-08-10 Thread Chris Federico
d what is this doing .. Thanks Chris -Original Message- From: Kelvin Wu [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 10:44 PM To: [EMAIL PROTECTED] Subject: Re: Net::FTP Help ! my @raw_list = $ftp->dir($remote_dir); my @files; for (@raw_list) { # Skip directory

Re: Net::FTP Help !

2004-08-10 Thread Kelvin Wu
my @raw_list = $ftp->dir($remote_dir); my @files; for (@raw_list) { # Skip directory and symblink next if $_ =~ /^d|^l/; # Store file name if ($_ =~ /(.+)(\d\d:\d\d) (.+)/) { next if ($2 eq '.' or $2 eq '..'); push @files, $2; } } On Mon, 9 Aug 2004 19:38:19 -0600, Wiggins d An

Re: Net::FTP Help !

2004-08-09 Thread Wiggins d Anconia
> > Hi Guys and Gals , > > I'm new to perl ... Here is my problem .. > > I'm connecting fine to the remote computer and logging in fine .. what I > want to do is a get all files from the remote directory . Here is is a > snippet of the code > > $ftp->cwd($remote_dir) > or die "cannot cha

Net::FTP Help !

2004-08-09 Thread Chris Federico
Hi Guys and Gals , I'm new to perl ... Here is my problem .. I'm connecting fine to the remote computer and logging in fine .. what I want to do is a get all files from the remote directory . Here is is a snippet of the code $ftp->cwd($remote_dir) or die "cannot change working directory "

Re: NET::FTP

2004-06-05 Thread Philipp Traeder
On Saturday 05 June 2004 HH:58:11, Edward Ludlow wrote: > philipp traeder wrote: > > "perldoc Net::FTP" is your friend - there you'll find documentation for > > the put() method, which should be what you want. > > Basically, you just need to extend your scrip

Re: NET::FTP

2004-06-05 Thread Edward Ludlow
philipp traeder wrote: "perldoc Net::FTP" is your friend - there you'll find documentation for the put() method, which should be what you want. Basically, you just need to extend your script a bit - something like: my $ftp = Net::FTP->new(...); $ftp->login("username&q

Re: NET::FTP

2004-06-05 Thread philipp traeder
On Saturday 05 June 2004 HH:28:05, Edward Ludlow wrote: > I'm a newbie to Perl - I'm having to dip in and try and do some coding > as I need a script that will move a file from one server to another. I > believe this can be done with the Net::FTP object. > I've pla

NET::FTP

2004-06-05 Thread Edward Ludlow
Hi all, I'm a newbie to Perl - I'm having to dip in and try and do some coding as I need a script that will move a file from one server to another. I believe this can be done with the Net::FTP object. I've played around whit this a fair bit, and I think this script should wor

Re: Help with Net::FTP behaviour

2004-06-02 Thread Wiggins d Anconia
> > What is unexpected about this? Your error is being caught, and the > > first line is just a warning, and a pretty useful one at that. > > > >From the Net::FTP documentation: > > > get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) > > Get "RE

Re: Help with Net::FTP behaviour

2004-06-02 Thread Papo Napolitano
> What is unexpected about this? Your error is being caught, and the > first line is just a warning, and a pretty useful one at that. >From the Net::FTP documentation: get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) Get "REMOTE_FILE" from the server and store locally. &q

Re: Help with Net::FTP behaviour

2004-06-02 Thread Wiggins d Anconia
> I have this little piece of code: > > > -- CUT -- > #!/usr/bin/perl > > use strict; > use warnings; > use Net::FTP; > > my $address = "localhost"; > my $port = 21; > my $user = "test"; > my $pass = "test"; > m

Help with Net::FTP behaviour

2004-06-02 Thread Papo Napolitano
I have this little piece of code: -- CUT -- #!/usr/bin/perl use strict; use warnings; use Net::FTP; my $address = "localhost"; my $port = 21; my $user = "test"; my $pass = "test"; my $sourcedir = "/test/"; my $sourcemask = "*"; my $destdir =

Re: Question on Net::FTP.

2004-05-28 Thread Silky Manwani
TED] Sent: Friday, May 28, 2004 3:42 AM Cc: [EMAIL PROTECTED] Subject: Re: Question on Net::FTP. Never mind. Figured it out. :) Could you share the solution ? José. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential and/or protected by in

RE: Question on Net::FTP.

2004-05-28 Thread NYIMI Jose (BMB)
> -Original Message- > From: Silky Manwani [mailto:[EMAIL PROTECTED] > Sent: Friday, May 28, 2004 3:42 AM > Cc: [EMAIL PROTECTED] > Subject: Re: Question on Net::FTP. > > > Never mind. > > Figured it out. > > :) Could you share the solution ? J

Re: Question on Net::FTP.

2004-05-27 Thread Silky Manwani
Never mind. Figured it out. :) On May 27, 2004, at 4:40 PM, Silky Manwani wrote: Hello, I have this program where I am trying to ftp a file from one machine to another. so code somewhat looks like this: $ftp = Net::FTP->new(host, (Debug => 1, Timeout =>600, Passive =>1)); $ftp->lo

Question on Net::FTP.

2004-05-27 Thread Silky Manwani
Hello, I have this program where I am trying to ftp a file from one machine to another. so code somewhat looks like this: $ftp = Net::FTP->new(host, (Debug => 1, Timeout =>600, Passive =>1)); $ftp->login($user,$pass); $ftp->binary(); $ftp->put($file); At some point this cod

Re: Net::FTP errors

2004-02-25 Thread Wiggins d'Anconia
this in Perl or switch to a shell script Assuming you have correct these then we basically end up with a file zipped tar file right? # Begin FTP Transaction use Net::FTP; $ftp = Net::FTP->new("server.test", Debug => 1)or die "Could not establish connection to serve

Net::FTP errors

2004-02-25 Thread Jas
x27;); system('gzip -fv9 ../backups/www.tar'); system('mv -fv ../backups/www.tar.gz ../backups/' . $date . '-www.tar.gz'); # Begin FTP Transaction use Net::FTP; $ftp = Net::FTP->new("server.test", Debug => 1)or die "Could not establish connection to s

Re: Bug reports for standard modules/Net::FTP STOU

2003-12-17 Thread Wiggins d Anconia
> On Wed, 2003-12-17 at 11:40, Wiggins d Anconia wrote: > > Real Question: > > I have a potential bug/implementation request for Net::FTP, as it is a > > base module should this be sent directly to Graham Barr or is there a > > better place to send it? > > I sen

Re: Bug reports for standard modules/Net::FTP STOU

2003-12-17 Thread Kevin Old
On Wed, 2003-12-17 at 11:40, Wiggins d Anconia wrote: > Real Question: > I have a potential bug/implementation request for Net::FTP, as it is a > base module should this be sent directly to Graham Barr or is there a > better place to send it? I send bug reports through the Request Tra

Re: Bug reports for standard modules/Net::FTP STOU

2003-12-17 Thread Randy W. Sims
On 12/17/2003 11:40 AM, Wiggins d Anconia wrote: Real Question: I have a potential bug/implementation request for Net::FTP, as it is a base module should this be sent directly to Graham Barr or is there a better place to send it? I usually check for a mailing list first at <http://lists.perl.

Bug reports for standard modules/Net::FTP STOU

2003-12-17 Thread Wiggins d Anconia
Real Question: I have a potential bug/implementation request for Net::FTP, as it is a base module should this be sent directly to Graham Barr or is there a better place to send it? Background Questions: Out of curiousity does anyone know of discussions had about Net::FTP as it relates to the STOU

RE: Net::SSH and Net::FTP?

2003-12-03 Thread Dan Muey
> Outland Domain Group > Anchorage, Alaska > > > > -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 02, 2003 6:38 AM > To: [EMAIL PROTECTED] > Subject: RE: Net::SSH and Net::FTP? > > > > > > > > I wou

RE: Net::SSH and Net::FTP?

2003-12-03 Thread Mark Weisman
President / Owner Outland Domain Group Anchorage, Alaska -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 6:38 AM To: [EMAIL PROTECTED] Subject: RE: Net::SSH and Net::FTP? > > > > I would like to use SSH to login to a remote system

  1   2   3   >