[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash cgi script dosent works from the browser
From: |
dan12341234 |
Subject: |
bash cgi script dosent works from the browser |
Date: |
Sat, 29 Oct 2011 13:30:54 -0700 (PDT) |
im writing a bash cgi on a new installed suse 11
Apache is working fine becouse when i click the ip on the internet browser i
get it It works!
i have these 3 questions:
1 when im trying to load the page http://server1/hello.cgi it doas not
opened, instead it is saved as a file.
cat hello.cgi
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html><head><title>Bash as CGI"
echo "</title></head><body>"
echo "<h1>Hello world</h1>"
echo "Today is $(date)"
echo "</body></html>"
2 html page opened as http://server1/mypage1.html only and not as
http://server1/mypage1 , is it possible to change it
3 is there a way to create STD output on the cgi web page like listbox or
textbox so command results will displayed there in a real time,
Commands like tail -f /var/log/apache/access_log
Thanks in advance and any suggestion is welcome and appreciated
Dan
--
View this message in context:
http://old.nabble.com/bash-cgi-script-dosent-works-from-the-browser-tp32745166p32745166.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
- bash cgi script dosent works from the browser,
dan12341234 <=