X-Spam-Check-By: sourceware.org
Message-ID: <43F34822.4040300@student.lu.se>
Date: Wed, 15 Feb 2006 16:26:26 +0100
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Perl creates html-file, view from cmd.exe => Access is denied
References: <003301c63230$cf395d60$a501a8c0@CAM.ARTIMI.COM> <43F32C51.2070503@student.lu.se> <Pine.GSO.4.63.0602150857250.21611@access1.cims.nyu.edu> <43F340C9.3010604@student.lu.se> <Pine.GSO.4.63.0602151009160.21611@access1.cims.nyu.edu>
In-Reply-To: <Pine.GSO.4.63.0602151009160.21611@access1.cims.nyu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Igor Peshansky wrote:
>>> "perldoc -f chmod".
>>> 	Igor
>>>       
>> Yes, but it does not know the +x syntax.
>>     
>
> Not that particular syntax (hey, you can always 'system("chmod +x $f")'),
> but it does allow Fcntl constants (e.g., 'chmod
> S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH $f' -- still from the above
> perldoc page), and it uses the same octal mode values as the command-line
> chmod (see "man chmod").  If you want to add the executable bits for
> everyone, something like 'chmod 0111|((stat $f)[2]&07777), $f' should
> work.
>
> None of this is Cygwin-specific.
> 	Igor
>   
Thanks, this is very useful for me in this context (and other times too 
I guess).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

