Perl creates html-file, view from cmd.exe => Access is denied

Lennart Borgman lennart.borgman.073@student.lu.se
Wed Feb 15 16:16:00 GMT 2006


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/



More information about the Cygwin mailing list