For a tiny task, I wish to execute a .sh script from within browser.
I have kept the .sh script in "/usr/lib/cgi-bin" directory.
The .sh file contains following code.
#!/bin/bash echo "Content-type: text/html" echo python ohlc.py
html code (minimal) is as follows.
<html> <body> <a href="file:///usr/lib/cgi-bin/ohlc_bat.sh">Run</a> </body> </html>
After clicking the link, it opens a download dialog-box.
How do I make the .sh script run?
p.s. I have tried renaming the .sh file as .cgi , no luck.