]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Added echo to log a command name to the log file
authorYuri Weinstein <yweinste@redhat.com>
Tue, 17 May 2016 21:03:59 +0000 (14:03 -0700)
committerYuri Weinstein <yweinste@redhat.com>
Tue, 17 May 2016 21:12:27 +0000 (14:12 -0700)
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
nightlies/cron_wrapper

index 78b5f0a0046db4d134672732522a13ba6ffdf5ce..d2f6ca312e3397fa61224488716611675794286a 100755 (executable)
@@ -18,6 +18,9 @@ STDOUT="/var/tmp/stdout.$$"
 # $STDOUT and $STDERR are removed when the script exits for any reason
 trap  "rm -f $STDOUT $STDERR" 0
 
+# log a name of the command about to be run
+echo "Running command: $@" >> $LOG
+
 # run a command from this script's argument
 # redirect stdout to $STDOUT file and redirect stderr to $STDERR file
 "$@" > $STDOUT 2> $STDERR