How can i force wget to stop after X seconds? I have a script that downloads images, 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
--timeout(or-T) option? – gniourf_gniourf Dec 5 '12 at 19:04wget -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 Dec 5 '12 at 19:17