Hi all,
I am new to CGI, but do know some shell-programming (unfortunately no perl yet). I created a simple script that uses wget to retrieve dynamic data as a static page. But for some reason the wget command is not executed. Here is a test-script:
#!/bin/sh
echo "Content-type: text/html"
echo
echo
echo "<html><head></head>"
echo "<body>"
echo "<pre>"
/usr/bin/wget /usr/bin/wget --help
echo "</pre>"
echo "</body></html>"
Strange thing is, the 'wget --help' command is executed, while the 'wget ' command is completely ignored (or so it seems). I tried lots of different wget commands, and also simple commands like 'ls' and 'who'. Everything I tried seems to be working, except wget-commands other than 'wget --help'
Any ideas will be appreciated!
Richard
I am new to CGI, but do know some shell-programming (unfortunately no perl yet). I created a simple script that uses wget to retrieve dynamic data as a static page. But for some reason the wget command is not executed. Here is a test-script:
#!/bin/sh
echo "Content-type: text/html"
echo
echo
echo "<html><head></head>"
echo "<body>"
echo "<pre>"
/usr/bin/wget /usr/bin/wget --help
echo "</pre>"
echo "</body></html>"
Strange thing is, the 'wget --help' command is executed, while the 'wget ' command is completely ignored (or so it seems). I tried lots of different wget commands, and also simple commands like 'ls' and 'who'. Everything I tried seems to be working, except wget-commands other than 'wget --help'
Any ideas will be appreciated!
Richard