• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Perl/CGI Question - mod_perl IPC / Unix / mpg321...

Superwormy

Golden Member
Aight I'll make this short and sweet, what I would like to do is make a web based interface to mpg321 on FreeBSD using mod_perl.

I WILL NOT be streaming the mp3s to another program, I just basically want to make a web-based frontend to mpg321.


I think I have everything figured out EXCEPT how to RE-establish communication with mpg321 AFTER a script has finished running and I run it again. For instance, we run the Perl script once, it runs and starts mpg321, and tell is to play a song. The script ends. Now,I want to run it again and tell mpg321 to STOP playing hte song, or to play another song, or pause, or etc., etc.

Problem is, I don't know how to re-establish communication with that process to be able to send input to it THE SECOND TIME THE SCRIPT RUNS. Does anyone know how?
 
Manage it using a PID, kinda like this, but using PERL instead of python and based on a cgi script. Its certainly doable 🙂
 
Back
Top