ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a web server and I want it to play a sound when someone posts a query. I figured I could do it with CGI, so using a small proggy named wavplay (plays a wave file on command line) I wrote a bash script to execute it. However, when the script is executed it returns all text properly (including the text outputed by wavplay when working properly) but the sound isn't heard.
I can only assume it's because the script is running in a restricted mode as a child to apache and it's output is limited to stdout. The best solution I can think of is to somehow tell the kernel to execute a new process that would not be a child to httpd, but I dont know how to do this.