external tools - how to redirect output

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

external tools - how to redirect output

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: external tools - how to redirect output

Post 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
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: external tools - how to redirect output

Post by HJarausch »

Many thanks Eran.

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

Helmut.
Post Reply