Originally Posted by unSpawn
Either set the TERM variable or better: use top in batch mode with 'top -n1 -b' and receive output on stdout. *Note if you want to run top on several hosts continuously then you probably suffer from "using the wrong tool for the right job" syndrome in the sense of never having heard of Monit, Nagios, SNMP, etc, etc...
thank you very much
it works. but how to output the first 25 lines of top command in each nodes.
i run the following commad, but it seems that it does not work
pssh -h hostsfile -i top -n1 -b|head -n25