This won't work. There's no way around the paging in the PM using pmcommand.
Instead, use pmwho, which is available at http://www.n2h2.com/useful_scripts/
It does exactly what you're looking for.
========================================================================
Joe Hartley - jh@brainiac.com - brainiac services, inc
PO Box 5069 : Greene, RI : 02827 - vox 401.539.9050 : fax 401.539.2070
Without deviation from the norm, "progress" is not possible. - FZappa