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 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Perl creates html-file, view from cmd.exe => Access is denied References: <003301c63230$cf395d60$a501a8c0 AT CAM DOT ARTIMI DOT COM> <43F32C51 DOT 2070503 AT student DOT lu DOT se> <43F340C9 DOT 3010604 AT student DOT lu DOT se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/