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

Re: counter script and chmod 755

Thread Previous | Thread Next
From:
Jenda Krynicky
Date:
March 28, 2002 09:40
Subject:
Re: counter script and chmod 755
Message ID:
3CA3639F.31734.AC11193@localhost
From:           	Bill Bartok <wbartok@earthlink.net>
> 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 ...

Jenda

=========== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==========
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About