5
1
How can I force wget to stop after X seconds?
I have a script that downloads images and from time to time it gets stuck and refuses to "timeout".
What I've tried:
--tries=3 --connect-timeout=30
From ps aux
:
root 26543 0.0 0.0 38636 1656 ? S 20:40 0:00 wget -nc --tries=3 --connect-timeout=30 --restrict-file-names=nocontrol -O 18112012/image.jpg http://site/image.jpg
Have you tried the
--timeout
(or-T
) option? – gniourf_gniourf – 2012-12-05T19:04:46.797yes... everything from wget man – None – 2012-12-05T19:12:36.980
Are you sure you tried
wget -nc --tries=3 -T30 --restrict-file-names=nocontrol -O 18112012/image.jpg http://site/image.jpg
? I've never had problems like you're describing. – gniourf_gniourf – 2012-12-05T19:17:58.223