Anyone have any experience running shell scripts (csh) on a web server? The object being to get anyone to use a simple HTML form to input data to the script, then have the script return its output as a web page.
It works except for the web server launching the script in a very restricted environment. I don't understand how to get the server to run the script with a proper PATH environment.
Lighttpd server on Ubuntu 9.10. No, I haven't gotten a lot of help on the lighttpd forums.
It's not a question of user rights, I've managed to get the script to have the rights to write output files to its current directory. It's just that without a $PATH, things like head or tail don't work because they'd need to be called like this /usr/bin/head
TIA