Page 1 of 1

external tools - how to redirect output

Posted: Thu Jul 14, 2011 1:37 pm
by HJarausch
Hi,

I'd like to configure gprof as external tool.
Unfortunately, gprof has no option to redirect its output to a file.
One has to use the Unix redirection operator '>'
How to configure an external tool for such a program?

Many thanks for a hint,
Helmut.

Re: external tools - how to redirect output

Posted: Thu Jul 14, 2011 9:03 pm
by eranif
You can simply wrap it in a shell command, like this:

Tool:

Code: Select all

/bin/sh
Arguments:

Code: Select all

-c 'ls -l > myls.txt'

Eran

Re: external tools - how to redirect output

Posted: Fri Jul 15, 2011 11:27 am
by HJarausch
Many thanks Eran.

Perhaps you can put it on the wishlist to support redirection without the help of a shell.

Helmut.