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

bcfg2-info redirect to stdout truncated in 1.3.5 on RedHat 6.6 64-bit #303

Open
dmlane opened this issue Jul 30, 2015 · 3 comments
Open

Comments

@dmlane
Copy link

dmlane commented Jul 30, 2015

Hi there - as I reported on the trac wiki, there's a problem with bcfg2-info 1.3.5 using python 2.6.6 where stdout gets truncated. To demonstrate this, I've included a script which runs the same command 3 times and I'll upload the output ....

@dmlane
Copy link
Author

dmlane commented Jul 30, 2015

Aargh - how do I upload files to github?

@dmlane
Copy link
Author

dmlane commented Jul 30, 2015

I've added files to demonstrate this in https://www.dropbox.com/sh/gedtr50u9dpav0e/AACXX-Yc9EymrftLeaKVaQeWa?dl=0 - I ran the test_bcfg2.sh and you can see in test.bcfg2.weird that not all entries were output in the last call to showentries. Please let me know when you've copied the files so that I can delete them from dropbox.

@AlexanderS
Copy link
Member

Just for reference, this is the test script:

#!/bin/bash

fn=/tmp/test.bcfg2
cat >${fn}.input<<EOF
showentries postfiles.ecadmz.eu
showentries postfiles.ecadmz.eu
showentries postfiles.ecadmz.eu
EOF

bcfg2-info <${fn}.input 2>${fn}.err >${fn}.out

sort ${fn}.out|uniq -c|awk '{if ($1!=3) print }' >${fn}.weird

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

2 participants