execution - Execute a bash script in remote server through URL -
i have bash script "hello.sh" below in remote server "a" running apache.
#! /bin/bash echo "hello world" > hello.txt
i want execute script in remote server "a" calling it's apache url server "b" below.
please note have made script available through url keeping in document root of apache.
how can accomplished. thanks.
to able run shell scripts directly browser, should add rule .htaccess file.
options execcgi addhandler cgi-script .sh
this tells webserver treat .sh files cgi scripts.
Comments
Post a Comment