When you do rsh (remsh in HP-UX) followed by a series of
pipes, consider carefully whether you want the pipe processes
to run on the local or the remote host. If you quote the
pipes, then they become part of the arguments passed to
the remote host and evaluated there. E.g.
rsh myRemoteHost last "|" grep userName "|" head
(In this example, we pipe the output of last to grep,
because in Solaris "last userName" only shows console
logins, not FTP logins.)
This tip generously supported by: bhamilto@world.northgrum.com
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.