Re: Sending data to persistent process stdin
| From: | Ville Mattila | Date: | Sat, 05 Aug 2006 18:35:06 +0000 |
| Subject: | Re: Sending data to persistent process stdin | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240188@lists.php.net to get a copy of this message | ||
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 mp3file.mp3\n" > mpg Unfortunately, the mpg123 quits immediately without any response... In general, the idea sounds good, but there is still something uncompatible. Ville