Execute local binary from local webform?
Does anyone know of a Linux or platform independent equivalent to Windows' "hypertext application". My understanding is that this technology allows you to execute local binaries from a web browser. For example, apparently the following will open Excel. I haven't tested since I'm not running Windows.
开发者_开发知识库<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Run Executable HTA</TITLE>
</HEAD>
<body bgcolor=#565656>
<script language="javascript" type="text/javascript">
var oShell = new ActiveXObject("WScript.Shell");
var prog = "C:\\Program Files\\Microsoft Office\\Office\\Excel.exe";
oShell.run ('"'+prog+'"',1);
window.close();
</script>
</BODY>
</HTML>
Optimally I would like to be able to specify arguments in a form and trigger a run from my web-browser. Returning output is not necessary and everything runs a on the local machine so security is not a priority either.
The simpler the solution the better since my motivation for going in this direction is to get a cheap and dirty GUI up and running quickly so I can concentrate on more interesting aspects of the project...
You also could take a look at the integration between Qt and WebKit.
This might be an overkill for your purpose, but it makes it very easy to export the APIs (C++, for instance POSIX function system()), into the JavaScript environment that runs inside such a web browser.
It is the easiest way to create domain-specific web browsers.
精彩评论