Solved

Triggering Server Side Sounds via CGI Posts

Posted on 2004-08-27
6
282 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

708 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

17 Experts available now in Live!

Get 1:1 Help Now