Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 (Chancellor) 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
[Tanktalus]: perldigious: I'm not looking to get rich. I'm looking for interesting work, with good continuity of employment, and maintenance of our current lifestyle. (An improvement wouldn't be bad, either, but that's not a requirement ;) )
erix enjoys the confusion++
[Your Mother]: :P
[Tanktalus]: Without confusion, I'd be out of a job ;)
[Tanktalus]: Already. :D
[Lady_Aleena]: Your Mother, I wish it did have a way to put in a directory to search.
[Your Mother]: Thatís silly. Itís a string op tool.
[Lady_Aleena]: So I guess I'll go argue with File::Find and grep.
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-05-23 19:37 GMT
Find Nodes?
    Voting Booth?