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.