rsh (shell distant
ou remote shell) est un utilitaire très
intéressant pour exécuter une commande sur une machine distante. En
voici quelques exemples:
[psheer@cericon]# rsh divinian.cranzgot.co.za hostname
divinian.cranzgot.co.za
[psheer@cericon]# rsh divinian.cranzgot.co.za
\
tar -czf - /home/psheer
| dd of=/dev/fd0 bs=1024
tar: Removing leading `/' from
members names
20+0 records in
20+0 records out
[psheer@cericon]# cat
/var/spool/mail | rsh divinian.cranzgot.co.za \
sh -c 'cat » /home/psheer/mail/cericon` |
A nouveau, pour des raisons de sécurité, rsh ne devrait jamais être utilisé à travers un réseau public.