develooper Front page | perl.beginners | Postings from March 2002

Re: counter script and chmod 755

Thread Previous | Thread Next
Jenda Krynicky
March 28, 2002 09:40
Re: counter script and chmod 755
Message ID:
From:           	Bill Bartok <>
> I am putting a counter on a website for the first time. I undstand that
> because the server is Unix that I will need to se permission for the
> counter.
> I believe this can be done within the Perl script using the line:
> chmod (0755, "counter.cgi");
> right within the counter.cgi script itself.

No. It's too late. The permissions ahve to be set before you try to 
execute the script. How to do that depends on your access to the 
server. If you have a telnet access (or SSH or whatever, simply 
something where you can enter commands) you can use

	chmod 0755 counter.cgi

on the prompt (command line).

Or you can have a script that does this for you. Or ...


=========== == ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
					--- me

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About