Different error on socket while connecting to a box behind firewall

2011-11-29 Thread Jaswinder Bhamra
Hi, There was a post http://cygwin.com/ml/cygwin/2011-09/msg00017.html to which I got a reply "the fix is not yet available, but the fix will be in the next Cygwin release". Approximately when can I expect that, or is the fix already in some release/patch at cygwin.com? This is becoming urgent fo

How to get std::strtoull (unsigned long long)?

2011-11-29 Thread Markus Selve
Hello, I'm trying to use std::strtoull in a C++ program, but compiling it I get: error: 'strtoull' is not a member of 'std' It works, if I use strtoul ('unsigned long' versus 'unsigned long long' above). Cygwin uses newlib and I checked the documentation on the newlib homepage: It provides bot

Re: How to get std::strtoull (unsigned long long)?

2011-11-29 Thread Csaba Raduly
On Tue, Nov 29, 2011 at 11:04 AM, Markus Selve wrote: > > Hello, > > I'm trying to use std::strtoull in a C++ program, but compiling it I get: > >  error: 'strtoull' is not a member of 'std' > > It works, if I use strtoul ('unsigned long' versus 'unsigned long long' > above). > Cygwin uses newlib

Re: How to get std::strtoull (unsigned long long)?

2011-11-29 Thread Greg Chicares
On 2011-11-29 10:22Z, Csaba Raduly wrote: > On Tue, Nov 29, 2011 at 11:04 AM, Markus Selve wrote: >> >> $ g++ -Wall -o tt tt.cpp >> tt.cpp: In function 'int main(int, char**)': >> tt.cpp:7:9: error: 'strtoull' is not a member of 'std' The default C++ dialect is based on the 1998 standard, which l

Re: Can't install netCDF4

2011-11-29 Thread marco atzeri
On 11/28/2011 3:26 PM, Tomas Staig wrote: Edvardsen Kåre wrote: I need to install the netCDF4 package which is the Python/numpy interface to netCDF (see http://code.google.com/p/netcdf4-python/ ) I've tried to install version 0.9.4 and later, but they all give pretty much the same error message

Re: Can't install netCDF4

2011-11-29 Thread Edvardsen Kåre
So, I followed the more detailed (but not so intuitive) descriptions for installing all hdf5, netcdf-4, and netCDF4, latest stable versions. Now, I bump into a different problem which seem to be related to libcurl (errorlog.txt attached). Can't quite figure out what's wrong, but I guess whatever li

[ANNOUNCEMENT] Updated: nosleep-0.1.5-1

2011-11-29 Thread Andrew Schulman
A new version of nosleep, 0.1.5-1, is now available in the Cygwin distribution. This is a new upstream release, that fixes a possible crash. All nosleep users should upgrade. nosleep runs a command while inhibiting the computer from sleeping or hibernating until the command finishes executing.

Re: Can't install netCDF4

2011-11-29 Thread marco atzeri
On 11/29/2011 3:30 PM, Edvardsen Kåre wrote: So, I followed the more detailed (but not so intuitive) descriptions for installing all hdf5, netcdf-4, and netCDF4, latest stable versions. Now, I bump into a different problem which seem to be related to libcurl (errorlog.txt attached). Can't quite f

Re: Shell script - is this expected behaviour?

2011-11-29 Thread Eric Blake
On 11/29/2011 02:00 AM, Gary wrote: > If I have a shell script which reads a file which does not have an end > of line character at the end if it's only line, it does not read > anything. Not cygwin specific. > > For example: > , > | #!/bin/sh > | > | fileName="test.xml" Your example didn'

Re: /cygdrive/c permission denied

2011-11-29 Thread Warren Young
On 11/28/2011 5:06 PM, Mike Brennan wrote: When I did "cd /cygdrive; ls -l" I got: drwx--+ 1 0 Nov 28 17:03 c I don't think the is an error. I see much the same thing here, and I have full read/write access to C:\ via the Cygwin shell. The only serious diffe

Re: /cygdrive/c permission denied

2011-11-29 Thread Eric Blake
On 11/29/2011 08:42 AM, Warren Young wrote: > The only serious difference I see here is that I get "d-+", so > going by just that, I shouldn't even be able to cd into it! See that + on the end of the mode field? That means there are ACLs in affect; and my guess is one of the ACLs allows y

Re: Different error on socket while connecting to a box behind firewall

2011-11-29 Thread Christopher Faylor
On Tue, Nov 29, 2011 at 02:08:18PM +0530, Jaswinder Bhamra wrote: >Hi, > >There was a post http://cygwin.com/ml/cygwin/2011-09/msg00017.html to >which I got a reply "the fix is not yet available, but the fix will be >in the next Cygwin release". >Approximately when can I expect that, or is the fix

screencasting tools for cygwin?

2011-11-29 Thread Sivaram Neelakantan
Is there any tool that can assist in recording a screencast on cygwin? I've got a request to teach a few folks some basic unix stuff and thought I might as well record the stuff as a video or such. Basically, record my typing in the mintty session and save it as flv,mp4 or whatever convenient for

Re: Shell script - is this expected behaviour?

2011-11-29 Thread Fergus
>> Never feed 'read' unterminated input. Always end your text files with a newline. Yay. Please could /etc/setup/timestamp be terminated? Currently it is not, causing minor grief e.g. when using a shell script to check for updates. Fergus -- Problem reports: http://cygwin.com/problems.

Re: /cygdrive/c permission denied

2011-11-29 Thread Corinna Vinschen
On Nov 29 08:51, Eric Blake wrote: > On 11/29/2011 08:42 AM, Warren Young wrote: > > The only serious difference I see here is that I get "d-+", so > > going by just that, I shouldn't even be able to cd into it! > > See that + on the end of the mode field? That means there are ACLs in > a

updatedb: man page inaccuracies, not usable out of the box

2011-11-29 Thread Tim McDaniel
I downloaded setup.exe and installed Cygwin yesterday and today. It's cygwin 1.7.9-1 running on Windows 7 64-bit. Just like most of the times I've installed cygwin over the past decade, updatedb doesn't work out of the box. I see three inaccuracies in the man page: --prunepaths='path1 pa

Re: updatedb: man page inaccuracies, not usable out of the box

2011-11-29 Thread Eric Blake
On 11/29/2011 11:02 AM, Tim McDaniel wrote: > Going by the default PRUNEFS list, I would say that the general spirit > of updatedb is not to index networked drives. I therefore ask that > updatedb, by default under Cygwin, not go into networked mapped > drives either. > find /mnt/z -maxdepth 0

RE: Shell script - is this expected behaviour?

2011-11-29 Thread Nellis, Kenneth
From: Eric Blake [mailto:ebl...@redhat.com] Subject: Re: Shell script - is this expected behaviour? > On 11/29/2011 02:00 AM, Gary wrote: > > If I have a shell script which reads a file which does not have an end > > of line character at the end if it's only line, it does not read > > anything.

FW: Shell script - is this expected behaviour?

2011-11-29 Thread Nellis, Kenneth
From: Eric Blake Subject: Re: Shell script - is this expected behaviour? Hey, sorry about neglecting to omit Eric's email address in my previous message (don't feed the spammers!). It's a manual effort to do such and mistakes happen. Sorry. :-( --Ken Nellis -- Problem reports: http://cygw

Illegal character ^M

2011-11-29 Thread frenco
I have a problem with a character. I think it's a conversion problem between dos and unix. I have a variable that is a float value. When I print it with the echo command i get: 0.495959 But when I try to make an operation on that value with the bc command (I am not sure how to write the bc comman

RE: Shell script - is this expected behaviour?

2011-11-29 Thread Tim McDaniel
Nellis, Kenneth wrote: From: Eric Blake Never feed 'read' unterminated input. Always end your text files with a newline. When I can't control the contents of the input file, I pipe it through a filter program I wrote that adds a final newline where the last character of a stream is not a newl

Re: Illegal character ^M

2011-11-29 Thread Tim McDaniel
On Tue, 29 Nov 2011, frenco wrote: I have a variable that is a float value. When I print it with the echo command i get: 0.495959 ... I think it's because my variable have the ^M character (not printed with the echo command) You might try echo "[$the_variable_name]" The quoting is signifi

Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread carolus
After opening "man ls", trying to search for "--all" leads to "Pattern not found (press RETURN)". Inquiring on comp.unix.shell, I was told that for this kind of search to work properly in linux , one must set PAGER=less. However, that does not seem to work in Cygwin, at least using the old defa

Passwordless sftp with ssh 5.9 still asks for password

2011-11-29 Thread Andrew Erskine
Im trying to configure sftp for a enterprise tool I use and the instructions (which I think are out dated as they don’t mention 2008) are as follows which I have followed to the letter – prob is im still asked for a password at the end .. (verbose output at the bottom)   To generate authenticati

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Tim McDaniel
On Tue, 29 Nov 2011, carolus wrote: After opening "man ls", trying to search for "--all" leads to "Pattern not found (press RETURN)". My experiment agrees with that. Do you know why that happens -- what is it doing so "/--all" doesn't work? Inquiring on comp.unix.shell, I was told that for t

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread carolus
On 11/29/2011 3:56 PM, Tim McDaniel wrote: On Tue, 29 Nov 2011, carolus wrote: After opening "man ls", trying to search for "--all" leads to "Pattern not found (press RETURN)". My experiment agrees with that. Do you know why that happens -- what is it doing so "/--all" doesn't work? No idea

Re: Shell script - is this expected behaviour?

2011-11-29 Thread DSB
On Tue, Nov 29, 2011 at 3:15 PM, Tim McDaniel wrote: > I don't have the time to experiment at the moment... Likewise, but it seems likely some existing utilities like "line" or "head -n1" might do the job. E.g. foo=$(line < file) foo=$(head -n1 file) -- Problem reports: http://cygwin.com/

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Gary Johnson
On 2011-11-29, carolus wrote: > After opening "man ls", trying to search for "--all" leads to > "Pattern not found (press RETURN)". > > Inquiring on comp.unix.shell, I was told that for this kind of > search to work properly in linux , one must set PAGER=less. However, > that does not seem to work

Re: Passwordless sftp with ssh 5.9 still asks for password

2011-11-29 Thread Warren Young
On 11/29/2011 2:49 PM, Andrew Erskine wrote: ssh-keygen -t dsa "-t [keytype]" is a default flag these days, and it defaults to RSA, not DSA. Unless you know for a fact you need DSA keys for some odd reason, leave this flag off and accept the default. (ssh itself doesn't care what kind of

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread carolus
On 11/29/2011 5:13 PM, Gary Johnson wrote: Man pages were being formatted with some sort of Unicode hyphen or dash character in place of the ASCII hyphen. Not sure that is the same problem. What happens if you search for --all in man ls? For me, the display looks OK, but the search doesn't w

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Gary Johnson
On 2011-11-29, carolus wrote: > On 11/29/2011 5:13 PM, Gary Johnson wrote: > Man pages were being formatted with some sort of Unicode > >hyphen or dash character in place of the ASCII hyphen. > > Not sure that is the same problem. What happens if you search for > --all in man ls? For me, the dis

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread carolus
On 11/29/2011 5:49 PM, Gary Johnson wrote: The display scrolls so that the line -a, --all is at the top of the screen and the string "--a" is highlighted in reverse video in that line Then maybe I just need to update my Cygwin installation, which is about a year old. Are you using th

gnome-keyring bug in snapshots

2011-11-29 Thread Yaakov (Cygwin/X)
uccessful login. WIth the 2029 snapshot, the following message is displayed on the terminal: Agent admitted failure to sign using the key. (which AFAIK comes from ssh) and the gnome-keyring prompt asks for the password to the next private key listed in ~/.ssh/config (even if its

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Larry Hall (Cygwin)
On 11/29/2011 9:29 PM, carolus wrote: Then maybe I just need to update my Cygwin installation, which is about a year old. Are you using the old default windows terminal like me, or rxvt, mintty, xterm, or maybe something else? Works for me in both. -- Larry ___

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Larry Hall (Cygwin)
On 11/29/2011 9:29 PM, carolus wrote: Then maybe I just need to update my Cygwin installation, which is about a year old. Are you using the old default windows terminal like me, or rxvt, mintty, xterm, or maybe something else? Works for me in mintty and the console window. -- Larry __

Re: Searching manpages for option codes, e.g. "--all"

2011-11-29 Thread Gary Johnson
On 2011-11-29, Larry Hall (Cygwin) wrote: > On 11/29/2011 9:29 PM, carolus wrote: > >Then maybe I just need to update my Cygwin installation, which is about a > >year old. Are you using the old default windows terminal like me, or rxvt, > >mintty, xterm, or maybe something else? > > Works for me i