Ok, that was a bit of a silly example, sorry.
The thing is, I have some sets parameters that I want to be executed in parallel, remotely, using autossh to keep the connection up instead of ssh. To have autossh working, every monitoring connection need to use a different port. So the command would look like this:
parallel --xapply --header : --ssh 'autossh -M '{PORT} -sshlogin "HOST1,HOST2,HOST3" ./my_software {PARAM_A} {PARAM_B} {PARAM_C} ::: PORT `seq 1 64
` ::: PARAM_A 1 2 5 10 ::: PARAM_B 0.1 0.2 0.5 1 ::: PARAM_C alg1 alg2 alg3 alg4
The
parameter PORT is not something that I would use with my software, but
is still something that I need to be different for each call and I don't see any other way of achieving this.