Re: Specifying options for Net::SFTP
- From: Ron Bergin <rkb@xxxxxxxxxx>
- Date: Fri, 28 Dec 2007 09:46:15 -0800 (PST)
On Dec 28, 9:37 am, Richard Thomas <newsu...@xxxxxxxxxxxxxxx> wrote:
We are having issues when an automated file transfer process hangsTry changing it to this (note the use of the { } braces instead of ( )
when using net::SFTP. This causes the whole process to hang and a
whole bunch of headaches ensue. We need to be able to give up on the
connection and carry on. I have tried adding timeout options to the
SFTP connection but they don't appear to be having any effect (The
process was just now hung up for over 32 hours). Can someone confirm
I'm using the parameters correctly?
$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";
$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";
.
- Follow-Ups:
- Re: Specifying options for Net::SFTP
- From: Richard Thomas
- Re: Specifying options for Net::SFTP
- References:
- Specifying options for Net::SFTP
- From: Richard Thomas
- Specifying options for Net::SFTP
- Prev by Date: Re: new "state" variables... nest properly??
- Next by Date: Re: Creating a feedback form in html
- Previous by thread: Specifying options for Net::SFTP
- Next by thread: Re: Specifying options for Net::SFTP
- Index(es):
Relevant Pages
|