|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
test an ftp connection
hi again,
i need to download a great number of files on an ftp server, but the ftp server allows only 300 seconds of unresponded connection. At some point in my script the connection has timed out and there is an error... Is there a way to test a ftp connection with commands such as ping, or do i have to do a "try" command to catch the errors that may happen? Thanks |
|
#2
|
||||
|
||||
|
If your getting an error from Python rather than the FTP server then using a try-except block to catch any related errors is probably a good idea.
If this is a problem being caused by the FTP server and cant be catched via Python then i cant really help too much since i have little experiance in this matter. You might look at the ftplib module and see if it gives you any ideas: http://www.python.org/doc/2.3.3/lib/ftp-objects.html Quote:
Take care, Mark. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > test an ftp connection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|