[PLUG] How to execute a shell script from an html web page

Owais Lone loneowais at gmail.com
Thu Mar 11 22:09:48 IST 2010

On Thu, Mar 11, 2010 at 5:33 PM, Shreerang Patwardhan <
patwardhan.shreerang at gmail.com> wrote:

> Hey all,
>      I wish to execute a shell script from a simple html page. When I click
> on a submit button on the html page the script should execute. How do I do
> this? Any help is appriciated...
> Thanx,
> Regards,
> Shreerang Patwardhan.
> _______________________________________
> Pune GNU/Linux Users Group Mailing List

Most langs have something like a SYSTEM() function.

Like in python

import os

os.system(" sh ~path-to-your-script ")

that should do it.

Owais Lone
hello at owaislone.org

More information about the Plug-mail mailing list