Eric on 29 Dec 2007 12:37:48 -0800 |
I'm using the curl command in a bash script to transfer some files from an ftp server to a database/web server. Occasionally, the file is about 1/2 received when the download stops and curl just keeps on counting.... sometimes for days. Besides a --max-time 600 option to stop the runaway aspect of this how do I start to find out what's causing it? I do know 2 things: 1. The ftp server is on a Microsoft server: 220 tftp2 Microsoft FTP Service (Version 5.0). 331 Password required for User. 230 User User logged in. Remote system type is Windows_NT. 2. The day that this happens is the busiest day of the month. My current command is: curl --max-time 600 -n $DATAURL1 > $DATAFILE1 What good is '--no-keep-alive' anyway? Could this force a time-out if the connection is somehow being interrupted or otherwise broken? Eric -- # Eric Lucas # # "Oh, I have slipped the surly bond of earth # And danced the skies on laughter-silvered wings... # -- John Gillespie Magee Jr ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|