Re: top command results from an ssh

2008-05-16 Thread Mike Bird
On Fri May 16 2008 04:39:10 avilella wrote: > how can I get the results of doing a "top" sorted by memory usage from > an ssh command? > > Sth like: > > ssh a-computer top > > Is this doable? It's doable but ugly: ssh a-computer top -b -n1 | tail -n+8 | sort -n -k1.46,1.50 You might want to se

Re: top command results from an ssh

2008-05-16 Thread Jochen Schulz
avilella: > > how can I get the results of doing a "top" sorted by memory usage from > an ssh command? I am not sure what exactly you are trying to do, but $ ssh -t host top will show top's output from the remote host in your current terminal. You need the -t option when you want to force ssh t

top command results from an ssh

2008-05-16 Thread avilella
Hi, how can I get the results of doing a "top" sorted by memory usage from an ssh command? Sth like: ssh a-computer top Is this doable? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]