Tony, I suggest you re-read my email. I said you can't pass local file
objects (like sys.stdout) to remote Popen.
In other words, this *won't work*:
proc = conn.modules.subprocess.Popen("ls", stdout = sys.stdout, stderr =
sys.stdin)

You can, however, redirect to remote pipes:
proc = conn.modules.subprocess.Popen("ls", stdout = -1, stderr = -1)

And that's exactly what you find on the website. I'm not going to explain
the entire machinery of how pipe redirection works at the OS level.
Suffice it to say that passing -1 creates a remote pipe object which you
can use locally, but the other way around is not possible.


-tomer


-----------------------------------------------------------------

*Tomer Filiba*
tomerfiliba.com     <http://www.facebook.com/tomerfiliba>
<http://il.linkedin.com/in/tomerfiliba>


On Sat, Jul 26, 2014 at 5:59 AM, Tony Cappellini <[email protected]>
wrote:

>
> Would you please explain your statement?
>
> What are the stdin & stdout arguments to subprocess.popen for?
>
> http://rpyc.readthedocs.org/en/latest/docs/classic.html#classic
> It sure seems that these are intended for I/O redirection of the process
> being spawned.
>
>
>
> On Wed, Jul 23, 2014 at 7:14 AM, <[email protected]> wrote:
>
>>   Today's topic summary
>>
>> Group: http://groups.google.com/group/rpyc/topics
>>
>>    - Redirecting I/O- continuously
>>    <#147709bb659989b9_147639300d1fe8a7_group_thread_0> [1 Update]
>>
>>   Redirecting I/O- continuously
>> <http://groups.google.com/group/rpyc/t/c995a610116ff53e>
>>
>>    Tomer Filiba <[email protected]> Jul 22 08:55PM +0300
>>
>>    You can easily redirect IO from the interpreter itself, not from a
>>    process
>>    you spawn.
>>
>>
>>
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to