[Lazarus] Thread List Window in the IDE
Mattias Gärtner
nc-gaertnma at netcologne.de
Thu Aug 27 14:37:48 CEST 2009
Zitat von Graeme Geldenhuys <graemeg at opensoft.homeip.net>:
> Mattias Gärtner wrote:
>>> $ ./project1
>>> /usr/bin/gnome-terminal
>>> --title="Thread Monitor - project1"
>>> --command="watch -n.1 'ps -C project1 -L -o pid,tid,pcpu,state'"
>>
>> And that is wrong. This is the command as given to a shell, which
>> removes the outer level " and ' and then executes it.
>> TProcess only removes the ",' if the parameter starts with a ",'.
>
>
> OK, but should the following then work.
>
> ----------[ ~/bin/lsthreads ]------------------
> /usr/bin/gnome-terminal --title="Thread Monitor" \
> --command="watch -n.1 'ps -C ${1} -L -o pid,tid,pcpu,state'"
> ----------------[ end ]------------------
No. Still the " are in the parameters.
This works:
"--title=Thread Monitor" "--command=watch -n.1 'ps -C ${1} -L -o
pid,tid,pcpu,state'"
> Now I can call that using:
>
> $ lsthreads project1
>
>
> Creating another External Tool entry with the following information
> still doesn't produce a result. Now I don't get any error, but I don't
> even get a command prompt (gnome-terminal) either. :-(
Keep trying.
> Program Filename:
> lsthreads
> or
> /home/graemeg/bin/lsthreads
>
> Parameters:
> $NameOnly($TargetFile())
Mattias
More information about the Lazarus
mailing list