I am trying to use parallel
on multiple server using ssh
, what actually I would like to do is something like:
parallel -s computer_list.txt < command.txt
where in server_list.txt
there is list of server and in command.txt
looks like
fist_job.sh
second_job.sh
...
But I don't want that all the server do all the jobs in the list, I want that each *.sh
is executed just one time on a random server, all of them can reach all files that they need to execute each command.
In other words what I am looking for is a kind of generalization of:
parallel < command.txt