[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redirect stderr to stdout for {daily,weekly,monthly}.local



Any reason for not doing this?
-- 
 nick

Index: src/etc/daily
===================================================================
RCS file: /cvs/src/etc/daily,v
retrieving revision 1.48
diff -u -r1.48 daily
--- src/etc/daily	2004/12/07 19:08:15	1.48
+++ src/etc/daily	2005/03/08 16:21:30
@@ -11,7 +11,7 @@
 if [ -f /etc/daily.local ]; then
 	echo ""
 	echo "Running daily.local:"
-	. /etc/daily.local
+	. /etc/daily.local 2>&1
 fi

 TMP=`mktemp /tmp/_daily.XXXXXXXXXX` || exit 1
Index: src/etc/weekly
===================================================================
RCS file: /cvs/src/etc/weekly,v
retrieving revision 1.14
diff -u -r1.14 weekly
--- src/etc/weekly	2003/06/30 22:04:57	1.14
+++ src/etc/weekly	2005/03/08 16:21:30
@@ -9,7 +9,7 @@
 if [ -f /etc/weekly.local ]; then
 	echo ""
 	echo "Running weekly.local:"
-	. /etc/weekly.local
+	. /etc/weekly.local 2>&1
 fi

 echo ""
Index: src/etc/monthly
===================================================================
RCS file: /cvs/src/etc/monthly,v
retrieving revision 1.5
diff -u -r1.5 monthly
--- src/etc/monthly	1998/02/02 23:08:57	1.5
+++ src/etc/monthly	2005/03/08 16:21:30
@@ -4,7 +4,7 @@
 if [ -f /etc/monthly.local ];then
 	echo ""
 	echo "Running monthly.local:"
-	. /etc/monthly.local
+	. /etc/monthly.local 2>&1
 else
 	echo "Nothing to do!"
 fi



Visit your host, monkey.org