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 successful\n";
} else {
p
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
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
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
rMt failed!: $!, print ($ftplog)";
$ftp->quit;
}
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
614-566-4145
Chris Devers <[EMAIL PROTECTED]>
09/16/2004 04:59 PM
Please respond to Perl Beginners List
To: [EMAIL PROTECTED]
cc:
On Wed, 15 Sep 2004 [EMAIL PROTECTED] wrote:
> no nothing is showing up in the file.
Okay then, so this logging code is all hand-written ?
It seems then that nothing in this script is actually writing to the log
file you've asked for, because there's no such thing as "$ftp->$ftplog"
(or "$ftp-
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 though?
If you're old-fa
Please respond to Perl Beginners List
To: [EMAIL PROTECTED]
cc: Perl Beginners List <[EMAIL PROTECTED]>
Subject: Re: Net ::FTP and subroutine calls
On Wed, 15 Sep 2004 [EMAIL PROTECTED] wrote:
The Python folks are right -- whitespace is your friend! Use it
On Wed, 15 Sep 2004 [EMAIL PROTECTED] wrote:
The Python folks are right -- whitespace is your friend! Use it!
> sub ftpme {
>
> my $remotehost = "ftp.digitalarchives.com";
> my $user = "cb100524";
> my $pass = "xxx";
> my $data = $scratch
All,
I have this ftp code
sub ftpme {
my $remotehost="ftp.digitalarchives.com";
my $user="cb100524";
my $pass="xxx";
my $data=$scratchtps;
my $ftplog="/usr/local/log/ftp_IrMt_scratchtapes.log";
10 matches
Mail list logo