attach to process by pid?

Grant Edwards invalid at invalid.invalid
Thu Mar 10 18:30:00 EST 2011


On 2011-03-10, James Mills <prologic at shortcircuit.net.au> wrote:
> On Fri, Mar 11, 2011 at 8:55 AM, Alexander Kapps <alex.kapps at web.de> wrote:
>> On 10.03.2011 23:25, Nobody wrote:
>> Unless I misunderstand something, it is possible (at least on Linux):
>>
>> Two terminal windows:
>>
>> 1:
>> alex at frittenbude:~$ grep foobar
>>
>> 2:
>> alex at frittenbude:~$ ps ax|grep 'grep foobar'
>> 13075 pts/4 ?? ??S+ ?? ?? 0:00 grep --color=auto grep foobar
>> alex at frittenbude:~$ echo foobar > /proc/13075/fd/0
>
> This works fine on the Linux platform

No it doesn't.  Try writing something other than "foobar".

-- 
Grant Edwards               grant.b.edwards        Yow! An INK-LING?  Sure --
                                  at               TAKE one!!  Did you BUY any
                              gmail.com            COMMUNIST UNIFORMS??



More information about the Python-list mailing list