Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP TIMEOUT

Status
Not open for further replies.

timtrust123

Programmer
Dec 19, 2003
19
GB
Hi
I have written a Perl script that collects files from an ftp server.
###Extract###

foreach $file (@get_files_list )
{
$ftp_atlas->get ($file)
}
Sometimes the FTP server stops responding and the Perl script waits for a up to 10 minuites before continuing.

Is there a way to set a local timout in the perl script so that if no luck after say 1 minuite contiuue?

Cheers
 
could there be a lock on the file?

$ftp_atlas - this an instance based on which class? Is there a possibility of setting timeout for that instance -

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top