Re: Autarkic fortune/strfile usage possible?

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 10:18:59PM +0200, Hannu E K Nevalainen wrote: >you never pondered a tiny bit on _why_ I wrote the above, did you? Bingo. You hit the nail on the head. I barely give most of the things you write more than 30 seconds of consideration. And, oddly enough, I am still leading

How to install info files?

2004-05-06 Thread Peng Yu
When try "info gdb", I get an error message "info: dir: No such file or directory". GDB is installed on my machine. How I can install the info file? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: ht

Re: CRON problems

2004-05-06 Thread Andrew DeFaria
Brian Dessent wrote: Hank Statscewich wrote: Great suggestion. In /var/log/cron.log there were 17 lines of: /usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied So I just changed permission of the file to 777 and cron started up just fine. I rebooted and lo and behold cron i

Re: PCMCIA & Cygwin

2004-05-06 Thread Tomasz Rojek
> I'm a total newbie to Cygwin. I have been looking for information on PCMCIA > support in Cygwin & how-to, both in cygwin.com and the web but I have been > unsuccessful. Hi, I have no problems using CF Flash cards attached to PCMCIA port with CF adapter. The card is showed as /cygdrive/e/ - it g

Re: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Corinna Vinschen
On May 6 01:47, Hannu E K Nevalainen wrote: > > >Just a wild guess, but gethostbyname() is probably not reentrant and > > >can't be called from threads like that. > > > > Unless HOST is a numeric IP address, gethostbyname should be properly > > reentrant. The only time gethostbyname is not thread

Re: newline in patch command output

2004-05-06 Thread Corinna Vinschen
On May 5 06:50, Brian Dessent wrote: > Baurjan Ismagulov wrote: > > > > Hello, > > > > I wish to use diff and patch on files with CR/LF newlines. I've > > installed cygwin with DOS text file type. Diff produced a patch with > > CR/LF. When I try to apply this patch, the modified files contain on

Redirect IO in win32 GUI application to console

2004-05-06 Thread Arek Baranowski
Hi folks, I need a win32 GUI application with standard IO access to a console. I found at the web a solution (see source at end of this mail) which works fine with windows console (winXP) but crashes when used with the cygwin console. In detail it's the line . . . *stdout = *fp; . . .

Re: GPL violation ?

2004-05-06 Thread Corinna Vinschen
On May 5 18:32, Vince Hoffman wrote: > Checkpoint appear to be distributing cygwin1.dll (as well as gzip and > gtar) without any obvious sources available. if fact of the 3 GPL utils > its the only that doesnt have its own copying notice (they do at least > provide a copy of the GPL.) > I havent c

Re: GPL violation ?

2004-05-06 Thread Corinna Vinschen
On May 6 10:29, Corinna Vinschen wrote: > Thanks for the hint. I asked our layer to have a look. s/layer/lawyer Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info:

Re: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Reini Urban
Montana Rane schrieb: for the administrative user, under which cygwin was installed, echo $HOME returns /home/Administrator. This is not your problem. Please describe the problem in the message body and not only in the subject. I need to set up cygwin so it does not preface the path with /cygdri

RE: GPL violation ?

2004-05-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Corinna Vinschen > Sent: 06 May 2004 09:36 > > On May 6 10:29, Corinna Vinschen wrote: > > Thanks for the hint. I asked our layer to have a look. > > s/layer/lawyer > > Corinna That makes me think, if OSI had defined a seven-

RE: problems with cygwin

2004-05-06 Thread Reid Thompson
Try removing the -multiwindow parameter to XWin reid - > XOpenDisplay () returned and successfully opened the display. > > wmaker fatal error: it seems that there is already a window > manager running > > waiting for X server to shut down winClipboardProc - Call to select () > failed: - > 1.

ssh password

2004-05-06 Thread David Corbin
I'm very confused. When ssh to cygwin sshd, how does it try to match the password? Thanks David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: htt

Re: problems with cygwin

2004-05-06 Thread Ken Dibble
Tarun Sharma wrote: Hi I have just installed cygwin on my Win XP system. But when I try to start windowmaker then it justs says cant start x-server at 127.0.0.1:0.0 . I tried few more things but couldnt succeed. Ihe porblem I am thinking is related to some configuration. I also tried to run XWin.

1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Kevan Gelling
I'm having trouble setting variables using the 'read' command in bash. All of the following lines fail to set $var and return a blank line. - echo "text" | read var ; echo $var - cat file | read var ; echo $var - read var < file | echo $var I can get it work by explicitly declaring the fil

Re: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Reini Urban wrote: > Montana Rane schrieb: > > for the administrative user, under which cygwin was installed, echo $HOME > > returns /home/Administrator. > > This is not your problem. Please describe the problem in the message > body and not only in the subject. > > > I need to

Re: ssh password

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, David Corbin wrote: > I'm very confused. When ssh to cygwin sshd, how does it try to match the > password? It doesn't. It delegates to Windows. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTEC

Re: ssh password

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Igor Pechtchanski wrote: > On Thu, 6 May 2004, David Corbin wrote: > > > I'm very confused. When ssh to cygwin sshd, how does it try to match > > the password? > > It doesn't. It delegates to Windows. Upon re-reading the above, I realized that you didn't clarify which Window

Re: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Andy Rushton
Kevan Gelling wrote: I'm having trouble setting variables using the 'read' command in bash. All of the following lines fail to set $var and return a blank line. - echo "text" | read var ; echo $var - cat file | read var ; echo $var - read var < file | echo $var The problem is that the pipelin

RE: 'read' and pipes, was: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Jan Schormann
> Another related quirk, is that variables set within > 'while read' loops lose > their values once the loop ends. The following example > displays "text text" > within the loop and blank line outside. > - echo "text" |\ > while read > do > foo=$REPLY ; bar="text" > echo $foo

cont'd - RE: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Jan Schormann
(Please excuse the unfinished last mail, I hit "Ctrl-Enter" by accident.) > - echo "text" | read var ; echo $var > - cat file | read var ; echo $var > - read var < file | echo $var .. continuing from last time, all of these won't work because you're always creating a new subshell. Try r

Re: GPL violation ?

2004-05-06 Thread Christopher Faylor
On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote: >This comes up on here every now and then and if i didnt think it was a >possible issue i wouldnt have brought it up. Mind you IANAL so i could >have bought this up for nothing, thus passing the buck to to other >(hopefully) more knowl

Re: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Brian Ford
On Thu, 6 May 2004, Jacek Trzmiel wrote: > Nevertheless ThreadingTest.cpp posted here: > > http://cygwin.com/ml/cygwin/2004-05/msg00178.html > > still sometimes fails, even with 20040504 snapshot: > > > $ g++ ThreadingTest.cpp -lpthread -o ThreadingTest.exe && ./ThreadingTest.exe > > 238 [win]

Re: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Brian Dessent
Kevan Gelling wrote: > All of the following lines fail to set $var and return a blank line. > - echo "text" | read var ; echo $var > - cat file | read var ; echo $var > - read var < file | echo $var The other reply by Andy R is spot on, you can't modify the current environment from a subshe

Re: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 11:13:43AM -0500, Brian Ford wrote: >On Thu, 6 May 2004, Jacek Trzmiel wrote: > >> Nevertheless ThreadingTest.cpp posted here: >> >> http://cygwin.com/ml/cygwin/2004-05/msg00178.html >> >> still sometimes fails, even with 20040504 snapshot: >> >> > $ g++ ThreadingTest.cpp -l

ssh

2004-05-06 Thread Jimmy Hayes
Hi I setup ssh on cygwin and when files get dropped on ssh to windows it automatically assigns the rights to read for the everyone group. Is it possible to tweak this So that files coming from a certain user are only accessible from that user? Permissions on the parent folder are different so the p

RE: ssh

2004-05-06 Thread Clemson, Chris
> Hi I setup ssh on cygwin and when files get dropped on ssh to > windows it > automatically assigns the rights to read for the everyone group. Is it > possible to tweak this > So that files coming from a certain user are only accessible from that > user? Permissions on the parent folder are diffe

RE: GPL violation ?

2004-05-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Christopher Faylor > Sent: 06 May 2004 16:56 > On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote: > >This comes up on here every now and then and if i didnt > think it was a > >possible issue i wouldnt have brought it up.

Re: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Reini Urban
Igor Pechtchanski schrieb: On Thu, 6 May 2004, Reini Urban wrote: Montana Rane schrieb: for the administrative user, under which cygwin was installed, echo $HOME returns /home/Administrator. This is not your problem. Please describe the problem in the message body and not only in the subject. I ne

RE: GPL violation ?

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Dave Korn wrote: > > -Original Message- > > From: Christopher Faylor > > Sent: 06 May 2004 16:56 > > > On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote: > > >This comes up on here every now and then and if i didnt > > think it was a > > >possible issue i wo

Re: sshd, plink, bash and path problems

2004-05-06 Thread Tim Shadel
I'm not subscribed to the list. Kindly CC: me in any threads that result from this email. Thanks. Larry Hall wrote: Sorry, I don't use putty or plink (and actually since they aren't part ofthe Cygwin distribution, much discussion of them is off-topic for this list). Understood. I'll try rephr

RE: GPL violation ?

2004-05-06 Thread Robb, Sam
> You do get a T-shirt for filing the assignment, which is > intended to cover all of your subsequent contributions. Uh-oh, Igor... you let the cat out of the bag. The goodwill of the community is only worth so much, but a free T-shirt... now, that's *swag*. Now, excuse me, I've gotta go see ab

RE: GPL violation ?

2004-05-06 Thread Dave Korn
> -Original Message- > From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] > Sent: 06 May 2004 18:47 > You do get a T-shirt for filing the assignment, which is > intended to cover > all of your subsequent contributions. Ah, that explains it. Yep, a t-shirt is definitely a "material con

Re: sshd, plink, bash and path problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Tim Shadel wrote: > I'm not subscribed to the list. Kindly CC: me in any threads that > result from this email. Thanks. > > [snip] > What I found is this: > > (a) ssh localhost echo $PATH > > returned the correct cygwin path, but > > (b) ssh localhost 'echo $PATH' > > returne

Re: GPL violation ?

2004-05-06 Thread Yitzchak Scott-Thoennes
On Thu, May 06, 2004 at 01:50:39PM -0400, "Robb, Sam" <[EMAIL PROTECTED]> wrote: > > You do get a T-shirt for filing the assignment, which is > > intended to cover all of your subsequent contributions. > > Uh-oh, Igor... you let the cat out of the bag. The goodwill > of the community is only wor

Re: GPL violation ?

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 01:50:39PM -0400, Robb, Sam wrote: >>You do get a T-shirt for filing the assignment, which is intended to >>cover all of your subsequent contributions. > >Uh-oh, Igor... you let the cat out of the bag. The goodwill of the >community is only worth so much, but a free T-shir

RE: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Hannu E K Nevalainen
> From: Reini Urban > Sent: Thursday, May 06, 2004 7:41 PM > Igor Pechtchanski schrieb: > > Or 'mount -s c:/Documents\ and\ Settings/ /home', if you don't mind > > putting up with '/home/All Users', etc... > > Sure, mount is the method which is used more often. > And it is faster and easier. > Bu

RE: Autarkic fortune/strfile usage possible?

2004-05-06 Thread Hannu E K Nevalainen
> From: Christopher Faylor > Sent: Thursday, May 06, 2004 3:52 AM > On Wed, May 05, 2004 at 11:11:04PM +0200, Hannu E K Nevalainen wrote: > >> From: Brian Kelly > >> Sent: Wednesday, May 05, 2004 6:58 PM > > > I'd like to use on other machines as well - without Cygwin. Any > opinions? > >

RE: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Hannu E K Nevalainen
> From: Corinna Vinschen > Sent: Thursday, May 06, 2004 9:59 AM > On May 6 01:47, Hannu E K Nevalainen wrote: > > > >Just a wild guess, but gethostbyname() is probably not reentrant and > > > >can't be called from threads like that. > > > > > > Unless HOST is a numeric IP address, gethostbyname s

Re: how to build php in cygwin?

2004-05-06 Thread Andrew DeFaria
Joshua Daniel Franklin wrote: On Thu, 6 May 2004 14:37:29 +0800, kalmen <[EMAIL PROTECTED]> wrote: I am not familiar with compilation under cygwin , but i need the php for testing most of the LAMP application in cygwin , before deploy into the linux box , therefore i need to try to build the php

Re: sshd, plink, bash and path problems

2004-05-06 Thread Tim Shadel
Igor Pechtchanski wrote: Why not try it locally, like this: echo echo $PATH echo 'echo $PATH' echo "echo $PATH" and then sh -xc 'PATH=/blah;echo $PATH' sh -xc "PATH=/blah;echo $PATH" Aah. I forgot about the meanings of various quotes in bash. That's an excellent example. 2. Is there a file (.rc

Re: sshd, plink, bash and path problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Tim Shadel wrote: > Igor Pechtchanski wrote: > > [snip] > >>>2. Is there a file (.rc something-or-other perhaps?) that I can create > >>>that will make the "source /etc/profile" call once plink connects, so I > >>>can have the right path when happens? > > > >Well, you can tell

Re: newline in patch command output

2004-05-06 Thread Baurjan Ismagulov
Hello, Corinna. On Thu, May 06, 2004 at 10:08:53AM +0200, Corinna Vinschen wrote: > I'm not sure if it "must", but it's the solution which costs as few grief > as possible. I tried various combinations but in the end, writing all > output files in binary was the only one to stop patch to screw up

RE: CRON problems

2004-05-06 Thread Harig, Mark
Please run cron_diagnose.sh version 1.5. Numerous bugs have been found and fixed. This version can be found (as an attachment) on the mailing list at: http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html > -Original Message- > From: Hank Statscewich > Sent: Wednesday, May 05, 2004 8

RE: 1.5.9: cron hangs on 2003 server

2004-05-06 Thread Harig, Mark
Please run the cron_diagnose.sh script to see if it can identify any problems with your cron set up and related files. The latest version of this script can be found at: http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html Please read the output of this script carefully. You may need to ru

Re: permission problems (and more)

2004-05-06 Thread Larry Hall
At 01:08 AM 5/6/2004, you wrote: >--- "Larry Hall (RFK Partners, Inc)" wrote: >> From a comparison of your environment with mine, >> I see that you don't give specific permissions to > >Just when I thought I would get the answer, it >looks like you didn't pay your internet bill or >something (your

RE: CRON problems

2004-05-06 Thread Hank Statscewich
Mark, Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and it tells me that my cron is installed just fine, but even a simple "hello world" doesnt work. This is pretty wierd because if I do a ps -elf cron doesn't show up anywhere, here's the output: UID PIDPPI

RE: CRON problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Hank Statscewich wrote: > Mark, > > Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and > it tells me that my cron is installed just fine, but even a simple > "hello world" doesnt work. This is pretty wierd because if I do a ps > -elf cron doesn't show up

RE: CRON problems

2004-05-06 Thread Hank Statscewich
Igor, Great suggestion. In /var/log/cron.log there were 17 lines of: /usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied So I just changed permission of the file to 777 and cron started up just fine. I rebooted and lo and behold cron is still running. I'm changing permissio

Re: ssh password

2004-05-06 Thread David Corbin
On Thursday 06 May 2004 09:30, Igor Pechtchanski wrote: > On Thu, 6 May 2004, Igor Pechtchanski wrote: > > On Thu, 6 May 2004, David Corbin wrote: > > > I'm very confused. When ssh to cygwin sshd, how does it try to match > > > the password? > > > > It doesn't. It delegates to Windows. > > Upon r

Re: CRON problems

2004-05-06 Thread Brian Dessent
Hank Statscewich wrote: > Great suggestion. In /var/log/cron.log there were 17 lines of: > /usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied > > So I just changed permission of the file to 777 and cron started up just fine. > I rebooted and lo and behold cron is still runn

Re: ssh password

2004-05-06 Thread David Corbin
On Thursday 06 May 2004 20:49, David Corbin wrote: > On Thursday 06 May 2004 09:30, Igor Pechtchanski wrote: > > On Thu, 6 May 2004, Igor Pechtchanski wrote: > > > On Thu, 6 May 2004, David Corbin wrote: > > > > I'm very confused. When ssh to cygwin sshd, how does it try to match > > > > the passw

Re: problems with cygwin

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 07:53:45AM -0400, Reid Thompson wrote: >Try removing the -multiwindow parameter to XWin Please move this to the cygwin-xfree mailing list. >- >> XOpenDisplay () returned and successfully opened the display. >> >> wmaker fatal error: it seems that there is already a windo