Hi guys.
Im in the middle of a project for Home Automation where I need my browser to call the command "say" on the terminal. I got everything working but the voice doesnt come with the command, it only displays the content of the file I called.
Here is what i've done so far:
Installed OS X Server 10.8.5 for Mountain Lion (I heard that Apple changed a few things for the server for ML)
I have my machine as 10.0.1.15
I created a file "testhttp" with 755 permission with this content:
The file is placed on the folder /library/webserver/cgi-executables (I used the aliases to create a "cgi-bin" to access "cgi-executables".
So when I call the file using ./testhttp on terminal, I get the content displayed plus a voice from my speakers, but when I call it from any browser using :
http://10.0.1.15/cgi-bin/testhttp
I only get the content displayed, but no voice ...
Im assuming its something related to the changes apple did for Mountain Lion because on Lion I had that working no problem ...
Please guys, help me out with that once Im getting really frustrated !
Take Care and thanks in advance!
Im in the middle of a project for Home Automation where I need my browser to call the command "say" on the terminal. I got everything working but the voice doesnt come with the command, it only displays the content of the file I called.
Here is what i've done so far:
Installed OS X Server 10.8.5 for Mountain Lion (I heard that Apple changed a few things for the server for ML)
I have my machine as 10.0.1.15
I created a file "testhttp" with 755 permission with this content:
Code:
[I]#!/bin/bash
echo -e "Content-type: text/html\n"
cat << junk
<html>
<head>
<title>
saying
</title>
</head
<body>
junk
say -v vicki "i am issy hear me roar"
cat << junk
</body>
</html>
junk[/I]
So when I call the file using ./testhttp on terminal, I get the content displayed plus a voice from my speakers, but when I call it from any browser using :
http://10.0.1.15/cgi-bin/testhttp
I only get the content displayed, but no voice ...
Im assuming its something related to the changes apple did for Mountain Lion because on Lion I had that working no problem ...
Please guys, help me out with that once Im getting really frustrated !
Take Care and thanks in advance!
Last edited by a moderator: