If you just want 'top' to run and output nicely to another program (or leave
you a nice output and then a prompt) try 'top -bn1'.

Perhaps not exactly what you want, but worth knowing about.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com