Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Aix "topas" command output redirection into a file

by kulls (Hermit)
on May 22, 2012 at 08:10 UTC ( #971738=perlquestion: print w/ replies, xml ) Need Help??
kulls has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I am unable to redirect the "topas" command output in the unix terminal to a file.
Is there anyway, I could tryout through perl system commands in Aix.
Thanks,
Raja

Comment on Aix "topas" command output redirection into a file
Re: Aix "topas" command output redirection into a file
by choroba (Abbot) on May 22, 2012 at 08:59 UTC
    What have you tried and how did it fail?
Re: Aix "topas" command output redirection into a file
by zeni (Beadle) on May 22, 2012 at 09:51 UTC

    'top' command is used to get the list of latest CPU running processes . You can simply write:

    system ("top >log");

    You can then use sed to filter out unwanted characters if any.

Re: Aix "topas" command output redirection into a file
by flexvault (Vicar) on May 22, 2012 at 19:05 UTC

    kulls,

    I have never used the 'topas' command, but the AIX documentation states:

      The topas command reports selected statistics about the activity on the local system. The command uses the curses library to display its output in a format suitable for viewing on an 80x25 character-based display or in a window of at least the same size on a graphical display. The topas command requires the bos.perf.tools and perfagent.tools filesets to be installed on the system.

    What version of AIX do you have? Some commands send their output via error handling to the screen, did you try '2>>vi.err'?

    Good Luck

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://971738]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2014-04-20 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls