Run the same task on many hosts in sequence

About this task

The lsgrun command allows you to run the same task on many hosts, one after the other, or in parallel.

Procedure

For example, to merge the /tmp/out file on hosts hostA, hostD, and hostB into a single file named gout, enter:
lsgrun -m "hostA hostD hostB" cat /tmp/out >> gout