I'm trying to write a shell script to simply reconnect everytime slapt-get has a timed out.
gcc-gnat 3.4.5-i486-1 [8MB]...Failed to download: FTP response timeout
this is the message I get when timed out.
I'm thinking whenever that message shows up, the script will enter slapt-get --upgrade and them answer y when slapt-get ask whether I want to upgrade or not.
How can I do this?