Re: Sending data to persistent process stdin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux