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 successful\n"; } else { p

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
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:

Re: Net ::FTP and subroutine calls

2004-09-16 Thread Chris Devers
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-

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 though? If you're old-fa

Re: Net ::FTP and subroutine calls

2004-09-15 Thread DBSMITH
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

Re: Net ::FTP and subroutine calls

2004-09-15 Thread Chris Devers
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

Net ::FTP and subroutine calls

2004-09-15 Thread DBSMITH
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";