Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call browser-side local executable from server-side cgi script

Status
Not open for further replies.

fz315

Programmer
Oct 29, 2004
6
CA
Hi,there:
I have a Windows box running Apache web server,cgi script written by perl, and an embedded device (integrated with printer) running linux kernel 2.6,ant web browser,boa http server, right now the device access Apache server in Windows box,is it possible call an executable in the device form cgi script in Apache( in Lan environment,no need to consider security)?

Thanks.
 
This lies outside the CGI model, and would be considered unsafe. I don't trust my kid brother, and it's my LAN.

You could write your own bots to listen on a specific port, and when you give the nod they'll run your command.

Your cgi script can run commands to create a connection on a socket, and when the right data is passed through, then a script (or executable) on the client machine can be fired

lan environment, no need to consider security, I'd love to hear what your sysadmins think of that
--Regards
--paul

cigless ...
 
If I understand correctly what you need is a system call. Check:

perldoc -f system

--
Andres Monroy-Hernandez
Ex Libris Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top