pydsh not using unbuffered output when in virtualenv

Issue #10 resolved
Jesse Almanrode repo owner created an issue

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)

  1. Log in to comment