Giter Club home page Giter Club logo

Comments (9)

timgkeller avatar timgkeller commented on July 20, 2024

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.

bede avatar bede commented on July 20, 2024

Thanks @timgkeller – I should probably have presented a simpler test case. Maybe @kennethreitz could shine some light on this?

from envoy.

chassing avatar chassing commented on July 20, 2024

@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.

bede avatar bede commented on July 20, 2024

Ah, that's a pity. Cheers for the recommendation @chassing

from envoy.

bede avatar bede commented on July 20, 2024

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.

chassing avatar chassing commented on July 20, 2024

@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.

kernc avatar kernc commented on July 20, 2024

@bede https://plumbum.readthedocs.org/ https://docs.python.org/3/library/pipes.html

from envoy.

eugene-eeo avatar eugene-eeo commented on July 20, 2024

@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.

bede avatar bede commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.