Re: Specifying options for Net::SFTP
- From: Richard Thomas <newsuser@xxxxxxxxxxxxxxx>
- Date: Fri, 28 Dec 2007 18:23:14 GMT
On Fri, 28 Dec 2007 09:46:15 -0800 (PST), Ron Bergin <rkb@xxxxxxxxxx>
wrote:
Try changing it to this (note the use of the { } braces instead of ( )
$sftp=Net::SFTP->new ($site,{user => $username,
password => $password,
debug => 1,
ssh_args => [ options => ["SetupTimeOut
300", "ServerAliveInterval 300", "ServerAliveCountMax 3"]],
}) or die "Problem connecting to SFTP server. $!\n";
Well, the login itself usually works fine, this problem occurs
probably only one time in many hundreds. It's the passing of the
timeout options I'm not sure of.
Rich
--
If you squeeze my lizard
I'll put my snake on you
I'm a romantic adventure
And I'm a reptile too
.
- References:
- Specifying options for Net::SFTP
- From: Richard Thomas
- Re: Specifying options for Net::SFTP
- From: Ron Bergin
- Specifying options for Net::SFTP
- Prev by Date: How Do I Locate a value in a text file and evaluate it and then write out that line based on the value?
- Next by Date: Re: count the number of occurences of each different word of a text
- Previous by thread: Re: Specifying options for Net::SFTP
- Next by thread: How Do I Locate a value in a text file and evaluate it and then write out that line based on the value?
- Index(es):
Relevant Pages
|
|