X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=usttrace;h=d1a6e5fef71b1c3ee6db7c609557e8ae640a83ae;hp=e76dae71be1f6590e1ea487bde1ba3c4921ddea3;hb=HEAD;hpb=a4e9613d77b6a7bfe388f47cf5375b6aea9026b8 diff --git a/usttrace b/usttrace index e76dae7..d1a6e5f 100755 --- a/usttrace +++ b/usttrace @@ -85,16 +85,13 @@ if [ -n "$where" ]; then exit 0 fi -# Prepare vars -CMD=$* - # Validate input if [ -z "$HOME" ]; then error "no home specified" fi -if [ -z "$CMD" ]; +if [ -z "$*" ]; then error "no command specified" usage; @@ -196,7 +193,7 @@ fi fi # Execute the command - $CMD 2>&1 + "$@" 2>&1 ) | tee "$OUTDIR/app.log" ## Because of the keepalive mechanism, we're sure that by the time