Re: bash command in cygwin

2007-03-08 Thread Vaclav Haisman
ovince wrote: Hi, I managed to do everything in Cygwin that I was doing in Unix. This is the first thing that does not want to work. It is a simple bash command for file in 'cat listBox1.txt'; do awk '{print $0}'; done I doubt this works anywhere. You are using simple apostrophes instead of `b

bash command in cygwin

2007-03-08 Thread ovince
Hi, I managed to do everything in Cygwin that I was doing in Unix. This is the first thing that does not want to work. It is a simple bash command for file in 'cat listBox1.txt'; do awk '{print $0}'; done Could you tell me what I do wrong here? Thanks oliver -- View this message in conte

copy-paste

2007-03-08 Thread ovince
hi All Is it posible to adjust Copy and Paste in Cygwin to Ctrl-c and Ctrl-v? I do it in very unrobust way now (right-click, properties, mark; right-click, properties, copy; right-click, properties, paste). It is very unpleasent. thank you oliver -- View this message in context: http://ww

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread Pranav Peshwe
(kindly find the replies inline) On 3/9/07, fergus <[EMAIL PROTECTED]> wrote: >> Also, i could not find the setup.ini file ? >> is it a requirement for setup.exe to run ? I don't really know why you didn't get setup.ini along with setup.exe and release/ when you ran wget. It should be colocat

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread fergus
>> Also, i could not find the setup.ini file ? >> is it a requirement for setup.exe to run ? I don't really know why you didn't get setup.ini along with setup.exe and release/ when you ran wget. It should be colocated with the file setup.exe and the directory release/. It is not a requirement

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread Pranav Peshwe
On 3/9/07, fergus <[EMAIL PROTECTED]> wrote: There's some kind of characteristic of Windows architecture which means that if you are trying to install Cygwin from a release stored on a local drive (or CD or as in your case a USB device) then the attempt will fail if setup.exe and setup.ini are lo

Re: sshd + bash = crush on CRs

2007-03-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eramo, Mark on 3/8/2007 2:41 PM: > >> Reread the release announcement. SHELLOPTS auto-tracks >> shell option settings, so you can do this in your .bash_profile: > >> export SHELLOPTS >> set -o igncr > > After adding this to my .bash_pr

Re: a better socketpair

2007-03-08 Thread alex
I found something about pipes in the rel notes for 1.5.20-1 at http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html looks like they work. I found a brief mention of socketpair at http://cygwin.com/cygwin-api/std-misc.html#AEN107 and more here about sockets and select http://cygwin.com/cy

Re: a better socketpair

2007-03-08 Thread Nathan Myers
Hi Christopher, Thank you for your quick reply. I understand that this code might not ultimately be useful to cygwin. It continues to work in my project, so I'm not put out. I wonder, though, do you know if it might be useful to Mingw? I.e., might it be worth offering to them, or do you kno

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Norton Allen
Brian Dessent wrote: What kind of backwater system is this that doesn't have support for SSH v2? Version 2 has been the default for many, many years, and version 1 is very deprecated/insecure/etc. Normally you shouldn't even have to specify the version, as the client should negotiate it with t

Re: a better socketpair

2007-03-08 Thread Christopher Faylor
On Thu, Mar 08, 2007 at 04:20:47PM -0800, Nathan Myers wrote: >Hi Christopher, > >Thank you for your quick reply. I understand that this code might >not ultimately be useful to cygwin. It continues to work in my >project, so I'm not put out. > >I wonder, though, do you know if it might be use

Re: a better socketpair

2007-03-08 Thread Christopher Faylor
On Thu, Mar 08, 2007 at 02:39:50PM -0800, Nathan Myers wrote: >Hi all, > >I did my first bit of coding on win32 last month, and was disgusted >to find no socketpair. Cygwin's socketpair (at least the version I >found) seems to use _pipe underneath, which as I understand it is not >suitable as an a

a better socketpair

2007-03-08 Thread Nathan Myers
Hi all, I did my first bit of coding on win32 last month, and was disgusted to find no socketpair. Cygwin's socketpair (at least the version I found) seems to use _pipe underneath, which as I understand it is not suitable as an argument to select(). So, I wrote my own: http://cantrip.org/sock

Re: how do you create an usable path variable with a space in it?

2007-03-08 Thread Jerome Fong
Thanks Brian, It works now. I thought I went through that, but apparently I didn't it wrong. thanks, Jerome Brian Dessent wrote: Jerome Fong wrote: export JAVA_HOME='/cygdrive/c/Program\ Files/Java/jdk1.5.0_10' This is wrong. Either backslash-escape the space or use quotes, but not bo

Re: sshd + bash = crush on CRs

2007-03-08 Thread Christopher Faylor
On Thu, Mar 08, 2007 at 04:41:34PM -0500, Eramo, Mark wrote: >After adding this to my .bash_profile and starting Cygwin, I get the >following message > >bash: igncr: invalid option name >bash: set: igncr: invalid option name > >So it does not see this as a valid option. Am I missing something? Ye

[ANNOUNCEMENT] Updated: clamav-0.90.1-2

2007-03-08 Thread Reini Urban
The cygwin clamav packages (Clam AntiVirus - GPL anti-virus toolkit) has been updated to 0.90.1-2. -2 fixed a missing /usr/sbin/clamd from -1. 0.90.1 features a minor number, but a major dll change. We switched now to libclamav2. Devel users: The API changed a lot with 0.90 About: Clam AntiVirus

RE: sshd + bash = crush on CRs

2007-03-08 Thread Eramo, Mark
> > I meant not my .bashrc and .bash_profile are readonly, but when I put > into them the line like this: > SHELLOPTS='igncr' > after logging in bash says to me that SHELLOPTS is readonly variable and > cannot be set. >Reread the release announcement. SHELLOPTS auto-tracks >shell option settings

Re: how do you create an usable path variable with a space in it?

2007-03-08 Thread Brian Dessent
Jerome Fong wrote: > export JAVA_HOME='/cygdrive/c/Program\ Files/Java/jdk1.5.0_10' This is wrong. Either backslash-escape the space or use quotes, but not both. You are embedding an actual backslash in the value, which is not what you want. The purpose of the backslash is not to exist in the

how do you create an usable path variable with a space in it?

2007-03-08 Thread Jerome Fong
I've been trying to create a variable for my Java home (/cygdrive/c/Program\ Files/Java/jdk1.5.0_10). However, no matter how I seem to create it, I am not able to use it. I read some threads that suggest creating a symlink without the space in the path name, but is that my only option? What

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Angelo Graziosi
Brian Dessent wrote: > What kind of backwater system is this that doesn't have support for SSH > v2? Version 2 has been the default for many, many years, and version 1 > is very deprecated/insecure/etc. Normally you shouldn't even have to > specify the version, as the client should negotiate it

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread fergus
There's some kind of characteristic of Windows architecture which means that if you are trying to install Cygwin from a release stored on a local drive (or CD or as in your case a USB device) then the attempt will fail if setup.exe and setup.ini are located at H:/ and release/ is located at H:/

RE: GDB problem (under cygwin)

2007-03-08 Thread Dave Korn
On 08 March 2007 18:50, Raymond Miller wrote: > omg, I would never have imagined that that were the problem. You're not the only one, there is really no need at all for a webcam software to inject itself into every process in the system! It is a *very* peculiar piece of design and a very bad c

Still having problems with cron writing to a restricted directory

2007-03-08 Thread Jerome Fong
Hi there, Sorry, but I am totally confused now. I have a script that creates a new sub-directory and copies files over to the new sub-directory. My problem is, the directory where this sub-directory is supposed to be created is restricted. Only I have have write permissions to the director

Re: GDB problem (under cygwin)

2007-03-08 Thread Raymond Miller
omg, I would never have imagined that that were the problem. I thanks you very much, I was crazy already. Not it works. Thanks! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread Pranav Peshwe
On 3/8/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote: Pranav Peshwe wrote: > Hello, > I'm trying to install cygwin(using the version of setup.exe > on cygwin homepage) on my Intel P4(Prescott) with Windows XP SP2 and > 256+512 MB RAM. > I've wgetted the entire cygwin release

RE: GDB problem (under cygwin)

2007-03-08 Thread Dave Korn
On 08 March 2007 18:12, Raymond Miller wrote: > Yes, I have installed in this pc (laptop) the Logitech webcam software and > this is not installed in the desktop pc (I don't have any webcam on that > pc), but could be it the cause of the segmentation fault? Yes! Disable "Logitech process moni

Re: GDB problem (under cygwin)

2007-03-08 Thread Matthew Woehlke
Raymond Miller wrote: Yes, I have installed in this pc (laptop) the Logitech webcam software and this is not installed in the desktop pc (I don't have any webcam on that pc), but could be it the cause of the segmentation fault? I wouldn't discount it until you've uninstalled it and reproduced

Re: GDB problem (under cygwin)

2007-03-08 Thread Raymond Miller
int main () { printf("hello"); return 0; } Ok, I compiled the code.c with the cygwin gcc C:\Documents and Settings\Rafa\Desktop>gcc code.c -g -o program.exe I ran the cygwin gdb C:\Documents and Settings\Rafa\Desktop>gdb program.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 200

RE: GDB problem (under cygwin)

2007-03-08 Thread Dave Korn
On 08 March 2007 17:33, Raymond Miller wrote: > No, I don't think that my program has a bug. > Ok, this is the code of my program (C): > > #include > > int main () > { > printf("hello"); > return 0; > } Ok, just to be certain I checked it myself, (I have the same gcc/gdb versions), and it wo

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Corinna Vinschen
On Mar 8 09:42, Brian Dessent wrote: > Angelo Graziosi wrote: > > > > I suggest to take the opportunity to switch to protocol 2 which is > > > the better and safer protocol anyway. > > > > I have tried, but : > > > > $ ssh -2 [EMAIL PROTECTED] > > Protocol major versions differ: 2 vs. 1 > > >

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Brian Dessent
Angelo Graziosi wrote: > > I suggest to take the opportunity to switch to protocol 2 which is > > the better and safer protocol anyway. > > I have tried, but : > > $ ssh -2 [EMAIL PROTECTED] > Protocol major versions differ: 2 vs. 1 > > (openssh-4.5p1-1 with -2 gives the some result) What kind

Re: GDB problem (under cygwin)

2007-03-08 Thread Brian Dessent
Raymond Miller wrote: > No, I don't think that my program has a bug. > Ok, this is the code of my program (C): > > #include > > int main () > { > printf("hello"); > return 0; > } > > Another code with the same problem (Segmentation fault) > > int main () > { > return 0; > } > > And I could f

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Angelo Graziosi
Corinna Vinschen wrote: > I suggest to take the opportunity to switch to protocol 2 which is > the better and safer protocol anyway. I have tried, but : $ ssh -2 [EMAIL PROTECTED] Protocol major versions differ: 2 vs. 1 (openssh-4.5p1-1 with -2 gives the some result) While $ ssh [EMAIL PROT

Re: GDB problem (under cygwin)

2007-03-08 Thread Raymond Miller
No, I don't think that my program has a bug. Ok, this is the code of my program (C): #include int main () { printf("hello"); return 0; } Another code with the same problem (Segmentation fault) int main () { return 0; } And I could follow writting codes because all have the same problem. >

RE: GDB problem (under cygwin)

2007-03-08 Thread Dave Korn
On 08 March 2007 14:43, Raymond Miller wrote: > Finally I found what is the problem. No, I don't think you have. You haven't even clearly identified a problem. You say that the problem is that gdb reports a SIGSEGV in thread 2 when you compiled with cygwin gcc, but for all anyone knows tha

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Corinna Vinschen
On Mar 8 16:36, Angelo Graziosi wrote: > > I have always used ssh in this way: > > $ ssh -1 [EMAIL PROTECTED] > > but after updating to this version: > > > $ ssh -1 [EMAIL PROTECTED] > Disconnecting: Corrupted check bytes on input. This looks like an upstream bug. Connecting with protocol v

Re: [ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1: Problems!

2007-03-08 Thread Angelo Graziosi
I have always used ssh in this way: $ ssh -1 [EMAIL PROTECTED] but after updating to this version: $ ssh -1 [EMAIL PROTECTED] Disconnecting: Corrupted check bytes on input. I have tried more than one host with the same result. I have also deleted ~/.ssh so that it is regenerated but same re

Re: Making sftp and ssh work on cygwin

2007-03-08 Thread Marielle Fois
Larry Hall (Cygwin) wrote: '/usr/bin' is a mount to 'c:\bin'. I suppose you mean a mount to the bin directory under the cygwin root directory, in my case c:\Cygwin\bin. Given this case, and that the directory in the PATH, does it make any sense the library cygcrypto-0.9.8.dll is not found? T

Re: GDB problem (under cygwin)

2007-03-08 Thread Raymond Miller
Finally I found what is the problem. The problem wasn't the Eclipse IDE because I couldn't debug either with the gdb.exe ( in command-line) and in addition I installed Cygwin and Eclipse IDE in the desktop PC (AMD 64 3400+ with Windows XP Home and Ubuntu) and I could compile and debug without an

Re: How to use make with a makefile Win32 (cygwin32.mak)

2007-03-08 Thread Tim Prince
[EMAIL PROTECTED] wrote: Hi! I'm trying to use the file cygwin32.mak in order to execute the make with a makefile win32 to generate an exe file. I obtain the next error $ make c codes\compile_concept.c /Foobj\compile_concept.obj make: c: Command not found make: [obj\compile_concept.obj] Error

How to use make with a makefile Win32 (cygwin32.mak)

2007-03-08 Thread Patricia Domínguez
Hi! I'm trying to use the file cygwin32.mak in order to execute the make with a makefile win32 to generate an exe file. I obtain the next error $ make c codes\compile_concept.c /Foobj\compile_concept.obj make: c: Command not found make: [obj\compile_concept.obj] Error 127 (ignored) /bin/sh: out

Re: setup.exe crashes on WinXP SP2

2007-03-08 Thread Larry Hall (Cygwin)
Pranav Peshwe wrote: Hello, I'm trying to install cygwin(using the version of setup.exe on cygwin homepage) on my Intel P4(Prescott) with Windows XP SP2 and 256+512 MB RAM. I've wgetted the entire cygwin release from mirrors.kernel.org and stored it on my (USB) hdd.When i select

Re: Making sftp and ssh work on cygwin

2007-03-08 Thread Larry Hall (Cygwin)
On 03/08/2007, Marielle Fois wrote: where /usr/bin is listed. Does this make sense? '/usr/bin' is a mount to 'c:\bin'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508)

Re: ssh-host-config on w2k

2007-03-08 Thread Larry Hall (Cygwin)
Yohann Rebattu wrote: hello i'm trying to run sshd as service on w2k but, when i'm running ssh-host-config, sshd doesn't ask me if i want to run sshd as a service as it does when i install it on a w2k3 server. so after that i get the fallowing error runing cygrunsrv -S sshd cygrunsrv: Error st

[ANNOUNCEMENT] Updated: OpenSSH-4.6p1-1

2007-03-08 Thread Corinna Vinschen
I've just updated the version of OpenSSH to 4.6p1-1. This is a new major upstream release. The Cygwin release is created from the vanilla sources. The only Cygwin-specific change in this version is, that the default mode for writing files has been switched from textmode to binmode. This fixes a

setup.exe crashes on WinXP SP2

2007-03-08 Thread Pranav Peshwe
Hello, I'm trying to install cygwin(using the version of setup.exe on cygwin homepage) on my Intel P4(Prescott) with Windows XP SP2 and 256+512 MB RAM. I've wgetted the entire cygwin release from mirrors.kernel.org and stored it on my (USB) hdd.When i select 'install from local di

About the SUNRPC in Cygwin

2007-03-08 Thread YUE Zhongli
Hi Guys: I am new comer. I want to ask where can I find a simple sample of how to implement SUNRPC in cygwin, because when I tried, I found the "rpcgen" does not have a -a option, so i can not get the makefile as linux version Another question is, after compile in cygwin, is that mean i can us

Re: Making sftp and ssh work on cygwin

2007-03-08 Thread Marielle Fois
Dave Korn wrote: So you run sftp -vv [EMAIL PROTECTED] and get back... nothing? That's odd. Maybe a local firewall problem, so you can't even connect to the remote host? I get back nothing, exactly. I tried disabling the Windows firewall, but no change. I checked the sshd log in the

Re: 'service serviceName start|stop|restart' command available in cygwin?

2007-03-08 Thread Corinna Vinschen
On Mar 8 04:23, Web Developer wrote: > I was going through and installing some commands in cygwin that I am > used to using in linux like chkconfig, etc. > And I was wondering if there was 'service' command avilable and if so, > in what package? cygrunsrv Corinna -- Corinna Vinschen

Re: more busted paths

2007-03-08 Thread Corinna Vinschen
On Mar 7 17:04, Christopher Layne wrote: > On Wed, Mar 07, 2007 at 04:49:19PM -0800, Christopher Layne wrote: > > On Wed, Mar 07, 2007 at 07:19:53PM -0500, Christopher Faylor wrote: > > > > > > I think some words describing what problem you think is being shown > > > above are probably in order.

'service serviceName start|stop|restart' command available in cygwin?

2007-03-08 Thread Web Developer
I was going through and installing some commands in cygwin that I am used to using in linux like chkconfig, etc. And I was wondering if there was 'service' command avilable and if so, in what package? Thanks! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: