PROTECTED]; Wheldon,M
Subject: Re: System("ftp
Yes, I have used that module in past projects, however, I cannot add any
modules to these particular servers. I must do this with native Perl
command/functions/operators.
Glenn Meyer t/l 631-9100 - [EMAIL PROTECTED]
Content Hosting Sy
Thank you for all of your suggestions. This has been very eye-opening for
me. I didn't know all of these options were available. Your suggestions
have opened several excellent options for me. Thank you!!!
Glenn Meyer
___
Perl-Win32-Admin mailing
or no appreciable purpose.
-Original Message-
From: Glenn Meyer
To: tripix
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]; Wheldon,M
Sent: 4/9/2002 10:03 AM
Subject: Re: System("ftp
Yes, I have used that module in past projects, however, I cannot add any
modules to these particular servers. I
,M" <[EMAIL PROTECTED]>, Glenn
> Sent by:
Meyer/Tampa/IBM@IBMUS
> [EMAIL PROTECTED]cc:
<[EMAIL PROTECTED]>
> veState.com Subject:
Re: System("ftp
>
>
&
Glenn Meyer wrote:
> Yes, I have used that module in past projects, however, I cannot add any
> modules to these particular servers. I must do this with native Perl
> command/functions/operators.
There's always sockets then. Check out IO::Socket and IO::Select and
roll your own. Net::FTP m
cc:
<[EMAIL PROTECTED]>
veState.com
few years since I've done this,
so the details are fuzzy.
-Original Message-
From: Glenn Meyer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 8:19 AM
To: Wheldon,M
Cc: '[EMAIL PROTECTED]'
Subject: RE: System("ftp
This made a lot of sense, but I am finding the sy
ay, April 09, 2002 2:19 PM
Subject: RE: System("ftp
>
> This made a lot of sense, but I am finding the system() is returning "0"
> all the time:
> $sys = system("ftp -n $_[0] < ftp_commands.txt");
> if successful connecting and performing commands - r
This made a lot of sense, but I am finding the system() is returning "0"
all the time:
$sys = system("ftp -n $_[0] < ftp_commands.txt");
if successful connecting and performing commands - returns "0"
if login to ftp server fails - still returns "0&qu
[EMAIL PROTECTED]cc:
eState.com
You will find that the system call will return an integer depending on
success or failure I believe.
Try somthing like this
if (system("ftp -n $_[0] < ftp_commands.txt") == 0)
You would have to check the return values though.
Hope this helps
Martin Wheldon
Senior Technical Cons
.txt");
print FTPCOMMANDS "user $_[1] $_[2]\nbin\nprompt\nmput *.zip\nbye\n";
close(FTPCOMMANDS);
system("ftp -n $_[0] < ftp_commands.txt");
}
This is working well right now, but I need to add in some error checking
and/or retry feature. Problem,
12 matches
Mail list logo