Running Shell Script from html webpage

I have a Nginx installed on Linux (Ubuntu or Centos) without any
scripting language such as PHP or Python (connected to the webserver).
Can I run Shell commands from a webpage (e.g. html)?

I mean is it possible to use nginx without script languages by shell
scripts?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,217975,217975#msg-217975

Hello, well you can use a web anti-framework, that will enable you to
use
shell power. You can also use a RC templata to place the code into the
html.
Here is a link to werc http://www.werc.org/

I’am doing this with Debian Squeeze & fcgiwrap installed. I’ve seen
fcgiwrap present in Ubuntu.

Example script (Must be executable)

#!/bin/sh

-- coding: utf-8 --

NAME="cpuinfo"
echo “Content-type:text/html\r\n”
echo “”
echo “$NAME”
echo ‘’
echo ‘’
echo ‘’
echo ‘’
echo “


date
echo “\nuname -a”
uname -a
echo “\ncpuinfo”
cat /proc/cpuinfo
echo “

Run it here http://newhost.qaq.me/cpuinfo.sh

Also using this as an include file, not restricted to only shell
scripts.

location ~ (.cgi|.py|.sh|.pl|.lua)$ {
gzip off;
root /var/www/$server_name;
autoindex on;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param DOCUMENT_ROOT /var/www/$server_name;
fastcgi_param SCRIPT_FILENAME /var/www/$server_name$fastcgi_script_name;
}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs