On Mon, 20 Nov 2000, Dmitry Morozovsky wrote:
DM> here is small shell script which I use to run from crontab and redirect
DM> its output to sendmail to produce rather readable messages. Maybe it would
DM> be useful for you too ;-)
oh, just found dumb error. Sorry ;-)
diff -u -r1.3 -r1.4
--- runrsync.sh 2000/11/20 08:51:25 1.3
+++ runrsync.sh 2000/11/20 09:00:56 1.4
@@ -62,7 +62,7 @@
END { exit !err }' ; do
tries=`expr ${tries} + 1`
- if ${tries} -gt ${MAXTRIES}; then
+ if [ ${tries} -gt ${MAXTRIES} ]; then
echo "Too many tries. Aborting"
break
fi
Sincerely,
D.Marck [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] ***
------------------------------------------------------------------------