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
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
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
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
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
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
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
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
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
$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
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
>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
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
>
. 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
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
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
> 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
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
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
, 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
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
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
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
[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
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
> 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)
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
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 = "
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 =
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->
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
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
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
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
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
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
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
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
#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
>
>
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
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
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)
[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
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
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
$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
: '$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.
-
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
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";
>
} # 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.
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
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
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
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
- 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.
>
>
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
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
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
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
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
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
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 (
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
>
>
>
63 matches
Mail list logo