thanks for the suggestions.<br>I'm not able to modify the mplayer command...<br>and they do not create a fifo<br><br>and yes, i meant 'pid', sorry.<br><br>-felix<br><br><div><span class="gmail_quote">On 6/28/07, 
<b class="gmail_sendername">Will Maier</b> <<a href="mailto:willmaier@ml1.net">willmaier@ml1.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Jun 28, 2007 at 08:01:18PM +0000, Seltzer wrote:<br>> I need to send commands to a process that i did not start.<br>> (mplayer specifically) I have the PIP of the process, and thats<br>> about all.<br><br>
I assume you mean 'PID'. This is somewhat offtopic, but mplayer<br>supports receiving commands from a FIFO:<br><br>    mplayer -quiet -slave -idle -input file=/home/you/.mplayer/fifo<br><br>Then you can write commands (like 'loadfile 
song.ogg') to the fifo.<br>Doing this in Python is as trivial as opening, writing to, and<br>closing a file object.<br><br>> Any ideas on how to do this in python? i need only to write to its<br>> stdin, not read any information from it, and i don't really need
<br>> to know if my command worked for now, so error handling isn't<br>> really an issue.<br><br>I don't know of any magic to write to a running program's stdin.<br><br>--<br><br>[Will Maier]-----------------[
willmaier@ml1.net|http://www.lfod.us/]<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>