Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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
[1nickt]: karlgoethebier that would be "trying out" German that I remember from long ago!
1nickt used to be in a meatspace monastery, in EU, with lots of wanderers from all over the world ...
[karlgoethebier]: 1nickt: Thanks. Now i know what "meatspace" means...
marto is glad to see others advising against learning CGI, unless someone really has to :P
[karlgoethebier]: he,he! literally it's "Fleischraum"

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-12-13 13:12 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (367 votes). Check out past polls.