Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: stefanha@gmail.com (Stefan Hajnoczi)
Subject: [ltt-dev] usttrace does not support arguments with spaces
Date: Tue, 15 Nov 2011 10:38:22 +0000	[thread overview]
Message-ID: <CAJSP0QUnoRnPAVUJaa9PzxP3rU3_OyGFkqVCscNsuALxuCZ82w@mail.gmail.com> (raw)

Is usttrace still going to be around for LTTng 2.0?  If not, maybe
these observations don't matter, but I wanted to discuss before I
forget them.

usttrace in ust-bin Debian 0.15-3 does not handle spaces in
command-line arguments:

  # Prepare vars
  CMD=$*
  [...]
  # Execute the command
      $CMD 2>&1
  ) | tee "$OUTDIR/app.log"

My temporary fix was:

  # Execute the command
  "@" 2>&1

Since I was tracing a curses application it turned out redirecting
stdout/stderr wasn't helpful ;).  So I dropped the app.log and
redirection.  Capturing application output is not useful in this case.

If you can point me to the git repo that has usttrace I'm happy to
send patches.  I have to admit I failed to find usttrace in the git
repos, I must be looking in the wrong place ;).

Thanks,
Stefan




             reply	other threads:[~2011-11-15 10:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 10:38 Stefan Hajnoczi [this message]
2011-11-15 11:05 ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJSP0QUnoRnPAVUJaa9PzxP3rU3_OyGFkqVCscNsuALxuCZ82w@mail.gmail.com \
    --to=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox