'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.
In reply to Re: Aix "topas" command output redirection into a file
by zeni
in thread Aix "topas" command output redirection into a file
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |