All Questions
Tagged with cgi shell-script
3 questions
1
vote
1
answer
2k
views
Shell script equivalent to PHP $_POST
For example and learning purposes, I have a webpage that uses POST method to submit a text field. I have a server running script (bash) that I want to display what the "Query_string" is. I'm not ...
1
vote
1
answer
3k
views
How to ensure a bash script is executable via web without being in /cgi-bin directory?
My document root is
/0/
i do not have any cgi-bin directories.
this is my virtual host with apache:
Listen *:80
DirectoryIndex 1
<VirtualHost *:80>
DocumentRoot /0
ServerName domain.tld
...
3
votes
2
answers
6k
views
Unable to launch the requested CGI program: /www/cgi-bin/first.cgi: Text file busy
I'm trying to make a very simple shell script to run as a CGI on a uhttpd server running on an OpenWRT install.
The file is called /www/cgi-bin/first.cgi and looks like...
#!/bin/sh
echo "Content-...