Linux Articles, Shell Scripts February 24, 2008 0

My wget – niech ściąga

  • A small tuning of wget – sometimes a remote servers are braking up the connection. This wget will try and try until download complete or user will cancel an action.

#script file:

if [ $1 -z ]; then
        echo ""
    echo "[usage:] <address url>"
        echo ""
        exit 1
    while true; do wget -c $1
        if [ $? -eq 0 ]; then
            echo "Download status: OK"; break
                else continue



By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.