View Single Post

   
  #7 (permalink)  
Old 01-05-2008, 12:32 PM
Emerson Seiti Takahashi
 
Posts: n/a
Default Re: topas output to file

On Mar 29, 8:11 pm, flyz...@technologist.com wrote:
> Hi.
> I'm trying to run topas in a script and to write the output to a file.
> The problem is that in the file appear many strange simbol, maybe
> cause of the grafic and not-standard update of the value in
> interactive mode.
> There isn't a "non interactive mode" like in the "top -b" command in
> linux?
>
> I need to have the CPU busy/idle and all the process with the
> occupation in the cpu, but i can't run other commands cause they'll
> give the ouput in different moment and just with a difference of 1
> second could give me problem, i need to have this data all in one
> moment.
> (looking cpu more hight that my warning-level, i'll get what is the
> process that eat more cpu-time)
>
> Hope to receive some reply.
>
> Thanks in advance


I don't know if this will help but here we go:
topas -i <segundos> -P | tee [-ai] [filename]
This isn't non-interactive

But I believe you would have more success if you use ps and then sort
by %CPU.

Reply With Quote