Odp: RE: Net::FTP problem ?

2007-12-13 Thread Mariusz Stakowski
DW: Mariusz Stakowski/WROCŁAW/PROKOM/PL) Temat: RE: Net::FTP problem ? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Malony Sent: 11 December 2007 15:28 To: activeperl@listserv.activestate.com Subject: Re: Net::FTP problem ? > I had the same problem. I had to find

RE: Net::FTP problem ?

2007-12-11 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Malony Sent: 11 December 2007 15:28 To: activeperl@listserv.activestate.com Subject: Re: Net::FTP problem ? > I had the same problem. I had to find an older copy of Net:FTP, from the 5.6 ActivePerl, and copied that over &g

Re: Net::FTP problem ?

2007-12-11 Thread Mike Malony
I had the same problem. I had to find an older copy of Net:FTP, from the 5.6 ActivePerl, and copied that over the 5.8's version. Perl 5.8, Net::FTP v 2.77 when we downgrade to Perl 5.6, Net::FTP is v 2.72 Somewhere in there it broke. Thanks for sending this, I'd actually forgotte

Net::FTP problem ?

2007-12-11 Thread Mariusz Stakowski
Hello, I've just reinstalled Active Perl ony my Windows machine. But I have a problem wth sending jobs from Windows to IBM Mainframe. Here is a simple program sending JCL to mainframe: #!/usr/bin/perl -w use Net::FTP; my $zbior = $ARGV[0]; use con

Re: Net::FTP prob

2007-06-22 Thread Bill Luebkert
ukhas jean wrote: > Hi, > > I am using Net::FTP to "put" files from a local dir to a folder on a > server using > $ftp->put (), where $fth is an obj of Net::FTP. > > But it seems "put" doesnt overwrite any existing files, if they are > already

Net::FTP prob

2007-06-22 Thread ukhas jean
Hi, I am using Net::FTP to "put" files from a local dir to a folder on a server using $ftp->put (), where $fth is an obj of Net::FTP. But it seems "put" doesnt overwrite any existing files, if they are already present on the server. How do I overwrite files

Re: Need help in Net::FTP module

2006-11-23 Thread Kenneth Ölwing
You must put the FTP transmission into binary mode (just call the binary method before the get). HTH, ken1 - Original Message - From: neeti somaiya To: activeperl@listserv.ActiveState.com Sent: Friday, November 24, 2006 6:12 AM Subject: Need help in Net::FTP module Hi, I am using

Need help in Net::FTP module

2006-11-23 Thread neeti somaiya
Hi, I am using the Net::FTP module of Perl to download files from NCBI ftp. These are .gz files. When I download these files by normally doing a ftp login through command-line, I am able to successfully download these files and later gzip -d (i.e. uncompress) them. But when I do it via a perl

RE: Setting File and Directory Group and Permissions via Net::FTP

2005-12-19 Thread JPerlmutter
roup and Permissions via > Net::FTP (Cutts III, James H.) >2. Re: Setting File and Directory Group and Permissions via > Net::FTP ($Bill Luebkert) > > > -- > > Message: 2 > Date: Sat, 17 Dec 2005 08:02:24 -0800 > From: &q

RE: Setting File and Directory Group and Permissions via Net::FTP

2005-12-19 Thread Brian Raven
$Bill Luebkert <> wrote: > Cutts III, James H. wrote: >> P.S.S. (Way off topic) Does anyone know how to get Outlook to do a >> decent job of creating nicely formatted 80 character long message >> lines without it automatically capitalizing the first word after the >> carriage return and to use the

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-17 Thread $Bill Luebkert
Cutts III, James H. wrote: > However, I've been unsuccessful in getting the suggestions of the ->quot > and ->site commands > to work. I've copied the relevant sections of the Perl code below as > well as the generated > output. ... > Output results: ... > ftp->site( 'chgrp cori /home/cuttsj/p

RE: Setting File and Directory Group and Permissions via Net::FTP

2005-12-17 Thread Cutts III, James H.
>From: $Bill Luebkert [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 13, 2005 2:58 PM >To: Cutts III, James H. >Cc: activeperl@listserv.ActiveState.com >Subject: Re: Setting File and Directory Group and Permissions via Net::FTP > >Cutts III, James H. wrote: > >&g

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread $Bill Luebkert
issions >>can be changed after the fact of course. Most Linux systems default to a >>umask >>of 022 I believe. > > > Yes, but still Net::FTP does not support chmod directly. He will need > to send the command via the quot() method (if the receiving FTP server >

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread DZ-Jay
. Most Linux systems default to a umask of 022 I believe. Yes, but still Net::FTP does not support chmod directly. He will need to send the command via the quot() method (if the receiving FTP server supports chmod or a facsimile). dZ

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread DZ-Jay
Cutts III, James H. wrote: I can't seem find out how to change the permissions via the Net::FTP module. I can do it manually from the command line via the chgmod command but that defeats the purpose of automation. From the Net::FTP man page: START: quot (CMD [,ARGS]) Send a co

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread $Bill Luebkert
Cutts III, James H. wrote: > I have an application using the Net::FTP module to move files from a > Windows system to a RH Linux box. The application copies the file and > directory structure across the systems. > > The files that get transferred to the Linux box end up with th

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread wix
> I have an application using the Net::FTP module to move files from a > Windows system to a RH Linux box. The application copies the file and > directory structure across the systems. > > The files that get transferred to the Linux box end up with the > permissions of "-rw

Re: Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread chutchin
Quoting "Cutts III, James H." <[EMAIL PROTECTED]>: > I have an application using the Net::FTP module to move files from a > Windows system to a RH Linux box. The application copies the file and > directory structure across the systems. > > The files that get tran

Setting File and Directory Group and Permissions via Net::FTP

2005-12-13 Thread Cutts III, James H.
I have an application using the Net::FTP module to move files from a Windows system to a RH Linux box. The application copies the file and directory structure across the systems. The files that get transferred to the Linux box end up with the permissions of "-rw---" (600). I need

Re: Perl NET::FTP limitations

2005-12-01 Thread DZ-Jay
, 2005 10:24 PM To: activeperl@listserv.ActiveState.com Subject: Re: Perl NET::FTP limitations Mittal, Manish: Some of the files I am transferring are very small. I think because of that the perl FTP module over runs the capability of the IIS FTP server. The files I am referring here have size

RE: Perl NET::FTP limitations

2005-12-01 Thread Mittal, Manish
Subject: Re: Perl NET::FTP limitations Mittal, Manish: > Some of the files I am transferring are very small. I think because of > that the perl FTP module over runs the capability of the IIS FTP > server. The files I am referring here have size less than 1 kb and > there might be about

Re: Perl NET::FTP limitations

2005-11-30 Thread Dr.Ruud
Mittal, Manish: > Some of the files I am transferring are very small. I think because of > that the perl FTP module over runs the capability of the IIS FTP > server. The files I am referring here have size less than 1 kb and > there might be about 150 of them. Any thoughts? Put them in an archiv

Re: Perl NET::FTP limitations

2005-11-30 Thread $Bill Luebkert
server. > The files I am referring here have size less than 1 kb and there might > be about 150 of them. Any thoughts? That's not a working script and on top of that you top-posted it. If you're only dealing with one directory, I doubt it has anything to do with the module. > M

RE: Perl NET::FTP limitations

2005-11-30 Thread Mittal, Manish
[mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 7:08 PM To: Mittal, Manish Cc: activeperl@listserv.ActiveState.com Subject: Re: Perl NET::FTP limitations Mittal, Manish wrote: > Does anyone know of a limitation of the NET::FTP module? I am using this > module to copy about

Re: Perl NET::FTP limitations

2005-11-30 Thread $Bill Luebkert
Mittal, Manish wrote: > Does anyone know of a limitation of the NET::FTP module? I am using this > module to copy about 1 GB worth of data in about 1300 files. After > successfully transferring about 650 files, the transfer becomes > painfully slow (it takes about an hour for

Re: Perl NET::FTP limitations

2005-11-30 Thread wix
> Does anyone know of a limitation of the NET::FTP module? I am using this > module to copy about 1 GB worth of data in about 1300 files. After > successfully transferring about 650 files, the transfer becomes > painfully slow (it takes about an hour for the rest and sometimes more)

Perl NET::FTP limitations

2005-11-30 Thread Mittal, Manish
Does anyone know of a limitation of the NET::FTP module? I am using this module to copy about 1 GB worth of data in about 1300 files. After successfully transferring about 650 files, the transfer becomes painfully slow (it takes about an hour for the rest and sometimes more)   Some info

Re: Net::FTP::Common

2005-11-25 Thread $Bill Luebkert
Ken Barker wrote: > Guru's > > I am using the module Net::FTP::Common. Here is a snip of some code I am > using: > > use strict; > use warnings; > use Net::FTP::Common; > > my $outputpath2 = "C:\\Perl_Code\\"; > my $outfile1 = "

Net::FTP::Common

2005-11-25 Thread Ken Barker
Guru's I am using the module Net::FTP::Common. Here is a snip of some code I am using: use strict; use warnings; use Net::FTP::Common; my $outputpath2 = "C:\\Perl_Code\\"; my $outfile1 = "ken.pl"; my ($ez,%netftp_cfg,%common_cfg,$fail1); %common_cfg =

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-09-01 Thread Roger Ashby
    Wow, that was clear.  I meant to say there isn't a firewall between these two machines, but I tried this option anyway, just to be sure, to no avail. On 9/1/05, Roger Ashby <[EMAIL PROTECTED]> wrote: Sorry, I posted this to the wrongn place: > > > $ftp = Net::FTP->

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-09-01 Thread Roger Ashby
Sorry, I posted this to the wrongn place: > > > $ftp = Net::FTP->new("$rhost", Debug=>1, Passive=>FTP_PASSIVE) or die > "Can't Connect: [EMAIL PROTECTED]";We these two machines live on the same VLAN, so there is no between them. However I did try

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-08-30 Thread $Bill Luebkert
The original script I wrote does a >>lot of DB connections, so in a effort to isolate the bottleneck I wrote a >>smaller script that just uses NET::FTP and I get the same results when >>transfering files that I get with the large script. >> >> >># Connect to Rem

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-08-30 Thread Scott Leighton
B connections, so in a effort to isolate the bottleneck I wrote a > smaller script that just uses NET::FTP and I get the same results when > transfering files that I get with the large script. > > > # Connect to Remote Host > $ftp = Net::FTP->new("$rhost") or die

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-08-30 Thread Roger Ashby
aller script that just uses NET::FTP and I get the same results when transfering files that I get with the large script. #!/usr/bin/perl use Net::FTP; # Variables my $ftpusername = "ftpuser"; my $ftppasswd = "ftppass"; my $reposhost = "192.168.0.101"; ope

Re: Slow Transfer Rate using NET::FTP, and binary option.

2005-08-29 Thread Scott Leighton
On Monday 29 August 2005 12:49 pm, Roger Ashby wrote: > I've written a script that transfers a large number of image files, about > 20 to 30MB in size over to a Solaris server, and I've noticed that while > using the NET::FTP module on windows it takes about 4-6 minutes to t

Slow Transfer Rate using NET::FTP, and binary option.

2005-08-29 Thread Roger Ashby
I've written a script that transfers a large number of image files, about 20 to 30MB in size over to a Solaris server, and I've noticed that while using the NET::FTP module on windows it takes about 4-6 minutes to transfer each file, however when I run the same code a Linux machine it

Re: Net::FTP

2005-08-24 Thread $Bill Luebkert
elp is appreciated. Don't know about Common, but with Net::FTP, you can just use $ftp->binary; after you have created your $ftp object using new. -- ,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROTECTED] (_/ / )// // DBE CollectiblesMailto:[EMAI

Net::FTP

2005-08-24 Thread Ken Barker
I am using Net:FTP:Common - the documentation indicates that the default send is Binary - yet with debug turned on it shows ASCII. I am unsure of how to change this. Can someone provide a line of code to illustrate a force to Binary. All help is appreciated. Ken Barker IT Lead Americall Gr

Re: Net::FTP

2004-05-11 Thread $Bill Luebkert
#x27; syntax to do it rather than the 'if' if you like. > > my $ftp = Net::FTP->new ($opts{'h'}, > > Debug => 0, > > Type => ($opts{‘a’} ? ‘ASCII’ : ‘BINARY’) # is this a valid option > >

Net::FTP

2004-04-29 Thread Sui Ming Louie
I am trying to synchronize files on my office Server (local machine) with files on a Unix W/S (remote machine) using Net::FTP.  There are methods available to get the modification time ($ftp->mdtm ($remote_file)) and size ($ftp->size ($remote_file)) of the remote files.  When fil

RE: Net::FTP ASCII Mode

2004-04-22 Thread Sui Ming Louie
Thank you very much! I downloaded and installed 5.8.3 from ActiveState. Now I am getting the ASCII mode transfer when I need to. Regards, Sui -Original Message- From: Graham Barr [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 3:56 PM To: Sui Ming Louie Subject: Re: Net::FTP

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Randy Kobes
On Thu, 22 Apr 2004, Sui Ming Louie wrote: > I changed debug from 0 to 1 and got the following (unabridged) output: > > Net::FTP: Net::FTP(2.65) > Net::FTP: Exporter(5.566) > Net::FTP: Net::Cmd(2.21) > Net::FTP: IO::Socket::INET(1.26) > Net::FTP: IO::Socket(1.27)

Re: ASCII Mode for Net::FTP

2004-04-22 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > Or WordPad Not hardly. Avoid any M$ editors - they don't cut it. -- ,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROTECTED] (_/ / )// // DBE CollectiblesMailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Ma

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Deane . Rothenmaier
Or WordPad "Bharucha, Nikhil" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/22/2004 13:02                 To:        "Arms, Mike" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>         cc:                 Subject:        RE: ASCII Mode for Net::FTP

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Bharucha, Nikhil
Or TextPad. -Original Message- From: Arms, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 1:39 PM To: [EMAIL PROTECTED] Subject: RE: ASCII Mode for Net::FTP $Bill Luebkert [EMAIL PROTECTED] wrote: > Sui Ming Louie wrote: >> Notepad does not like editing (Unix) t

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Arms, Mike
$Bill Luebkert [EMAIL PROTECTED] wrote: > Sui Ming Louie wrote: >> Notepad does not like editing (Unix) text files. > > Nobody in their right mind would use notepad for editing. :) > Get a hold of gvim or a native Win32 emacs for your editing. Bill wrote the above line with a smiley, but I'll mo

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Steve Sarapata
: '$Bill Luebkert' Cc: [EMAIL PROTECTED] Subject: RE: ASCII Mode for Net::FTP Thank you, $Bill. However, I tried your suggestion and my files are still in Unix format. Is there a way to rectify this besides sending the files through a filter to translate the 0Ah to 0Dh,0Ah.

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Sui Ming Louie
- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 11:40 AM To: Sui Ming Louie Cc: [EMAIL PROTECTED] Subject: Re: ASCII Mode for Net::FTP Sui Ming Louie wrote: > Thank you, $Bill. However, I tried your suggestion and my files are still > in Unix format. Is there a

Re: ASCII Mode for Net::FTP

2004-04-22 Thread $Bill Luebkert
Sui Ming Louie wrote: > Thank you, $Bill. However, I tried your suggestion and my files are still > in Unix format. Is there a way to rectify this besides sending the files > through a filter to translate the 0Ah to 0Dh,0Ah. > > while (<>) { > chomp; > print "$_\n"; >

RE: ASCII Mode for Net::FTP

2004-04-22 Thread Sui Ming Louie
} # while Sui -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 10:40 AM To: Sui Ming Louie Cc: [EMAIL PROTECTED] Subject: Re: ASCII Mode for Net::FTP Sui Ming Louie wrote: > According to perldoc Net::FTP, the method $ftp->ascii has arguments.

Re: ASCII Mode for Net::FTP

2004-04-22 Thread $Bill Luebkert
Sui Ming Louie wrote: > According to perldoc Net::FTP, the method $ftp->ascii has arguments. I > tried putting a 1 as the argument. It appears the files that are still > being transferred in binary mode. I am running Windoze XP and Perl > v5.8.0 build 804. The options

ASCII Mode for Net::FTP

2004-04-22 Thread Sui Ming Louie
According to perldoc Net::FTP, the method $ftp->ascii has arguments.  I tried putting a 1 as the argument.  It appears the files that are still being transferred in binary mode.  I am running Windoze XP and Perl v5.8.0 build 804.  The options I am using are   –aIPADDR -uusern

Re: Net::Ftp instead of Telnet?

2003-08-14 Thread Stephen Patterson
On 08 Aug 03, Theisen, Gary ([EMAIL PROTECTED]) wrote: > Ok allfor the time being I'm throwing in the towel on trying to get > Net::Telnet to work on my NT4 box to an os/390. Can't get past the darn > prompt issue. > > What about using Net::FTP for downloading a

Re: Remote Backup using net::ftp

2002-02-27 Thread $Bill Luebkert
David Jourard wrote: > Hi, > > I've been asked to write a remote backup utility using ftp. > > Basically they want to be able to backup those files which have changed > in date since the last backup (or size.) > > Has anyone done this before. > > I had

Re: Remote Backup using net::ftp

2002-02-27 Thread Edward G. Orton
- Original Message - From: "David Jourard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 6:27 PM Subject: Remote Backup using net::ftp > Hi, > > I've been asked to write a remote backup utility using ftp. > >

Re: Net::FTP->quot, special question

2002-01-31 Thread Jeffrey
What's wrong with a "system" call? system "quote rcmd call pgm(ss0mod99/A00099X) parm('myfile.txt')"; should do the trick, unless you need to capture the output, in which case use backticks: my @results = `quote rcmd call pgm(ss0mod99/A00099X) parm('myfile.txt')`; --- Wening Andreas <[EMAIL P

Net::FTP->quot, special question

2002-01-31 Thread Wening Andreas
Hi there, I rewrite a script from Windows NT shell to Perl. The script transfers some files and send an command to an AS400 ftp server. The command looks like this: "quote rcmd call pgm(ss0mod99/A00099X) parm('myfile.txt')". That's exactly what you would write on the command line to send a comma

Re: complaints during Net::FTP run

2001-07-03 Thread brownlee
know you said it works OK as a cron job and I can't explain it, just have a feeling that you are creating an argument with bad data from a time or date call. $ftp = Net::FTP->new($host,debug => 1); $rc  = $ftp->login($user,$pass); # open connection # check return my @curfil

Re: complaints during Net::FTP run

2001-07-03 Thread x-dns
Hello Paul, Tuesday, July 03, 2001, 7:49:01 PM, you wrote: PC> On occasional runs, still getting the following multiple line alerts to PC> STDERR when running the script: PC> --- PC> --- PC> I think it's network-related. There is a problem with the ftp connection. If PC> I wait a few minutes and

complaints during Net::FTP run

2001-07-03 Thread Paul Corr
Title: complaints during Net::FTP run Folks, First, I want to thank the folks that posted the various solutions for determining the next days of the week a couple days ago. I'm using the mod math version. I'll be reading the Date::Calc docs real soon now to better under

Net::FTP and testing for existence of directory

2001-06-27 Thread Steven Wadding
So, is there an easy way that I'm missing to use Net::FTP to test for the existence of a directory on a server? I know I can try to use cwd(dirname) and check for failure, or get the contents of the current directory and parse the results looking for the directory I want. I can chec

Problams to install the Net::Ftp

2001-03-21 Thread brianr
Pablo Rodrigo writes: >Please, I´m not finding the Net::Ftp.ppd in the Internet... >Where I can find it ? You shouldn't need to find it. Net::FTP is part of the libnet package, which comes (IIRC) with the Activestate distribution. If you are trying to use Net::Ftp (

FW: Problams to install the Net::Ftp

2001-03-21 Thread Gregory_Griffiths
I believe that it is part of the libnet bundle try : ppm install libnet > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 21 March 2001 13:34 > To: [EMAIL PROTECTED] > Subject: Problams to install the Net::Ftp > > >