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

Add support for "cmd1 ... | passh cmd2 ... | cmd3 ..." ? #14

Open
clarkwang opened this issue Mar 16, 2022 · 1 comment
Open

Add support for "cmd1 ... | passh cmd2 ... | cmd3 ..." ? #14

clarkwang opened this issue Mar 16, 2022 · 1 comment

Comments

@clarkwang
Copy link
Owner

clarkwang commented Mar 16, 2022

sshpass is quite happy with pipes, as mentioned in README.md.

@clarkwang
Copy link
Owner Author

clarkwang commented Mar 16, 2022

The current behavior is intentional. I don't want people to think that the following usage would work as expected:

passh cmd1 ... | cmd2 ...

Simple example:

$ sshpass echo hello | hexdump -C
00000000  68 65 6c 6c 6f 0a                                 |hello.|
00000006
$ passh echo hello | hexdump -C
00000000  68 65 6c 6c 6f 0d 0a                              |hello..|
00000007

You can write like this (as mentioned in README.md):

passh sh -c 'cmd1 ... | cmd2 ... | ...'

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

No branches or pull requests

1 participant