Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pssh - allow command to come in from stdin #5

Closed
GoogleCodeExporter opened this issue Sep 1, 2015 · 4 comments
Closed

pssh - allow command to come in from stdin #5

GoogleCodeExporter opened this issue Sep 1, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Currently it's possible to pass ssh a script via stdin to run on the remote
machine like:

ssh user@host < script.sh

but when I try the equivalent with pssh:

pssh -h hosts.txt < script.sh

I get an error "pssh: error: Command not specified".

Would it be possible for pssh to allow the command to be run on the remote
machines come in via stdin like ssh does?

Original issue reported on code.google.com by ryan.bro...@gmail.com on 4 Nov 2009 at 1:55

@GoogleCodeExporter
Copy link
Author

Interesting.  I've never even realized that ssh lets you do that.  I think this 
might 
need a little more thought before plunging ahead.  For example, what should 
happen if 
someone doesn't specify a command but doesn't give any input on stdin either?  
Should 
pssh throw an error in this case?

Original comment by amcna...@gmail.com on 16 Feb 2010 at 8:38

@GoogleCodeExporter
Copy link
Author

Original comment by amcna...@gmail.com on 19 Feb 2010 at 3:15

@GoogleCodeExporter
Copy link
Author

I've made and commited a -I option as a fix for issue #12.  I've also commited 
a 
change that allows the script to be passed on standard input (when -I is 
given), but 
if I get negative feedback about the -I option, this might need to be revisited.

Please try out the latest changes (in the Git repository), and let me know what 
you 
think.  Be sure to chime in on issue #12 if you have an opinion about that.

Thanks for your help with pssh.

Original comment by amcna...@gmail.com on 19 Feb 2010 at 8:26

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I haven't heard back since I made the fix, so for now I'll assume that this 
works.  
I'll close the bug, but please reopen it if you have any problems.  Thanks for 
your 
contribution.

Original comment by amcna...@gmail.com on 24 Feb 2010 at 7:12

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant