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

PDSH still truncating long lines #128

Open
sphennes opened this issue Feb 25, 2021 · 0 comments
Open

PDSH still truncating long lines #128

sphennes opened this issue Feb 25, 2021 · 0 comments

Comments

@sphennes
Copy link

sphennes commented Feb 25, 2021

I've run into a case where pdsh is truncating results.

First a file with many lines.

$ dd if=<(yes) of=yes.out count=421083 ibs=1
$ wc yes.out
210541 210542 421083 yes.out

$ ssh server 'cat yes.out' | wc
210541 210542 421083
$ pdsh -N -R ssh -w roadrun1pa 'cat yes.out' | wc
210542 210542 421084

Now a file with one line, but many chars.
$ tr '\n' '~' < yes.out > bigyes.out
$ wc bigyes.out
0 1 421083 bigyes.out

$ ssh server 'cat bigyes.out' | wc
0 1 421083
$ pdsh -N -R ssh -w roadrun1pa 'cat bigyes.out' | wc
16 16 131184

Trivial example I know, but I do have a use case where I'm trying to pull back data that has one line with 421083 chars.

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