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: Calculate MD5 checksum of a remote and local file using FTP

2014-02-25 Thread Shaji Kalidasan
Dear Jim, Thank you for your detailed insight where I was lacking. It is greatly appreciated. I learned a lot from this discussion.   Sincerely, Shaji --- Your talent is God's gift to you. What you do with it is your gif

Re: Calculate MD5 checksum of a remote and local file using FTP

2014-02-24 Thread Jim Gibson
On Feb 23, 2014, at 7:09 PM, Shaji Kalidasan wrote: > Dear Perlers, > > I made some improvements in my code (now I am checking the file size of > remote file) but still can't figure out how to calculate the MD5 hash of a > remote file. You cannot calculate the MD5 digest of a file on a remot

Re: Calculate MD5 checksum of a remote and local file using FTP

2014-02-23 Thread Shaji Kalidasan
Dear Perlers, I made some improvements in my code (now I am checking the file size of remote file) but still can't figure out how to calculate the MD5 hash of a remote file. Any help is highly appreciated. [code] use strict; use warnings; use Digest::MD5::File qw( file_md5_hex ); use Net

Calculate MD5 checksum of a remote and local file using FTP

2014-02-22 Thread Shaji Kalidasan
Dear Perlers, I need to download a file from a server using FTP and then I need to compare both files (MD5 Checksum) to ensure that I am testing the right build. Here is the program I have attempted so far. Please throw some light in comparing the MD5 checksum of the source and destination

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: FTP files from one remote server to another

2012-04-20 Thread Matthew K
How secure is this transfer? Is this server to server within the network, or across the Internet? If it remains local, Net::FTP is probably the route you want to go. Just do an $ftp->ls() and do a $ftp->get() on files that match a regex pattern.  If it is not, then you might want to eith

FTP files from one remote server to another

2012-04-20 Thread Shyam Parimal Katti
Hello All, I am trying to find out how I can transfer files from one directory on one server to another directory on another server? What I need to consider is that I should transfer files that are created TODAY only. i.e. the folder will look like this: 04/20/2012 04/14/2012 and if I am runn

Re: Wanted: Help inventing poor man's FTP server

2011-04-11 Thread Paul Johnson
On Mon, Apr 11, 2011 at 08:50:59AM +0300, Shlomi Fish wrote: > Hi Siegfried, > > On Sunday 10 Apr 2011 21:55:30 siegfr...@heintze.com wrote: > > I want to implement a implement a poor man's ftp server that has minimal > > dependencies (like none!). I'll write

Re: Wanted: Help inventing poor man's FTP server

2011-04-10 Thread Shlomi Fish
Hi Siegfried, On Sunday 10 Apr 2011 21:55:30 siegfr...@heintze.com wrote: > I want to implement a implement a poor man's ftp server that has minimal > dependencies (like none!). I'll write a simple custom poor man's ftp > client on the other side. Since I'm wr

Wanted: Help inventing poor man's FTP server

2011-04-10 Thread siegfried
I want to implement a implement a poor man's ftp server that has minimal dependencies (like none!). I'll write a simple custom poor man's ftp client on the other side. Since I'm writing both the client and the server, I don't need to worry about adherence to the ftp sta

Re: Perl perl recursive list ftp files

2010-11-09 Thread Chandrashekar Bhat
Or you can add 26.my $dir = $_[0]; > die qq{ Please pass the directory name...} if (! -d "$dir");# Test whether you are getting actual directory >27.if ($dir =~ m/^d/){ > 28. $ftp->cwd("$dir") or die "Error

Re: Perl perl recursive list ftp files

2010-11-08 Thread Thomas Brightbill
On 11/4/2010 1:36 AM, sync wrote: 26.my $dir = $_[0]; 27.if ($dir =~ m/^d/){ 28. $ftp->cwd("$dir") or die "Error" 29.. (This location is my problem ) 30. } I suspect that $dir contains a string that st

Perl perl recursive list ftp files

2010-11-04 Thread sync
Hi ,all : I have a trouble about the how to recur list the ftp lists with the perl . The result like this : --- /dir1 /sub-dir1 test1 /dir2 /sub-dir2 test2 /dir3 /sub-dir3 test3

About perl ftp problem

2010-11-02 Thread sync
Hi, all : I want to write the script to monit the ftp users actions on time, The website is the best . like this : users time actions test121:23 download the test file test221:30

Re: Newbie: Perl how evaluate files newer than an hour within ftp

2010-08-18 Thread Shlomi Fish
Hi Atropo, On Tuesday 17 August 2010 15:37:51 Atropo wrote: > Hi all, i have this simple script to check if a file has arrive since > the last hour > > find2perl tmp -type f -eval '-M $_ < 1/24' -print |perl > > but now i would like to check in a remote server,

Newbie: Perl how evaluate files newer than an hour within ftp

2010-08-17 Thread Atropo
Hi all, i have this simple script to check if a file has arrive since the last hour find2perl tmp -type f -eval '-M $_ < 1/24' -print |perl but now i would like to check in a remote server, maybe on ftp session. i have this ftp.pl perl -w >> ftp.log -MNet::FTP -le'

Re: invoking ftp object with ssh object....

2010-07-23 Thread Sooraj S
thanks for your reply...u mean to say this? $t = Net::SSH::Perl->new("remote_1"); $t->login($uname,$paswd); $t->cmd("ftp remote_2") --- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: invoking ftp object with ssh object....

2010-07-22 Thread Shlomi Fish
On Thursday 22 Jul 2010 13:44:46 Sooraj S wrote: > Hi, > > I am using Net::SSH::Perl, Net::FTP to loginto remote machines... > I want to 'scp' some files in my local system to the remote machine > remote_1. After that, from the remote_1 i want to upload those files > t

invoking ftp object with ssh object....

2010-07-22 Thread Sooraj S
Hi, I am using Net::SSH::Perl, Net::FTP to loginto remote machines... I want to 'scp' some files in my local system to the remote machine remote_1. After that, from the remote_1 i want to upload those files to an FTP server, remote_2. I can access remote_2 only through remote1. Please g

Re: FTP and LS or DIR

2010-01-07 Thread John W. Krahn
Jag Thripp wrote: Hello first question, maybe one of many! Hello, Code running on a windows machine connecting to Linux box. I am trying to capture an ls\dir command into a file from an FTP connection, similar to ls -lA > Ls.txt. I am trying to monitor files in a folder on a remote Red

Re: FTP and LS or DIR

2010-01-07 Thread Uri Guttman
ning on a windows machine connecting to Linux box. JT> I am trying to capture an ls\dir command into a file from an FTP JT> connection, similar to ls -lA > Ls.txt. JT> use Net::FTP; JT> use warnings; JT> use diagnostics; use strict ; JT> my

FTP and LS or DIR

2010-01-07 Thread Jag Thripp
Hello first question, maybe one of many! Code running on a windows machine connecting to Linux box. I am trying to capture an ls\dir command into a file from an FTP connection, similar to ls -lA > Ls.txt. I am trying to monitor files in a folder on a remote Red Hat server to make s

Re: Net::FTP fails when invoked from browser

2009-11-10 Thread boman
ocess simply stalls after about 150 files. Have tried different file sets and different destination computers, all same result. Output to the browser is after each file is FTPd. Takes less than 1 second per file, entire ftp step (150+ files) takes a little less than 2 minutes. However, I did notice

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 fi

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

Net::FTP fails when invoked from browser

2009-11-07 Thread 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 the browser times out

Re: Net::FTP fails when invoked from browser

2009-11-07 Thread Uri Guttman
>>>>> "b" == boman writes: b> Have a simple script to FTP all files in one dir to a Solaris box. b> Script runs fine when invoked from command line. However, when invoked b> from browser (simple html form with one button that calls the .pl b> s

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: Perl Call from Java dumps core while making a FTP connection

2008-11-22 Thread Srinivasan Ramaswami
Chas, Thanks, I have info here on the shell script and the perl script that I call from my java class. I see the fail happening as we try to make a FTP connection. I have not specified any PERLLIB as I see in my script. Thanks again, Srini ##myScript.ksh #!/bin/ksh

Re: Perl Call from Java dumps core while making a FTP connection

2008-11-21 Thread Chas. Owens
On Thu, Nov 20, 2008 at 21:43, <[EMAIL PROTECTED]> wrote: > I need help with an issue with executing a perl program from java. I > have a perl script that does a FTP. The perl program works well when I > run it from command line or on a cron job. > > The same command I am als

Perl Call from Java dumps core while making a FTP connection

2008-11-21 Thread srini9286
I need help with an issue with executing a perl program from java. I have a perl script that does a FTP. The perl program works well when I run it from command line or on a cron job. The same command I am also running from a Java program, it used to run fine on Solaris 8 and Perl 5.8.0. When we

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
2008/11/1 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi Dermot, > > The original code will upload a file but not a folder full of files. I need > a way to ftp either: > > 1. ftp the whole folder with all the items inside > 2. have perl read in all the file names and the

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 =

Changing from FTP to Secure copy

2008-10-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I am in the middle of moving from Solaris to Linux environment. On the current Solaris box, I use Net::FTP for all the work that needs to be done. On Linux, the ftp is not available, due to security concerns. The Linux environment had Perl at 5.8.0 and so I got the okay to bring down AS

Re: Perl Code to ftp files

2008-09-17 Thread Mr. Shawn H. Corey
On Wed, 2008-09-17 at 13:09 -0700, [EMAIL PROTECTED] wrote: > Hello > > I need to write some code where I invoke ftp to another node and ftp a file > from its directory to a directory that is on my system. Can this be done in > perl (I suspect so) and what would be the best way

Perl Code to ftp files

2008-09-17 Thread andrewmchorney
Hello I need to write some code where I invoke ftp to another node and ftp a file from its directory to a directory that is on my system. Can this be done in perl (I suspect so) and what would be the best way to do it. This will help automate some backup work that needs to be done. Thanks

Re: Perl to ftp files remote to local

2008-06-23 Thread Mimi Cafe
You could use the CPAN module Net::SSH http://search.cpan.org/~ivan/Net-SSH-0.09/SSH.pm. - Install the module on you local PC. - Create a non-privileged user on the remote server - Create SSH certificate for the non-privileged user on the remote machine - Use the non-privileged user to run remote

Perl to ftp files remote to local

2008-06-23 Thread Stewart Anderson
Hi, I'm sure there are a zillion ways of doing this, but rather than re-invent the wheel I thought I'd use my best skill - "The ability to ask someone else and plaguerise :)" So, I would like to poll a remote server (production app server) find files (log files) in a specific directo

RE: difference between FTP and SFTP

2008-05-29 Thread Rajnikant
Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 5:57 PM To: Rajnikant Cc: beginners@perl.org Subject: Re: difference between FTP and SFTP On Thu, May 29, 2008 at 1:30 AM, Rajnikant <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have questi

Re: difference between FTP and SFTP

2008-05-29 Thread Chas. Owens
On Thu, May 29, 2008 at 1:30 AM, Rajnikant <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have question about SFTP's connection modes. FTP can use Active or Passive > mode for same. > > Is SFTP also supports such modes? snip Active vs passive has to do whether both t

Re: difference between FTP and SFTP

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 11:00 +0530, Rajnikant wrote: > Hi everyone, > > I have question about SFTP's connection modes. FTP can use Active or Passive > mode for same. > > Is SFTP also supports such modes? It does not need the distinction. SFTP connects via ssh on port

difference between FTP and SFTP

2008-05-28 Thread Rajnikant
Hi everyone, I have question about SFTP's connection modes. FTP can use Active or Passive mode for same. Is SFTP also supports such modes? Thanks. Thanks and Best regards, ~ Rajnikant Software Engg. Persistent Sys. Ltd. Ph. +91 98222 04088 DISCL

RE: Example of FTP w/o Input file? Is it possible to do or not?

2008-04-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 09, 2008 13:05 > To: Wagner, David --- Senior Programmer Analyst --- WGO > Cc: beginners@perl.org > Subject: Re: Example of FTP w/o Input file? Is it possible to > do or no

Re: Example of FTP w/o Input file? Is it possible to do or not?

2008-04-09 Thread Chas. Owens
t; each time, but > I am trying to get the data to a file on the remote server without > having a file on > the input side. > Understand? snip Ah, now it becomes clear. According to the Net::FTP docs the put method accepts a file or a filehandle as the LOCAL_FILE argument

RE: Example of FTP w/o Input file? Is it possible to do or not?

2008-04-09 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 09, 2008 12:33 > To: Wagner, David --- Senior Programmer Analyst --- WGO > Cc: beginners@perl.org > Subject: Re: Example of FTP w/o Input file? Is it possible to > do or no

Re: Example of FTP w/o Input file? Is it possible to do or not?

2008-04-09 Thread Chas. Owens
On Wed, Apr 9, 2008 at 1:56 PM, Wagner, David --- Senior Programmer Analyst --- WGO <[EMAIL PROTECTED]> wrote: > I have a hash which contains for each entry the email which I > need to ftp to a particular location with a specified name. I could > write out the file and

Example of FTP w/o Input file? Is it possible to do or not?

2008-04-09 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have a hash which contains for each entry the email which I need to ftp to a particular location with a specified name. I could write out the file and then do the ftp. But since I have the necessary data in an audittrail report, I was wondering if I can ftp from a variable using ftp

RE: How to ftp all the files?

2008-03-26 Thread Dan Fish
Might want to check out ncftp client. Works very well, multiple platform support and free! I use it for nearly all my batch ftp needs (albeit I have only used the Solaris version...) http://www.ncftp.com/ncftp/ -Dan > -Original Message- > From: Siegfried Heintze (Aditi) [

Re: How to ftp all the files?

2008-03-26 Thread Chas. Owens
On Wed, Mar 26, 2008 at 3:49 PM, Siegfried Heintze (Aditi) <[EMAIL PROTECTED]> wrote: > I'm using perl 5.8.8 on cygwin/windows 2003 server. > > This worked (but it was so tedious!): > $ perl -MNet::FTP -e '$ftp =Net::FTP->new("mediaftp.wiley.com", D

How to ftp all the files?

2008-03-26 Thread Siegfried Heintze (Aditi)
I'm using perl 5.8.8 on cygwin/windows 2003 server. This worked (but it was so tedious!): $ perl -MNet::FTP -e '$ftp =Net::FTP->new("mediaftp.wiley.com", Debug=>0) or die "cannot connect"; $ftp->login("download","download") or die

RE: Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable

2008-03-24 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Monday, March 24, 2008 11:42 > To: Wagner, David --- Senior Programmer Analyst --- WGO > Cc: Perl Beginners > Subject: Re: Looking for example of how to keep an FTP > processing running if t

Re: Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable

2008-03-24 Thread Chas. Owens
ur weeks and my process then dies. > > I have a simple setup: > > $MyFtp = Net::FTP->new($GlblInfo{ipaddr}, Debug => 1); > > $MyFtp->login($GlblInfo{logon},$GlblInfo{pw}); > > Yes. There is no checking on the new and what happens is that >

Re: Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable

2008-03-24 Thread yitzle
1) Can you set a really long timeout? 2) When I asked about doing something similar with Mechanize->get(), someone suggested wrapping the call in an eval block and testing the exit status of the function call. Or something like that. Would that approach work here? -- To unsubscribe, e-mail: [EMAI

Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable

2008-03-24 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have a polling process that runs 24x7 ( internal site ) and for the most part has no problems except that they shutdown the the internal site every three or four weeks and my process then dies. I have a simple setup: $MyFtp = Net::FTP->new($GlblInfo{ipaddr}, Debug =

Re: FTP server

2008-03-08 Thread ken Foskey
On Thu, 2008-03-06 at 22:48 +0200, Octavian Rasnita wrote: > Thank you. I have it already installed and active, but I thought it is just > a way of transfering the files by FTP using SSL, using the > usernames/passwords of the OS, which I don't want. > > I want to be abl

Re: FTP server

2008-03-07 Thread Francisco Valladolid
Octavian Rasnita <[EMAIL PROTECTED]> asked: > > Can anyone recommend a good FTP server for Linux? > > I want to be able to create/delete users dynamicly from a > > perl program, assign permissions dynamicly, and it would be > > good (although not absolutely > > nec

Re: FTP server

2008-03-07 Thread Michael Iatrou
When the date was Thursday 06 March 2008, Octavian Rasnita wrote: > Can anyone recommend a good FTP server for Linux? > I want to be able to create/delete users dynamicly from a perl program, > assign permissions dynamicly, and it would be good (although not > absolutely necessary)

RE: FTP server

2008-03-06 Thread Thomas Bätzler
Octavian Rasnita <[EMAIL PROTECTED]> asked: > Can anyone recommend a good FTP server for Linux? > I want to be able to create/delete users dynamicly from a > perl program, assign permissions dynamicly, and it would be > good (although not absolutely > necessary) to have

RE: FTP server

2008-03-06 Thread Bob McConnell
Thank you. I have it already installed and active, but I thought it is just a way of transfering the files by FTP using SSL, using the usernames/passwords of the OS, which I don't want. I want to be able to set a different set of usernames/passwords than those of the system. Is it pos

Re: FTP server

2008-03-06 Thread Octavian Rasnita
fering the files by FTP using SSL, using the usernames/passwords of the OS, which I don't want. I want to be able to set a different set of usernames/passwords than those of the system. Is it possible? Thank you. Octavian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: FTP server

2008-03-06 Thread Bob McConnell
-Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 2:43 PM To: Bob McConnell; beginners@perl.org Subject: Re: FTP server From: "Bob McConnell" <[EMAIL PROTECTED]> I would recommend sftp instead, unless all of your traffic w

Re: FTP server

2008-03-06 Thread Octavian Rasnita
From: "Bob McConnell" <[EMAIL PROTECTED]> I would recommend sftp instead, unless all of your traffic will be contained on a local network. What distribution are you using? Many come with a server that just needs to be enabled. Bob McConnell I use Fedora. Does its FTP server

RE: FTP server

2008-03-06 Thread Bob McConnell
, March 06, 2008 2:06 PM To: beginners@perl.org Subject: FTP server Hi, Can anyone recommend a good FTP server for Linux? I want to be able to create/delete users dynamicly from a perl program, assign permissions dynamicly, and it would be good (although not absolutely necessary) to have SSL support

FTP server

2008-03-06 Thread Octavian Rasnita
Hi, Can anyone recommend a good FTP server for Linux? I want to be able to create/delete users dynamicly from a perl program, assign permissions dynamicly, and it would be good (although not absolutely necessary) to have SSL support. Thank you very much. Octavian -- To unsubscribe, e-mail

Re: FTP file handle question

2007-12-27 Thread John W. Krahn
Sturdevant, Robert W Mr CTR USA AMC wrote: Hi group, Hello, I'm troubleshooting a perl 5.6 Win32 app that uses Net::FTP. I am trying to ftp using a file handle instead of a local file name. POD says something like $ftp->put(LOCAL_FILE [REMOTE_FILE]) where LOCAL_FILE may be a file n

FTP file handle question

2007-12-27 Thread Sturdevant, Robert W Mr CTR USA AMC
Hi group, I'm troubleshooting a perl 5.6 Win32 app that uses Net::FTP. I am trying to ftp using a file handle instead of a local file name. POD says something like $ftp->put(LOCAL_FILE [REMOTE_FILE]) where LOCAL_FILE may be a file name or a file handle. I know $filename does exist, I ca

RE: timeout in ftp

2007-12-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Tom Phoenix > Sent: Tuesday, December 11, 2007 15:07 > To: Wagner, David --- Senior Programmer Analyst --- WGO > Cc: beginners@perl.org > Subject: Re: timeout in ftp > >

Re: timeout in ftp

2007-12-11 Thread Tom Phoenix
On 12/11/07, Wagner, David --- Senior Programmer Analyst --- WGO <[EMAIL PROTECTED]> wrote: > I have the following code: > > $MyFTP->put($MyFtpFromFile , $MyFtpToFile ); > if ( ! $MyFTP->ok() ) { Are you using Net::FTP? Does your version of the documentation

timeout in ftp

2007-12-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have the following code: $MyFTP->put($MyFtpFromFile , $MyFtpToFile ); if ( ! $MyFTP->ok() ) { . } On my audit log: Net::FTP=GLOB(0x19c30c0)<<< 125-Waiting for recall of data set FTPTRGP.AMPD0407 Net::FTP=GLOB(0x19c30c0): Timeout

RE: :FTP troubles with passive

2007-11-20 Thread RICHARD FERNANDEZ
that line 50 times but never that way. If I say: my $ftp = Net::FTP -> new($server, Passive => 0)... it does indeed use active mode. Sometimes you just need another pair of eyes :) Thanks! richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: :FTP troubles with passive

2007-11-20 Thread Andrew Curry
Subject: Net::FTP troubles with passive 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 doc

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: ftp in ascii mode

2007-10-20 Thread Matthew Whipple
Gunnar Hjalmarsson wrote: > Gunnar Hjalmarsson wrote: >> Net::FTP uses ascii mode by default, which means that the line >> endings were converted also when you transferred the file back to >> your local machine. Consequently, those files should not be identical. > > C

Re: ftp in ascii mode

2007-10-19 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: Net::FTP uses ascii mode by default, which means that the line endings were converted also when you transferred the file back to your local machine. Consequently, those files should not be identical. Correction: They _should_ be identical. Sorry! No, I can't

Re: ftp in ascii mode

2007-10-19 Thread Gunnar Hjalmarsson
Rhea Yakob wrote: I was trying to put some files to a remote machine (unix) from the local (win) machine using a perl script in ascii mode. $ftp->ascii(); $ftp->put($file1,$file11) or die "put failed \n"; Suppose you used Net::FTP. You should have told us that. Later on w

ftp in ascii mode

2007-10-19 Thread Rhea Yakob
I was trying to put some files to a remote machine (unix) from the local (win) machine using a perl script in ascii mode. $ftp->ascii(); $ftp->put($file1,$file11) or die "put failed \n"; Later on when I try to get back the same file with a new name to my local machine $ftp->

Re: Ftp to GDG dataset

2007-10-11 Thread Ken Foskey
On Thu, 2007-10-11 at 23:05 +0200, Jenda Krynicky wrote: > From: "Johnson, Reginald \(GTI\)" <[EMAIL PROTECTED]> > > I am trying to ftp files to GDG dataset on a mainframe. Whenever I try > > this my put fails with > > "failed Requested act

Re: Ftp to GDG dataset

2007-10-11 Thread Matthew Whipple
Can you upload the file manually? If you can't then that's obviously the problem. If you can then make sure that all of the settings are the same in the Perl script (the pwd, port/passive, the exact base name & suffix). Johnson, Reginald (GTI) wrote: > I am trying to ftp fil

Re: Ftp to GDG dataset

2007-10-11 Thread Chas. Owens
On 10/11/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: snip > > $ftp->put($logfile ,"SM.SCS.ADSM.LINUX.ACCTLOG(+1)" ) > > or die "put of $logfile failed ", $ftp->message; > > All I can think of is that the file name is not

Re: Ftp to GDG dataset

2007-10-11 Thread Jenda Krynicky
From: "Johnson, Reginald \(GTI\)" <[EMAIL PROTECTED]> > I am trying to ftp files to GDG dataset on a mainframe. Whenever I try > this my put fails with > "failed Requested action not taken: GDG name conversion failed" > > > #!/usr/bin/perl > use F

Ftp to GDG dataset

2007-10-11 Thread Johnson, Reginald (GTI)
I am trying to ftp files to GDG dataset on a mainframe. Whenever I try this my put fails with "failed Requested action not taken: GDG name conversion failed" #!/usr/bin/perl use File::Copy cp; use Net::FTP; @serverlist =qw{tsmpa1 tsmte1 tsmdb1 tsmob1 tsmob2 tsmbk1};

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 an

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 preferre

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?

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

2007-06-25 Thread RICHARD FERNANDEZ
Hi Tom, Thanks for the response. > It's undocumented, but maybe try this: > > BEGIN { $CPAN::DEBUG = 512; } # FTP? > Not sure where to plug in this BEGIN {}... > perl -MNet::Netrc -lwe 'print join " ", > Net::Netrc->lookup("MyCpanMirror&

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

2007-06-25 Thread Tom Phoenix
On 6/25/07, RICHARD FERNANDEZ <[EMAIL PROTECTED]> 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/ , and I have a valid .netrc configured with a user and password for the mirro

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/

  1   2   3   4   5   6   >