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-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: Paths and Cygwin

2006-02-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Igor Peshansky on 2/9/2006 8:51 AM: > >>Input: ./mkdirhier.sh "/home/jgriffin/test/level1/level2" >& out.txt >>[snip] >>Here's the output: >>prefix: / >>mkdir: cannot create directory `//home': No such file or directory > > > None of th

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: How Can I Use the FtpCommand Function with Cygwin?

2006-02-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tischler, Ron on 2/14/2006 10:35 AM: > Thanks for your reply, but the makefiles that I'm using do use .lib > files, and things are following PC rather than unix conventions, and I > am already getting wininet.lib, because other stuff that

Re: Fwd: locale setting doesn't work with the default translation encoded in utf-8

2006-02-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Zhenghui Zhou on 2/13/2006 10:30 PM: > I use windows xp(sp2), and the language of none unicode program > setting is Simple Chinese. > > I found that the LC MESSAGES cann't be shown in right way under > console when setting the locale to z

Re: portability notes

2006-02-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to skaller on 2/14/2006 12:31 AM: > We have done some things in a possibly non-optimal way, > someone may wish to comment on a better way to do these things? > > CVS log entry for our systems says: > > * added WSAID_CONNECTEX and LPFN_CONNE

RE: How Can I Use the FtpCommand Function with Cygwin?

2006-02-15 Thread Dave Korn
On 15 February 2006 14:10, Eric Blake wrote: > According to Tischler, Ron on 2/14/2006 10:35 AM: >> Thanks for your reply, but the makefiles that I'm using do use .lib >> files, and things are following PC rather than unix conventions, > conventions and not Windows functions. If you want to use

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 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: Cygrunsrv vs. Windows Update

2006-02-15 Thread Eric Blake
Forwarding to list: http://cygwin.com/acronyms/#PPIOSPE -- Original message -- From: SIG - Pédagogie > Hello Eric, > > I saw your message on the Cygwin mailing-list regarding to the Windows > Update problem, somehow i'm glad there're other people having this, it

missing getaddrinfo

2006-02-15 Thread Eric Blake
Currently, cygwin does not provide getaddrinfo, even though SUSv3 specifies it in /. CVS Coreutils has been using gnulib to provide a replacement definition, but recently gnulib was updated to work on mingw, reusing the winsock headers/libraries to provide getaddrinfo. As a result, coreutils is n

Re: portability notes

2006-02-15 Thread skaller
On Wed, 2006-02-15 at 07:22 -0700, Eric Blake wrote: > > CVS log entry for our systems says: > > > > * added WSAID_CONNECTEX and LPFN_CONNECTEX definitions for ming > > (nocygwin) target > > There is no such thing as ming - it is mingw or mingw32. Furthermore, > cygwin only provides -mno-cygwi

chere suggestion

2006-02-15 Thread Cary Jamison
I was just wondering how you get programs added to the Windows Explorer 'Open with...' menu, and thought this might be a good addition to chere. I would like to add xemacs, gvim, notepad, etc., to this menu. I know, PTC and all that, but if someone out there knows how to do it, I'm sure they c

How can I detect cygwin windows closing

2006-02-15 Thread Wilfried Fauvel
Hi, I have made a console apps, and I would like to know if it's possible to detect when the user click on the 'X' of the term window ? I am catching SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be enough. Thanks. Accédez au courrier électronique de La Poste : www.laposte.net ;

Re: How can I detect cygwin windows closing

2006-02-15 Thread Igor Peshansky
On Wed, 15 Feb 2006, Wilfried Fauvel wrote: > Hi, > I have made a console apps, and I would like to know if it's possible to > detect when the user click on the 'X' of the term window? I am catching > SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be enough. SIGHUP. Igor P.

Re: How can I detect cygwin windows closing

2006-02-15 Thread Samuel Thibault
Hi, Wilfried Fauvel, le Wed 15 Feb 2006 18:18:49 +0100, a écrit : > I have made a console apps, and I would like to know if it's possible to > detect when the user click on the 'X' of the term window ? > I am catching SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be > enough. See

Re: How can I detect cygwin windows closing

2006-02-15 Thread Samuel Thibault
Igor Peshansky, le Wed 15 Feb 2006 12:21:42 -0500, a écrit : > P.S. AFAIK, SIGKILL cannot be caught. POSIX says so indeed. Regards, Samuel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwi

RE: portability notes

2006-02-15 Thread Dave Korn
On 15 February 2006 16:48, skaller wrote: > On Wed, 2006-02-15 at 07:22 -0700, Eric Blake wrote: >> There is no such thing as ming - it is mingw or mingw32. Furthermore, >> cygwin only provides -mno-cygwin as a convenience, but it is NOT SUPPORTED >> on this list. Ask the mingw list instead. >

RE: chere suggestion

2006-02-15 Thread Dave Korn
On 15 February 2006 17:05, Cary Jamison wrote: > I was just wondering how you get programs added to the Windows Explorer > 'Open with...' menu, and thought this might be a good addition to chere. I > would like to add xemacs, gvim, notepad, etc., to this menu. This is nothing to do with cygwin

Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Xavier Marichal
Hi! To make a long story short, I want to re-build make-3.80 for mingw/msys usage because I encounter some problems with the mingw distribution... After downloading the sources fro gnu, I launched ./configure. Then, in-line with the recommendations of http://www.delorie.com/howto/cygwin/mno-c

RE: Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Dave Korn
On 15 February 2006 18:42, Xavier Marichal wrote: > Hi! > > To make a long story short, I want to re-build make-3.80 for mingw/msys > usage because I encounter some problems with the mingw distribution... WTF does the mingw version of make have to with cygwin? > After downloading the sources

cygwin 1.5.19: intel core duo stack copy_write function failed

2006-02-15 Thread 晓光 孙
Hi All, I got a intel core duo 1.66 laptop with 2GB memory. I installed cygwin, and tried to compile firefox using msvc. but I got error message which was something about stack and the only remember it has copy_write function name inside. I tried to reinstall it couple times, but it still didn't w

Re: missing getaddrinfo

2006-02-15 Thread Christopher Faylor
On Wed, Feb 15, 2006 at 04:40:21PM +, Eric Blake wrote: >Currently, cygwin does not provide getaddrinfo, even though >SUSv3 specifies it in /. CVS Coreutils >has been using gnulib to provide a replacement definition, >but recently gnulib was updated to work on mingw, reusing >the winsock heade

RE: Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Dave Korn
On 15 February 2006 19:08, Xavier Marichal wrote: > Basically, I want to compile make using Cygwin, but in a way that is > independent from Cygwin (hence the -mno-cygwin). I'm sorry if I > offended someone... It's not an offence, but the thing is that if you use -mno-cygwin, you aren't using cy

Re: Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Martin
--- Xavier Marichal <[EMAIL PROTECTED]> wrote: > Hi! > > To make a long story short, I want to re-build make-3.80 for > mingw/msys > usage because I encounter some problems with the mingw > distribution... > > After downloading the sources fro gnu, I launched ./configure. > Then, in-line with t

Re: Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Xavier Marichal
OK, thanks. I was not aware that -mno-cygwin was causing MinGW to be used instead of Cygwin... I'll get back to MinGW there, although I did not get much help there previsously (which is why I was trying to move to using Cygwin). Many thanks for the explanation I'll make one last try with the co

RE: Pbm with ar.h when compiling make-3.80 for mingw

2006-02-15 Thread Dave Korn
On 15 February 2006 19:43, Martin wrote: > Am I missing something? Yes, you're missing the point, which is that all this stuff has nothing to do with cygwin. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-sim

Problem with Tcl/tk release 20060202-1

2006-02-15 Thread Dave Meyer
I encountered the problem described in the "Exec and parent environment" email thread concerning the passing of environmental variables in tcl shells. I downloaded the experimental tcl/tk library version 20060202-1 (per http://sourceware.org/ml/cygwin/2006-02/msg00090.html) as evident by the times

Re: chere suggestion

2006-02-15 Thread Dave
Dave Korn wrote: On 15 February 2006 17:05, Cary Jamison wrote: I was just wondering how you get programs added to the Windows Explorer 'Open with...' menu, and thought this might be a good addition to chere. I would like to add xemacs, gvim, notepad, etc., to this menu. This is nothing

Re: Problem with Tcl/tk release 20060202-1

2006-02-15 Thread Christopher Faylor
On Wed, Feb 15, 2006 at 12:53:11PM -0700, Dave Meyer wrote: >If there is any information needed from me to further understand this issue, >please let me know. Thanks. The information requested by http://cygwin.com/problems.html would be your first step in reporting a problem like this. cgf -- U

Re: Problem with Tcl/tk release 20060202-1

2006-02-15 Thread Eric Blake
> My questions are > - Has anyone else experienced this? > - Should I have downloaded more than just the TCL/TK library experimental > release? Yes. Reread: http://cygwin.com/ml/cygwin/2006-02/msg00090.html You need a snapshot: http://cygwin.com/faq/faq-nochunks.html#faq.setup.snapshots -- Eri

mod_perl 2.0.2 + Apache 2.0.55 on Cygwin Win2k3

2006-02-15 Thread Jason J. Czerak
I have an application that is based on Apache::ASP. Apache::ASP requires Apache2::porting and Apache2::compat to be in the startup.pl. Everything is working very well. I some how got mod_perl to build and running with out a segfault. This is good. The issue is when startup.pl is called, either fro

Re: chere suggestion

2006-02-15 Thread Cary Jamison
Dave wrote: > Dave Korn wrote: >> On 15 February 2006 17:05, Cary Jamison wrote: >> >> >>> I was just wondering how you get programs added to the Windows >>> Explorer 'Open with...' menu, and thought this might be a good >>> addition to chere. I would like to add xemacs, gvim, notepad, >>> etc., t

Re: cygheap base mismatch detected

2006-02-15 Thread Jens Dill
Dave Korn artimi.com> writes: > > Original Message > >From: Andreas Heckel > >Sent: 07 April 2005 11:13 > > > Since I read that the error has something do with putting the cygwin1.dll > > in a certain memory space, I am wondering, if my prog is allocating too > > much memory (big array

Re: cygheap base mismatch detected

2006-02-15 Thread Christopher Faylor
On Wed, Feb 15, 2006 at 10:22:30PM +, Jens Dill wrote: >What you write makes it appear that CygWin simply will not support >large executables that reference the CygWin DLL and are also launched >from a CygWin shell. I can't believe that nobody has found a better >workaround than: > > (a) not

Re: chere suggestion

2006-02-15 Thread Igor Peshansky
On Wed, 15 Feb 2006, Cary Jamison wrote: > Dave wrote: > > Dave Korn wrote: > >> On 15 February 2006 17:05, Cary Jamison wrote: > >> > >>> I was just wondering how you get programs added to the Windows > >>> Explorer 'Open with...' menu, and thought this might be a good > >>> addition to chere. I

Permissions problem - odd setup

2006-02-15 Thread Andrew DeFaria
I have a somewhat odd setup here and am having a permissions problem with my userid and authentication. In general I'm trying to have one home directory that is shared between Windows and Linux. On Windows I use Cygwin. Normally this involves mounting my Windows oriented home directory and pro

Q: nfsd: Unable to seteuid(-2)

2006-02-15 Thread Claudius Schnörr
Hello, I just started nfsd and get this error when auto-mounting some filesystem from the server: nfsd[1524] 02/16/106 00:52 auth_clnt.c 352 : Unable to seteuid(-2): Invalid argument The config files on the client (clswork): /etc/exports: /dokus/Claudius clswork(rw,map_static=/etc/nfs/

Re: chere suggestion

2006-02-15 Thread Cary Jamison
Igor Peshansky wrote: >FWIW, I use the "Send To" menu with the following shortcut for vi: > >C:\cygwin\bin\run.exe /bin/rxvt.exe -display :0 -T vim -vb -sr -j -fn >00 -bg black -cr white -fg LightSteelBlue1 >"-b&h-lucidatypewriter-medium-r-normal-sans-0-0-14-14-m-0-iso88 >59-2" -e /usr/bin/vim > >

Solaris 'getcwd' fails for Cygwin NFS

2006-02-15 Thread Sashi Lazar
Hello, I am using the Cygwin NFS server (2.3-4) on a Windows XP box to export a directory (tree). My Solaris 2.8 box successfully mounts this path, but 'getcwd(3C)' returns an errno (Invalid argument). Other commands, such as make executed in the mounted path also fail. Has anyone else seen

Re: missing getaddrinfo

2006-02-15 Thread Yaakov S (Cygwin Ports)
Eric Blake wrote: Currently, cygwin does not provide getaddrinfo, even though SUSv3 specifies it in /. CVS Coreutils has been using gnulib to provide a replacement definition, but recently gnulib was updated to work on mingw, reusing the winsock headers/libraries to provide getaddrinfo. As a re

Re: _kbhit

2006-02-15 Thread Arend-Jan Westhoff
At 18:58 2006-02-10 -0500, Michiel de Hoon wrote: >> On Sun, Feb 05, 2006 at 01:17:33PM -0500, Michiel De Hoon wrote: >> >For one of my software projects, I need the _kbhit function to check the >> >console for keyboard input. While this function is present in msvcrt.dll, >it >> >is missing from cy

RE: portability notes

2006-02-15 Thread skaller
On Wed, 2006-02-15 at 17:41 +, Dave Korn wrote: > On 15 February 2006 16:48, skaller wrote: [] > Why are you asking this on the Cygwin list? Because I expect it is subscribed to by people who are dealing with portability issues on a regular basis, especially those who are using Cygwin as a d

cygwin scp -r fails

2006-02-15 Thread Greg Tokarski
Hi. I just installed the latest cygwin on my winXP laptop, and I am having an issue using scp -r. I have tried it to multiple Linux and Solaris boxes, so I am quite sure it's not on the receiving server side. I am not sure if this is a bug or my problem; here's what I do: scp -rv 2006* [EMAIL

RE: _kbhit

2006-02-15 Thread Gary R. Van Sickle
> > I cannot confirm your assertion that msvcrt.dll and > cygwin1.dll cannot be used together. If I compile the > attached (almost C) file that dynamically links to msvcrt.dll > using Cygwin: > gcc -o kbhit.exe kbhit.cpp > it compiles, links and works (on CMD and bash on CMD but not > on

Re: cygheap base mismatch detected

2006-02-15 Thread Dill, Jens (END-CHI)
Christopher Faylor wrote: > On Wed, Feb 15, 2006 at 10:22:30PM +, Jens Dill wrote: > >What you write makes it appear that CygWin simply will not support > >large executables that reference the CygWin DLL and are also launched > >from a CygWin shell. I can't believe that nobody has found a bett