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.

http://server_a:port/hello.sh

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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -