Re: Sending data to persistent process stdin
| From: | Stut | Date: | Sat, 05 Aug 2006 19:03:50 +0000 |
| Subject: | Re: Sending data to persistent process stdin | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240190@lists.php.net to get a copy of this message | ||
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 < 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.
There's really no good reason that shouldn't have worked. I suggest you
find an mpg123 mailing list and ask them why that happened.
-Stut