- edited description
pydsh not using unbuffered output when in virtualenv
Issue #10
resolved
It appears that after installing pydsh in a virtual environment the interpreter does not use unbuffered output which makes the --dshbak flag unusable
pydsh -D -w servers-[01-143].example.net 'rpm -qa | grep bash' | dshbak -c
Appears to be caused because this is the shebang:
#!/Users/jdoe/.virtualenvs/test/bin/python
When specifying the path to the script and using python -u the script works fine.
python -u /Users/jdoe/.virtualenvs/test/bin/pydsh -D -w servers-[01-143].example.net 'rpm -qa | grep bash' | dshbak -c
We should see if there is a better way to ensure unbuffered output from pydsh.
Comments (4)
-
reporter -
reporter - edited description
-
reporter - changed status to resolved
Fixed via commit https://bitbucket.org/isaiah1112/sshreader/commits/604e6e76273c9efe53d642eadd8301e6cbe993b2 as part of v3.4.4 hotfix.
-
reporter - removed version
Removing version: v3.0 (automated comment)
- Log in to comment