Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 (Bishop) 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 (Monsignor) 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
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2018-03-23 13:31 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (293 votes). Check out past polls.