Re: [PHP] Sending data to persistent process stdin

2006-08-07 Thread Richard Lynch
On Sat, August 5, 2006 8:08 am, Ville Mattila wrote: > I have been thinking of making a simple web-based interface to control > my media center box (running debian linux). Being a bit enthustiatic, > I > thought I could use some generic tools for playing media files and > write > the whole UI by my

Re: [PHP] Sending data to persistent process stdin

2006-08-06 Thread David Tulloh
Ville Mattila wrote: > Hello readers, > > I have been thinking of making a simple web-based interface to control > my media center box (running debian linux). Being a bit enthustiatic, I > thought I could use some generic tools for playing media files and write > the whole UI by my own. > > I fou

Re: [PHP] Sending data to persistent process stdin

2006-08-05 Thread Stut
Ville Mattila wrote: > Stut kirjoitti: >> 1) Find out how to create a named pipe and start mpg123 to take its >> input from that named pipe. Your PHP scripts can then write commands to >> that pipe. >> > > Thanks Stut, rather good idea... I tried following commands: > > mkfifo mpg > mpg123 -R

Re: [PHP] Sending data to persistent process stdin

2006-08-05 Thread Ville Mattila
Stut kirjoitti: 1) Find out how to create a named pipe and start mpg123 to take its input from that named pipe. Your PHP scripts can then write commands to that pipe. Thanks Stut, rather good idea... I tried following commands: mkfifo mpg mpg123 -R < mpg And in another shell echo "LOAD mp3

Re: [PHP] Sending data to persistent process stdin

2006-08-05 Thread Stut
Ville Mattila wrote: > How could I use PHP and its process functions to send something to stdin > of a persistent process? I would like to run mpg123 only once, > whichafter a few PHP scripts would send data and proper commands to its > stdin. Maybe a kind of daemon process would be needed? Anyway,

[PHP] Sending data to persistent process stdin

2006-08-05 Thread Ville Mattila
Hello readers, I have been thinking of making a simple web-based interface to control my media center box (running debian linux). Being a bit enthustiatic, I thought I could use some generic tools for playing media files and write the whole UI by my own. I found mpg123 program that can be ru