Re: Usage Of Cron and AT commands

2006-08-22 Thread sujit . menon
Hi Mr. mwoehlke, I have read the replies to my previous post and that is the very reason I am rewriting this mail, the previous mailer by Mr. chuck had just mentioned using "man crontab", which is not what I want. I am not using crontab and am using cron and at for batch processing I want to know

Re: Installation from hardisk, is it possible?

2006-08-22 Thread steven woody
On 8/22/06, Mike Fahlbusch <[EMAIL PROTECTED]> wrote: steven woody wrote: > hi, > > i am going to install a copy of cygwin in my notebook, but for some > reasons the computer can not access internet, so i think i have to > download a full suites of installation files on to my desktop computer > a

RE: A build problem of C++ code on Cygwin

2006-08-22 Thread Gary R. Van Sickle
> From: Brian Dessent > Sent: Tuesday, August 22, 2006 6:30 PM > Subject: Re: A build problem of C++ code on Cygwin > > Brian Dessent wrote: > > > I've seen this a million times. It's a makefile that doesn't know > > about $EXEEXT and assumes that executables have no > extension. Because > >

Re: A build problem of C++ code on Cygwin

2006-08-22 Thread Angelo Graziosi
Brian Dessent wrote > Indeed. The attached patch (and then re-running automake at the > top-level) causes the build to work correctly -- or at least get past > the problem you reported, I don't feel like waiting for the full build. Hi Brian, many thanks for the patch, I have sent it to LiDIA

Re: running cygwin from file server

2006-08-22 Thread Igor Peshansky
On Tue, 22 Aug 2006, Richard Foulk wrote: > Aloha, > > I've installed Cygwin on a file server common to a large number of > clients. This allows various tools and scripts to be run on any > of the clients without cluttering them with their own installations. > > Occasionally it would be nice to o

Re: write() or read() returning ENOENT status

2006-08-22 Thread Christopher Faylor
On Tue, Aug 22, 2006 at 07:03:06PM -0500, Loh, Joe wrote: >Can anyone tell us what Windows error status gets mapped as ENOENT >return status for wite() or read() system calls? We have a test >program that runs for hours, sometimes days doing constant I/O to an >iSCSI volume and sporadically we wil

Re: running cygwin from file server

2006-08-22 Thread Christopher Faylor
On Tue, Aug 22, 2006 at 01:49:43PM -1000, Richard Foulk wrote: >Aloha, > >I've installed Cygwin on a file server common to a large number of >clients. This allows various tools and scripts to be run on any >of the clients without cluttering them with their own installations. > >Occasionally it wou

write() or read() returning ENOENT status

2006-08-22 Thread Loh, Joe
Can anyone tell us what Windows error status gets mapped as ENOENT return status for wite() or read() system calls? We have a test program that runs for hours, sometimes days doing constant I/O to an iSCSI volume and sporadically we will get an ENOENT return status from either the write() or read

running cygwin from file server

2006-08-22 Thread Richard Foulk
Aloha, I've installed Cygwin on a file server common to a large number of clients. This allows various tools and scripts to be run on any of the clients without cluttering them with their own installations. Occasionally it would be nice to obtain a quick interactive shell environment on one of t

Re: A build problem of C++ code on Cygwin

2006-08-22 Thread Brian Dessent
Brian Dessent wrote: > I've seen this a million times. It's a makefile that doesn't know about > $EXEEXT and assumes that executables have no extension. Because of this > one of the stock built-in make rules gets invoked instead of the proper > link command. Look in the Makefile for the rule th

Re: A build problem of C++ code on Cygwin

2006-08-22 Thread Brian Dessent
Angelo Graziosi wrote: > It tries to build C++ with gcc: > > gcc bytes_to_int_flag_generator.o -o bytes_to_int_flag_generator > > ... > So the question is : what could be the cause of this different behaviour ? > I've seen this a million times. It's a makefile that doesn't know about $E

A build problem of C++ code on Cygwin

2006-08-22 Thread Angelo Graziosi
I want to flag the following problem occurred on Cygwin BUT NOT on Linux. === I have tried to build LiDIA (A C++ Library For Computational Number Theory, http://www.informatik.tu-darmstadt.de/TI/LiDIA/) library on Cygwin. After the

Re: Looking for mkdirhier !

2006-08-22 Thread Will Parsons
mwoehlke wrote: > [snip] > > Actually, I intentionally did not use a shebang... 'mkdir -p "$@"' > should work on any Bourne-like shell, although in this case '#!/bin/sh' > should suffice. > > I'm used to writing portable scripts; anything other than '#!/bin/sh' is > very non-portable, and if the

Re: popen bug [patch]

2006-08-22 Thread Jeff Johnston
Patch checked in. Thanks. -- Jeff J. Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cygwin popen does not match Linux popen when stdout is closed. ... Oops - when stdout is closed, and the pipe is output on child, cygwin popen mistakenly lost the pipe in both processes.

Re: coreutils 5.97; mkdir -p; mkdir: cannot create directory `name': File exists

2006-08-22 Thread Rolf Campbell
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 From: Rolf Campbell I believe there is a race-condition in "mkdir -p". Specifically, if the directory does not exist *yet* when stat is called on line #98 of "coreutils-5.97/lib/mkdir-p.c", but the directory *does* exist by the ti

Re: coreutils 5.97; mkdir -p; mkdir: cannot create directory `name': File exists

2006-08-22 Thread mwoehlke
Rolf Campbell wrote: I believe there is a race-condition in "mkdir -p". Specifically, if the directory does not exist *yet* when stat is called on line #98 of "coreutils-5.97/lib/mkdir-p.c", but the directory *does* exist by the time line #190 of the same file calls mkdir(), then the program w

Re: popen bug [patch]

2006-08-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Cygwin popen does not match Linux popen when stdout is closed. ... > Oops - when stdout is closed, and the pipe is output on child, cygwin > popen mistakenly lost the pipe in both processes. > > > The real world case that found this: > cygwin$ echo '

Re: Prevent closing a NULL pinfo handle

2006-08-22 Thread Brian Ford
On Thu, 17 Aug 2006, Christopher Faylor wrote: > I'll look into it when I have the time although I am not seeing this > particular problem. In case you'd like an STC: $ cat system.c #include int main(void) { return system("/usr/bin/ls"); } $ gcc -g -Wall -O2 system.c -o system $ ./system

Re: coreutils 5.97; mkdir -p; mkdir: cannot create directory `name': File exists

2006-08-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 From: Rolf Campbell > I believe there is a race-condition in "mkdir -p". Specifically, if the > directory does not exist *yet* when stat is called on line #98 of > "coreutils-5.97/lib/mkdir-p.c", but the directory *does* exist by the > time line #190

coreutils 5.97; mkdir -p; mkdir: cannot create directory `name': File exists

2006-08-22 Thread Rolf Campbell
I believe there is a race-condition in "mkdir -p". Specifically, if the directory does not exist *yet* when stat is called on line #98 of "coreutils-5.97/lib/mkdir-p.c", but the directory *does* exist by the time line #190 of the same file calls mkdir(), then the program will error with "File

RE: Looking for mkdirhier !

2006-08-22 Thread Igor Peshansky
On Tue, 22 Aug 2006, Dave Korn wrote: > On 22 August 2006 16:57, mwoehlke wrote: > > > Dave Korn wrote: > >> On 22 August 2006 07:50, Guillaume MARTIN wrote: > >> > >>> How could I install mkdir in cygwin ? > >> > >> [EMAIL PROTECTED] /tmp> alias mkdirhier='mkdir -p' > > > > ...but you would have

Re: Looking for mkdirhier !

2006-08-22 Thread mwoehlke
Dave Korn wrote: On 22 August 2006 16:57, mwoehlke wrote: Dave Korn wrote: On 22 August 2006 07:50, Guillaume MARTIN wrote: How could I install mkdir in cygwin ? [EMAIL PROTECTED] /tmp> alias mkdirhier='mkdir -p' ...but you would have to set that alias in whatever this script is... Better:

RE: Looking for mkdirhier !

2006-08-22 Thread Dave Korn
On 22 August 2006 16:57, mwoehlke wrote: > Dave Korn wrote: >> On 22 August 2006 07:50, Guillaume MARTIN wrote: >> >>> How could I install mkdir in cygwin ? >> >> [EMAIL PROTECTED] /tmp> alias mkdirhier='mkdir -p' > > ...but you would have to set that alias in whatever this script is... Yep.

Re: Postfix on Cygwin?

2006-08-22 Thread Jim Drash
Assuming that there isn't a lurker here who's built it, would you be interested in giving it a go? I'll try for a bit if no one steps up. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cyg

Re: Postfix on Cygwin?

2006-08-22 Thread Christopher Faylor
On Tue, Aug 22, 2006 at 12:16:21PM -0400, Jim Drash wrote: >A few years back there were some folks looking to create a cygwin port >of postfix. I the time that has passed bot cygwin and postfix have >gotten better. Does anyone know if there is a cygwin-port of postfix? We don't have postfix in t

Postfix on Cygwin?

2006-08-22 Thread Jim Drash
A few years back there were some folks looking to create a cygwin port of postfix. I the time that has passed bot cygwin and postfix have gotten better. Does anyone know if there is a cygwin-port of postfix? Jim Drash -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem r

Re: [ANNOUNCEMENT] Updated: singular-*-3.0.2-1

2006-08-22 Thread Angelo Graziosi
Oliver Wienand wrote: >The current version 3-0-2 ... contains > also some new features: > > >* factory, libfac updated for gcc 4.1.x Are these usable with the current GCC (3.4.4) ? >* configure/speed improved for 64bit architectures >* new library: dmod.lib ( dmod_lib) >* new li

Re: Those nasty bundled Cygwin's

2006-08-22 Thread Eric Hanchrow
Gosh, thanks for the well-written description! Sure sounds like a lot of work, though :-| -- ... belief in the omniscient hacker is indistinguishable from belief in a Supreme Being. There is simply no argument one can give that will dissuade a true believer, yet when the believer is asked for a

Re: Usage Of Cron and AT commands

2006-08-22 Thread mwoehlke
[EMAIL PROTECTED] wrote (again): Hi CygWinners, I would like to know the syntax of crontab, cron and at commands for its use in task scheduling. [snip] Please read the replies to your first post instead of posting again. And please lose the obnoxiously long signature and unenforceable d

Re: Looking for mkdirhier !

2006-08-22 Thread mwoehlke
Dave Korn wrote: On 22 August 2006 07:50, Guillaume MARTIN wrote: How could I install mkdir in cygwin ? [EMAIL PROTECTED] /tmp> alias mkdirhier='mkdir -p' ...but you would have to set that alias in whatever this script is... Better: $ cat > /bin/mkdirhier : mkdir -p "$@" ^D $ chmod +x /bi

Re: problem with malloc/realloc. Pls help.

2006-08-22 Thread Omololu
Thanks a lot, Igor & Mark. i was able to rectify the code to fix the problem. Now it works. (i had to use a pointer to a pointer to int, rather than just a pointer to int in the subroutine) thanks again. o. --- Igor Peshansky <[EMAIL PROTECTED]> wrote: > On Mon, 21 Aug 2006, Omololu wrote: >

Re: Those nasty bundled Cygwin's

2006-08-22 Thread Sam Robb
On Mon, 2006-08-21 at 10:17 -0400, Larry Hall (Cygwin) wrote: > Eric Hanchrow wrote: > >> "Larry" == Larry Hall (Cygwin) >> com> writes: > > > . Thanks. > > > > > > Larry> This has also been discussed before. If you'd like to > > Lar

RE: read() blocking and TIOCINQ

2006-08-22 Thread Nellis, Kenneth
The value of errno might give you a clue. --Ken Nellis -Original Message- From: Ernesto Paiser [mailto:paiser at esrf dot fr] Sent: Tuesday, August 22, 2006 4:11 AM To: cygwin at cygwin dot com Subject: read() blocking and TIOCINQ Hello Corinna, I have problems with read() function bloc

[ANNOUNCEMENT] Updated: singular-*-3.0.2-1

2006-08-22 Thread Oliver Wienand
Version 3.0.2-1 of "Singular" has been uploaded. About: SINGULAR is a Computer Algebra System for polynomial computations with special emphasis on the needs of commutative algebra, algebraic geometry, and singularity theory. Changes: The current version 3-0-2 is mainly a bug fix release, but i

Re: read() blocking and TIOCINQ

2006-08-22 Thread Igor Peshansky
On Tue, 22 Aug 2006, Ernesto Paiser wrote: > Hello Corinna, FYI, this is a mailing list, and unless you're replying to a specific message, you're actually talking to many people. > I have problems with read() function blocking and > waiting for characters on serial line with cygwin: > > Here are

Re: My script doesn't work under cygwin cron

2006-08-22 Thread Igor Peshansky
Ugh, top-posting... Reformatted. On Mon, 21 Aug 2006, liora milbaum wrote: > Igor Peshansky wrote: > > > > On Sun, 20 Aug 2006, liora milbaum wrote: > > > >> It works fine under the cygwin shell not under cron. > >> > >> This is the output of the command: > >> > >> Can't load '/usr/lib/perl5/sit

RE: Problem with physical memory detected

2006-08-22 Thread Dave Korn
On 22 August 2006 10:50, Stephane Goarzin wrote: > Hi, > > I installed cygwin on a Windows 2000 Server with 4GB of RAM, but when I > execute vmstat only 2GB are detected. I did the manipulation explain in the > topic "Changing Cygwin's Maximum Memory" but it had no effect. Is it a > restriction o

Re: Problem with physical memory detected

2006-08-22 Thread Václav Haisman
Stephane Goarzin wrote: > Hi, > > I installed cygwin on a Windows 2000 Server with 4GB of RAM, but when I > execute > vmstat only 2GB are detected. I did the manipulation explain in the topic > "Changing Cygwin's Maximum Memory" but it had no effect. Is it a restriction > of > cygwin or is there

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Christopher Faylor
On Tue, Aug 22, 2006 at 12:46:18PM +0100, Dave Korn wrote: >On 22 August 2006 11:09, Martin J?hren wrote: >>I tried following code with vs2005, and... there is no memory problem! >>So the bug must be located in CYGWIN or in GCC. Form now on it seems >>to me, that I really need help. Cause I'm no

Problem with physical memory detected

2006-08-22 Thread Stephane Goarzin
Hi, I installed cygwin on a Windows 2000 Server with 4GB of RAM, but when I execute vmstat only 2GB are detected. I did the manipulation explain in the topic "Changing Cygwin's Maximum Memory" but it had no effect. Is it a restriction of cygwin or is there any solution ? Thank's for help. Regard

Usage Of Cron and AT commands

2006-08-22 Thread sujit . menon
Hi CygWinners, I would like to know the syntax of crontab, cron and at commands for its use in task scheduling. Also, I suppose we can do a Cron or AT job using Cygwin installation? Please tell me the procedure... How do we allow permission's for the cron job. What file needs to mod

RE: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Dave Korn
On 22 August 2006 11:09, Martin Jöhren wrote: > I tried following code with vs2005, and... there is no memory problem! So > the bug must be located in CYGWIN or in GCC. Form now on it seems to me, > that I really need help. Cause I'm not so familiar with deeper CYGWIN or GCC > problems. I'm lookin

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
I tried following code with vs2005, and... there is no memory problem! So the bug must be located in CYGWIN or in GCC. Form now on it seems to me, that I really need help. Cause I'm not so familiar with deeper CYGWIN or GCC problems. I'm looking foward for any ideas how to handle the problem... TH

Re: Installation from hardisk, is it possible?

2006-08-22 Thread Mike Fahlbusch
steven woody wrote: hi, i am going to install a copy of cygwin in my notebook, but for some reasons the computer can not access internet, so i think i have to download a full suites of installation files on to my desktop computer and then transfer them to the notebook before i can install from t

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Samuel Thibault
Martin Jöhren, le Tue 22 Aug 2006 11:13:36 +0200, a écrit : > This indicates that the problem lies in the cygwin shell or in gcc or > it is a windows based problem, which could mean that windows is not > abled to free the threads as fast as the program creates new ones. Any > ideas? I doubt it may

RE: Looking for mkdirhier !

2006-08-22 Thread Dave Korn
On 22 August 2006 07:50, Guillaume MARTIN wrote: > > How could I install mkdir in cygwin ? [EMAIL PROTECTED] /tmp> mkdir a/b/c/d/e/f mkdir: cannot create directory `a/b/c/d/e/f': No such file or directory [EMAIL PROTECTED] /tmp> alias mkdirhier='mkdir -p' [EMAIL PROTECTED] /tmp> mkdirhier a/b/c

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
Hi Samuel, yes, there is no problem when I write: double kk = 1.2323231; while(1) printf("\r\n %f \r\n",kk); in main function. The problem occures only in combination with a thread. I tried now the same code (with some little changes) with the boost thread library under C++. There is als

read() blocking and TIOCINQ

2006-08-22 Thread Ernesto Paiser
Hello Corinna, I have problems with read() function blocking and waiting for characters on serial line with cygwin: Here are some code fragments: fd = open(sl, O_RDWR | O_NOCTTY | O_NONBLOCK | O_NDELAY) newpio.c_cflag = brate | CS8 | CLOCA

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Samuel Thibault
Hi, Martin Jöhren, le Tue 22 Aug 2006 09:03:03 +0200, a écrit : > printf("\r\n%f",kk); > If i compile and start the executing file I can see in the windows > taskmanager, that the memory used by the program increases continuesly every > second. If I change the code in the testThread function

Re: program fails to find its DLL

2006-08-22 Thread Eric Thomas
I reply to myself because i'm not registred to the ML. Thanks a lot for the feedback. Yes indeed, you're absolutely right Igor. And the case can easily be reproduced by running any w32 program and watch its environnement's variables with a tool like process explorer (sysinternals). One can also

WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
Hello everyone, ich have a problem under Windows XP using CYGWIN 3.1.17(6)-release (i686-pc-cygwin) with GCC 3.4.4 with the following code: void *testThread(void *data) { double kk = 1.232231212; printf("\r\n%f",kk); //pthread_exit(NULL); return(NULL); } int main (int arg