By adding commands at the end of the ssh command they will be issued at the remote machine and you will get back stdout and stderr results on the local machine.
ssh useraccount@boxname 'someCommand | someOtherCommand'
This post is also available in: Greek
Pingback: How to call ‘top’ on a remote machine using ssh | a Bytefreaks Web Portal