i use FC5. I need to run a shell script using a webpage. i cannot use php, etc. i should use only the facilities of a browser ( say firefox). so html & javascript seem to be my only options.
i tried “document.location.href” of javascript but the .sh is only downloading in a “download box” ( firefox). i want it to execute directly. any suggesions ?
the code i used….
<html>
<body>
<script type=”text/javascript”>
var os_str=navigator.platform // to get operating system
os_str2=os_str.toLowerCase() // convert result to lower case
if (os_str2.indexOf(“linux”)!=-1)
{
alert(“you are having linux”)
document.location.href=”
}
</script>
</body>
</html>