Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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:

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.

Comment on Aix "topas" command output redirection into a file
Replies are listed 'Best First'.
Re: Aix "topas" command output redirection into a file
by choroba (Canon) 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 (Prior) on May 22, 2012 at 19:05 UTC


    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 and 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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-11-30 11:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls