1

I need to sample a (cli) application with shark and pass parameters to it like so:

shortest-path <input-ref-littleendian|diff -u - output-ref

How can I do this with shark? Shark assumes that the parameters i need to pass to the launched cli app are for shark itself, not the process.

1 Answers1

0

That's not "parameters to a program", that's a shell pipeline. You might need to use parenthesis to make it clear in which order things should happen, e.g. perhaps something like

$ shark ( shortest-path < input-ref-littleendian | diff -u - output-ref )

I don't have access to shark so I cannot verify this.

unwind
  • 391,730
  • 64
  • 469
  • 606
  • doesn't work, if i use parenthesis it doesn't recognize the `shortest-path` executable (even if i specify the path absolute). it just says it doesn't recognize the symbol after the opening `(`. –  Dec 17 '10 at 14:54
  • nevermind. `shark -i ./shortest-path /dev/null` does the job... just wonder why i had troubles before executing this. –  Dec 17 '10 at 15:40