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

2006-02-19 Thread Lennart Borgman
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 o

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

2006-02-15 Thread Lennart Borgman
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 ab

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

2006-02-15 Thread Igor Peshansky
. Redirected to the list. On Wed, 15 Feb 2006, Lennart Borgman wrote: > Igor Peshansky wrote: > > > Thanks Dave, but what would "chmod +x" be in perl? Is there an easy > > > way to do it? (Hope this is not too much OT, it is clearly useful > > > here.) > > >

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

2006-02-15 Thread Igor Peshansky
On Wed, 15 Feb 2006, Lennart Borgman wrote: > Dave Korn wrote: > > Or you can chmod +x it. That's longer lasting! ;-) For Dave: "achieve the same effect"..."no matter what the permissions are" -- you can't, for example, launch a .html file from a bash shell at all. "cygstart" will always work.

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

2006-02-15 Thread Lennart Borgman
Dave Korn wrote: Or you can chmod +x it. That's longer lasting! ;-) Plus it could even be done as part of the perl script, and then the problem would just /never/ arise again and wouldn't need to remember to use 'start' or 'cygstart' to launch it. Thanks Dave, but what would "chmod +x" b

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

2006-02-15 Thread Dave Korn
On 14 February 2006 23:12, Igor Peshansky wrote: > On Tue, 14 Feb 2006, Lennart Borgman wrote: > >> I use cygwin perl to create some html files from cygwin sh. When I then >> later from cmd.exe (or cygwin sh) try to open one of these files from the >> command line with >> >>temp.html >> >>

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

2006-02-14 Thread Lennart Borgman
Igor Peshansky wrote: On Tue, 14 Feb 2006, Lennart Borgman wrote: I use cygwin perl to create some html files from cygwin sh. When I then later from cmd.exe (or cygwin sh) try to open one of these files from the command line with temp.html I get the error "Access denied". This does not

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

2006-02-14 Thread Igor Peshansky
On Tue, 14 Feb 2006, Lennart Borgman wrote: > I use cygwin perl to create some html files from cygwin sh. When I then > later from cmd.exe (or cygwin sh) try to open one of these files from > the command line with > >temp.html > > I get the error "Access denied". This does not happen if I use

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

2006-02-14 Thread Lennart Borgman
I use cygwin perl to create some html files from cygwin sh. When I then later from cmd.exe (or cygwin sh) try to open one of these files from the command line with temp.html I get the error "Access denied". This does not happen if I use the same trivial script from cmd.exe using ActiveStat