dsh executes command remotely on several different machines at the same time. An utility to effectively do tasks
for tasks in $(seq 1 10)
do
rsh $a command
done
in bourne shell.
dsh [-m machinename | -a | -g groupname] [-r remoteshellname] [-c | -w | -i | -F forklimit ] -- commandline
List of machine names to be used for when -a command-line option is specified.
/etc/dsh/machine.list
List of machine names to be used for when -g groupname command-line option is specified.
/etc/dsh/group/groupname
Configuration file containing the day-to-day default.
/etc/dsh/dsh.conf
bash# dsh -a w
Shows list of users logged in on all workstations.
bash# dsh -r ssh -a -- w
Shows list of users logged in on all workstations, and use ssh command to connect. (It should be of note that when using ssh, ssh-agent is handy.)