I use top in a perl script for storing information about the system in DB. The actual command is:

top -b -d1 -a all

However the COMMAND field seems to be 60 chars max and everything else is cut off. Is it possible to output full commands using top? I can't find any reference to this.


Because top doesn't provide this (no references), obviously you will need to use ps in your scripts.



The GNU version of top that I use doesn't have the same options as your BSD version, but perhaps this same technique will work for you:

COLUMNS=132 top -b -d1 -a all

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.