LFTP if no connection cancel thread and move on -
lftp -u user, password -p 2121 -e 'set net:timeout 10; set net:reconnect-interval-base 1; set net:max-retries 1; mirror -r --use-pget-n=10 -v -c /home/[username]/files/sync/. /' {$v[ip]}
i have script grabs ip of connected network , attempts push file it. there things on network won't allow connection. there's no way know in advance on network , wont, , need find way lftp not hang on failed connection script can move next ip/hostname.
the answer ended being actual issue ubuntu version , of files not being able handle itself. updated ubuntu version 15 fixed hanging issues.
Comments
Post a Comment