[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] perl permissions denied
- Subject: Re: [cobalt-users] perl permissions denied
- From: Michael <mike@xxxxxxxxxx>
- Date: Mon Aug 6 11:45:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
At 05:18 PM 08/06/01 +0200, you wrote:
>/home/sites/mysitenamegoeshere/web/testarea/environment_test.cgi
Needs to be in a cgi-bin directory I do believe. I could be wrong. Tests environment variables eh? Heres on that works on a raq4 just name it env.cgi (yes cgi will work, need not call it pl if you dont want)
#!/usr/bin/perl
###########
#ENV LIST CGI
###########
#
#To call this, use the http path without any query_string
print "Content-type: text/html\n\n";
print "<html><head><title>Environment Variable List / Test</title>\n";
print "</head><body><table border=3><tr><td>Variable Name</td><td>Current Value</td></tr>\n";
foreach $fieldname(keys %ENV){
print "<tr><td>$fieldname</td><td>$ENV{$fieldname}</td></tr>\n\n";
}
print "</table></body></html>\n";
exit;
##END OF FILE
################################################################
You can simply call this with http://www.mysite.com/cgi-bin/env.cgi (fake address)
Remember chmod 755 and upload as txt
Good example of the path to upload it to, on site3 on my machine it would be here:
/home/sites/site3/web/cgi-bin
Good luck!
Mike