This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Igor Peshansky wrote:
Cygwin-created files are not executable unless they are explicitly created
with executable permissions on.  Perl doesn't do that, so you get a
non-executable HTML file (and can't run this from CMD).  ActiveState perl
lets Windows pick the file ACLs, which are usually based on directory
inheritance.  To simulate this in Cygwin, use "CYGWIN=nontsec perl
myscript.pl".

That said, you can also achieve the same effect (i.e., launching the
appropriate command for the file) by prepending "start" in cmd.exe or
"cygstart" in a Cygwin shell, no matter what the permissions are (i.e.,
use "start temp.html" or "cygstart temp.html").
HTH,
Igor
Just for the record: "start" in cmd.exe did not help.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]