Raja try the script below. --Ron
----- cut here: current-download-script-with-retry.sh -----
#!/bin/sh
#
#
# Modified version of Qmail Toaster current-download-script.sh
#
# Some of the servers listed in mirrors.qmailtoaster.com either do not
# respond or cannot serve the files. This script keeps retrying the
# downloads until all the files have been successfully downloaded.
QT_LIST="http://www.qmailtoaster.com/info/current.txt"
QT_MIRRORS="mirrors.qmailtoaster.com"
QT_PACKAGES=`wget -q -O - ${QT_LIST}`
# If list is unavailable, quit
if [ -z "${QT_PACKAGES}" ] ; then
echo "Package List unavailable, please check your connection and try
again"
exit 1
fi
# Download packages; reattempt until successful
again=yes
while [ "$again" = "yes" ]; do
again=no
for SRPMS in ${QT_PACKAGES} ; do
if [ ! -f $SRPMS ]; then
wget http://${QT_MIRRORS}/${SRPMS}
echo ""
sleep 4
again=yes
fi
done
done
----- cut here -----
On 6/15/2012 2:30 PM, Raja Mani wrote:
Dear Sir,
When i execute the current-download-script.sh. Below error has
occured.
sh current-download-script.sh
Downloading zlib-1.2.3-1.0.3.src.rpm
--2012-06-16 00:56:19--
http://mirrors.qmailtoaster.com/zlib-1.2.3-1.0.3.src.rpm
Resolving mirrors.qmailtoaster.com... 109.74.205.92, 96.228.219.83,
173.164.181.57, ...
Connecting to mirrors.qmailtoaster.com
<http://mirrors.qmailtoaster.com>|109.74.205.92|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-06-16 00:56:20 ERROR 404: Not Found.
Downloading daemontools-toaster-0.76-1.3.6.src.rpm
--2012-06-16 00:56:24--
http://mirrors.qmailtoaster.com/daemontools-toaster-0.76-1.3.6.src.rpm
Resolving mirrors.qmailtoaster.com... 109.74.205.92, 96.228.219.83,
173.164.181.57, ...
Connecting to mirrors.qmailtoaster.com
<http://mirrors.qmailtoaster.com>|109.74.205.92|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-06-16 00:56:24 ERROR 404: Not Found.
How to resolve the issue.
-Rajamani
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com