I have a website. It uses vanilla JavaScript. I have access to all the client computers which use the site. My goal was to run a shell script prompted by a JavaScript function from the website. It is, of course, not possible for security reasons (a website accessing the computer's files while using it).
So my other idea: I want to create a software that somehow monitors the currently open website, and monitors if a certain function (which is known of course) was called, then this program can run a shell script.
Example: I have a function called IncomingCall()
in JavaScript on my website. I want a software to be constantly running on the client computers and run example.sh
if IncomingCall()
is called. The website is on a server and the monitoring software and the shell script are on the client computers, which I have access to (no security hazard, no malicious intent).
So my question is, what language or technology could I use for this purpose, if this is possible at all, and how? I understand this is rather vague, but I have no clue how this could be done.
Edit: I want to run a shell script because I want to change the input of the TV connected to the computer to HDMI when a call is incoming on the site.