I am using HTMl to develop a GUI where in I want to give a call to a function existing in .sh file.
Can any one please suggest suitable option as I tried to call function in different ways but didn't worked out.
I am using HTMl to develop a GUI where in I want to give a call to a function existing in .sh file.
Can any one please suggest suitable option as I tried to call function in different ways but didn't worked out.
You cannot do this from HTML. HTML describes what a page looks like; it doesn't "execute" anything.
You might be able to translate your shell script into JavaScript, which can be embedded in an HTML page, depending on what the shell script does.
If you have a web server, CGI is a protocol (not a network protocol) which allows the web server to run specially-written executables (including scripts) in response to requests to certain web addresses. You can then include a form that submits to an address that triggers your script, or send the request from JavaScript.