We have encountered some issues where we're editing files on multiple nodes in a cluster and doing so via cssh to ensure continuity. Is there a flag to pass to cluster ssh (or a key sequence to enter into the command window) to prevent it from replacing %s with the hostname when that sequence is pasted into the command window?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I happen to be using the packaged version in the ubuntu repositories. The man pages specifcy a .csshrc file but not .clusterssh/config and aren't specific about how one would go about altering the shortcut. Would you be so kind as to elaborate? I could also modify the scirpt itself but just wanted to make sure there wasn't an existing mechanism for this.
Thanks in advance,
Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have encountered some issues where we're editing files on multiple nodes in a cluster and doing so via cssh to ensure continuity. Is there a flag to pass to cluster ssh (or a key sequence to enter into the command window) to prevent it from replacing %s with the hostname when that sequence is pasted into the command window?
Easiest thing to do would be to amend that shortcut within the $HOME/.clusterssh/config file
Duncs
Thanks for the prompt response!
I happen to be using the packaged version in the ubuntu repositories. The man pages specifcy a .csshrc file but not .clusterssh/config and aren't specific about how one would go about altering the shortcut. Would you be so kind as to elaborate? I could also modify the scirpt itself but just wanted to make sure there wasn't an existing mechanism for this.
Thanks in advance,
Jeff
$HOME/.csshrc is from an older version of clusterssh (the newer 4.0 series is in testing I believe).
In your case the easiest option would probably be to edit cssh itself and amend %s in the code.
Duncs
I think this can be improved code-wise; I'll see if I can implement something for v4
Duncs
This issue comes up fairly infrequently so for the times when we need it NOT to do this we can just comment out the regex in the script.
Thanks so much for your help.
This is a great tool and we appreciate your support!