unix1986 / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

Variable for hostname #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is a feature request, not a bug.

It would be nice if you could use a variable, for instance %hostname% where it 
replaces the variable with the hostname (or IP) of the server it is connecting 
to.

Original issue reported on code.google.com by thasypher on 21 Feb 2011 at 8:28

GoogleCodeExporter commented 8 years ago

Original comment by amcna...@gmail.com on 1 Mar 2011 at 3:48

GoogleCodeExporter commented 8 years ago
I presume that the intention is to include the hostname variable within the 
command provided to pssh, right?  Have you considered including '$(hostname)' 
within the command?  For example:
  pssh -h somehost 'echo hello from $(hostname)'

Original comment by amcna...@gmail.com on 23 May 2011 at 6:53

GoogleCodeExporter commented 8 years ago
That is actually a pretty good idea :-)
Works for me!

Original comment by thasypher on 24 May 2011 at 5:10

GoogleCodeExporter commented 8 years ago
Great.  I'll close this issue, then.

Original comment by amcna...@gmail.com on 24 May 2011 at 6:17