Comments (9)
I can confirm the issue. An example:
cat /var/log/nginx/access.log | wc -l
3368
python -c "from envoy import run; print run('cat /var/log/nginx/access.log | wc -l').std_out"
47
from envoy.
Thanks @timgkeller – I should probably have presented a simpler test case. Maybe @kennethreitz could shine some light on this?
from envoy.
@bede I've also reported (+PR) this issue years ago, see #45, just read the "resolution" for it. I think this project is abandoned 😟 and so I've switched to sh (https://pypi.python.org/pypi/sh)
from envoy.
Ah, that's a pity. Cheers for the recommendation @chassing
from envoy.
I'm sorry to bother you again @chassing, but are you aware of any more Envoy-like solutions than Sh? Sh seems very powerful, but the syntax (at least as I understand it) becomes quite cumbersome for longer shell commands and with multiple pipes.
from envoy.
@bede You are right, the sh usage is a little bit different. Unfortunately I do not know any other envoy-like solutions, but if you found one, drop me a line.
from envoy.
@bede https://plumbum.readthedocs.org/ https://docs.python.org/3/library/pipes.html
from envoy.
@bede the problem is that envoy does not have "proper" piping support, see core.py where only around 10kB of data is passed to the next command. With that being said, you should try proclib for proper piping support.
from envoy.
Thanks @chassing @kernc @eugene-eeo : )
I hadn't come across plumbum or proclib, both of which look interesting. The streaming in Proclib is just what I'm after.
I think it's probably time this one was closed. Thanks again for the help.
from envoy.
Related Issues (20)
- Problem with Unicode HOT 2
- missing license HOT 2
- Roadmap to new release HOT 6
- AttributeErro on self.process.returncode HOT 1
- piping stdout from one process into tar fails HOT 6
- lsof command returns null HOT 1
- status_code in core.py trips up most everything HOT 1
- Better error handling for not found command HOT 1
- "OSError: [Errno 2] No such file or directory" from envoy.run when the command is unicode HOT 1
- Systematic <defunct> process using envoy.connect() HOT 2
- AttributeError: 'NoneType' object has no attribute 'returncode' HOT 1
- Upload a wheel to PyPI HOT 2
- Use subprocess32, the backport from Python 3, that guarantees reliability on POSIX HOT 4
- make it easier to figure out if there is an error.
- shell=True option request
- envoy 0.0.3 the problem of connect method
- error using unicode commands HOT 2
- connection error, child exception HOT 1
- adb shell ps | grep mobile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy.