Solved

Triggering Server Side Sounds via CGI Posts

Posted on 2004-08-27
6
292 Views
Last Modified: 2010-04-17

Is there a way to trigger a Perl script to play an audible sound on its server when a CGI POST is made to that script from a web client clicking a submt button on a web page?

From what I can tell, IIS opens a special IUSR session and so no sound is heard server side, even though a script may play a .WAV file.

Is there a way to allow the Perl script to make any sounds it may play go to the server's speaker?

We have a Perl script that opens a speech synthesis program and speaks whatever someone types onto our web page.  However, nothing is heard is the Perl script is run as a CGI app, but we can hear it fine if it is run from the command line.

Thank you for your time.
0
Comment
Question by:gillammi
  • 3
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
dimitry_dimitry earned 500 total points
ID: 11920540
I guess the key is in security policies - try test running IIS under administrator or somebody like him.
0
 
LVL 5

Expert Comment

by:rsriprac
ID: 11924923
I would recommend a work around where you use some sort of proxy, i.e. write to a db or file.  Then program a windows app so it checks it every short interval and plays a sounds once there is a new entry in the db or file.

-Ram
0
 

Author Comment

by:gillammi
ID: 11925598
We thought of that work around, but are trying to avoid that to avoid latency.
(Certainly checking every 10 seconds is possible - but a waste of CPU cycles if there is another way.)
Thanks.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:gillammi
ID: 11925673
Dimitry, your suggestion worked.

Here is the process.  Open IIS, open properties for the script that needs to trigger a sound,  Go to file security, and EDIT anonymous access.  You need to set the anonymous access of the script to the username and password of the live session on the server.  Whenever the script is executed, you will hear the sound play server side.

Keywords: Win32 playing remote server side web sounds with Perl
Keywords2: triggering remote sounds over a CGI connection under IIS with Perl

0
 
LVL 2

Expert Comment

by:dimitry_dimitry
ID: 11925799
And may I ask - what do you use it for?
0
 

Author Comment

by:gillammi
ID: 11929610
We have a server hoooked to the PA system.

Anything sent as a CGI POST to the script is announced overhead.

Yes - that could be dangerous if you gave everyone access and were concerned about everyone hearing a computer say naughty words.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now