I need to ssh different runs of a program to different compute nodes, namely:
ssh compute-1 'cd dir; ./program input1;'
ssh compute-2 'cd dir; ./program input2;'
ssh compute-3 ...
I also need to:
- have control over them (i.e., see their output to stdOut or stop them),
- have my screen clear unless I want to see their output,
- have them running even when I close the ssh session to the cluster.
What I am doing at the moment is to call each of them in a different
screen session that I can detach and reattach as I want. Is there any better way to do it (e.g., that does not require opening possibly many