WaltSteadman
MIS
Greetings all,
I have a Perl script that worked a couple weeks ago. I have a web form that calls the script and it is suppose to open a file and then input some text, close the file and then email the file. If I run it from my browser it creates the files but they are empty. If I run it from the command line it creates the file properly and emails them out correctly. I am thinking it is a permission issue, but the file .cgi file resides in the cgi directory. When I look at the files that are created but empty, they are created by user apache. When I do it from command line, they are created by user root. I heard from somewhere that I could set an environment variable or something, but have done searches and can't find anything. Are there any environment varibles or permissions that could stop the web browser from being allowed to execute a script. If needed I can post the html and script information.
Thanks in Advance
I have a Perl script that worked a couple weeks ago. I have a web form that calls the script and it is suppose to open a file and then input some text, close the file and then email the file. If I run it from my browser it creates the files but they are empty. If I run it from the command line it creates the file properly and emails them out correctly. I am thinking it is a permission issue, but the file .cgi file resides in the cgi directory. When I look at the files that are created but empty, they are created by user apache. When I do it from command line, they are created by user root. I heard from somewhere that I could set an environment variable or something, but have done searches and can't find anything. Are there any environment varibles or permissions that could stop the web browser from being allowed to execute a script. If needed I can post the html and script information.
Thanks in Advance