On Thu, April 12, 2007 10:44 am, Chas Owens wrote:
> On 4/12/07, Paul <[EMAIL PROTECTED]> wrote:
>> I see default time out is 120, in seconds I assume.  How would I change
>> this within a perl script?  Problem is, when the deomon is locked up, it
>> just sits there, so I want to shorting this so the script jumpts out and
>> doesn't sit there forever.  Thanks.
>>
>> http://search.cpan.org/~gbarr/libnet-1.20/Net/FTP.pm
> snip
>
> my $timeout_in_seconds = 60;
>
> my $ftp = Net::FTP->new(
>     "some.host.name",
>     Timeout => $timeout_in_seconds
> );
Thank you.  Works great!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to