[Swift-commit] r2554 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Feb 17 07:16:03 CST 2009


Author: benc
Date: 2009-02-17 07:16:01 -0600 (Tue, 17 Feb 2009)
New Revision: 2554

Modified:
   trunk/libexec/wrapper.sh
Log:
log stdout and stderr to the -info file when a job fails, to aid in debugging those jobs

Modified: trunk/libexec/wrapper.sh
===================================================================
--- trunk/libexec/wrapper.sh	2009-02-16 21:20:35 UTC (rev 2553)
+++ trunk/libexec/wrapper.sh	2009-02-17 13:16:01 UTC (rev 2554)
@@ -24,6 +24,14 @@
 	cat /proc/meminfo 2>&1 >& "$INFO"
 	infosection "command line"
 	echo $COMMANDLINE 2>&1 >& "$INFO"
+	if [ -f "$STDOUT" ] ; then
+		infosection "stdout"
+		cat $STDOUT >& "$INFO"
+	fi
+	if [ -f "$STDERR" ] ; then
+		infosection "stderr"
+		cat $STDERR >& "$INFO"
+	fi
 }
 
 logstate() {
@@ -245,8 +253,6 @@
 	fail 254 "The executable $EXEC does not have the executable bit set"
 fi
 if [ "$KICKSTART" == "" ]; then
-log "command line is $EXEC $@"
-log "pwd is $(pwd)"
 	if [ "$STDIN" == "" ]; then
 		"$EXEC" "$@" 1>"$STDOUT" 2>"$STDERR"
 	else




More information about the Swift-commit mailing list