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

remote popen file object can not read like a stream #148

Closed
zhangchunlin opened this issue Oct 21, 2014 · 1 comment
Closed

remote popen file object can not read like a stream #148

zhangchunlin opened this issue Oct 21, 2014 · 1 comment

Comments

@zhangchunlin
Copy link

    import rpyc
    c = rpyc.classic.connect("127.0.0.1")
    f = c.modules.os.popen("ping www.google.com -c 3")
    for l in f:
        print l,

Above code will print after ping finished,not like a stream when run in local, is it possible to act as local popen file object?

@coldfix
Copy link
Contributor

coldfix commented Jul 3, 2017

For me, the given example shows the same behaviour both for local/remote execution:

  • python2.7 show complete output after finishing all pings
  • python3.6 show output line by line on every ping

If you still experience this issue, can you reopen and give more details (platform, python version, example for local code)?

Best, Thomas

@coldfix coldfix closed this as completed Jul 3, 2017
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