How to write to shared memory?

2010-10-20 Thread Cameron, Barrett
Hi, I have a bash loop which I have significantly sped up by using: for ((i=0;i=Z;i++)); do echo $i; done instead of other format for loops as well as using internal math like: NEWX=$(($EAST+$DX)) Instead of let or expr. This process is now heaps faster but I want to echo the data to a file

Re: How to write to shared memory?

2010-10-20 Thread Bengt-Arne Fjellner
On 2010-10-20 08:21 , Cameron, Barrett wrote: Hi, I have a bash loop which I have significantly sped up by using: for ((i=0;i=Z;i++)); do echo $i; done Does for ((i=0;i=Z;i++)); do echo $i; done $OUT Help? It at least avoids reopening the file every time. instead of other format for

TCL and Cygwin 1.7 symlinks

2010-10-20 Thread Jeremy Davies
I know that Cywin TCL is not a 'real' Cygwin port, but I've noticed the following behaviour: $ cd /tmp $ mkdir x1 $ mkdir x1/foo $ echo abc x1/foo/bar $ mkdir x2 $ cd x2 $ ln -s ../x1/foo $ cat foo/bar abc $ tclsh % file normalize foo C:/Cygwin/tmp/x1/foo % file readlink foo could not readlink

Re: Sending signals to a subprocess

2010-10-20 Thread Ken Brown
On 10/20/2010 1:09 AM, Andy Koppe wrote: On 20 October 2010 04:17, Ken Brownkbr...@cornell.edu wrote: Emacs creates a subprocess that runs an interactive bash shell. Emacs wants to get the PGID of the foreground process group associated to the tty of this shell, and it does this on Linux via

Re: Sending signals to a subprocess

2010-10-20 Thread Andy Koppe
On 20 October 2010 12:21, Ken Brown wrote: On 10/20/2010 1:09 AM, Andy Koppe wrote: Emacs creates a subprocess that runs an interactive bash shell.  Emacs wants to get the PGID of the foreground process group associated to the tty of this shell, and it does this on Linux via TIOCGPGRP (or

Is python-xlib no longer available under Cygwin?

2010-10-20 Thread M Robinson
Hello,    I am trying to install key-mon (http://freshmeat.net/projects/key-mon) under Cygwin; I've also tried installing Cygwin-X thinking python-xlib would be included, I but I get the same error: $ key-mon /usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could

Re: Where to get source for setup.exe?

2010-10-20 Thread NightStrike
On Tue, Oct 19, 2010 at 11:20 PM, Pan ruochen panruoc...@gmail.com wrote: Hi All, Where can I get the source package for the latest setup.exe. I used to implement a package filter on version 2.573.2.3. But now the old version of setup gets errors during installation. And I still want to

Re: Win7 64bit, why so slow?

2010-10-20 Thread Michael Ludwig
Gerrit P. Haase schrieb am 19.10.2010 um 22:50 (+0200): Also, you might also be running into this problem:    http://cygwin.com/ml/cygwin/2010-05/msg00190.html No bash completion here: $ time bash -i -c echo real0m0.312s user0m0.015s sys 0m0.076s And this wouldn't

Re: Sending signals to a subprocess

2010-10-20 Thread Andy Koppe
On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html) because she saw Linux doing that.  But when I run Corinna's test on my Linux system, I get -1 where she got 0.  So

Re: Sending signals to a subprocess

2010-10-20 Thread Christopher Faylor
On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html) because she saw Linux doing that. ??But when I run

Re: Win7 64bit, why so slow?

2010-10-20 Thread NightStrike
On Tue, Oct 19, 2010 at 5:03 PM, Gerrit P. Haase gerrit.ha...@gmail.com wrote: On 19 October 2010 22:56, Gerrit P. Haase gerrit.ha...@gmail.com wrote: Norton Security is running, this may well be a problem, I'll try to disable this for now. Yes, much better now, seems to run very much faster

Re: Sending signals to a subprocess

2010-10-20 Thread Ken Brown
On 10/20/2010 4:32 PM, Christopher Faylor wrote: On Wed, Oct 20, 2010 at 08:25:37PM +0100, Andy Koppe wrote: On 20 October 2010 13:20, Andy Koppe wrote: Corinna made tcgetpgrp return 0 instead of -1 in some circumstances (see http://www.cygwin.com/ml/cygwin-patches/2009-q4/msg00045.html)

Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Rolf Campbell
On 2010-10-19 19:17, Arseny Slobodyuk wrote: [snip...] a...@dstar ~ $ ln -s `which cmd.exe` cmd.exe a...@dstar ~ $ cygcheck ./cmd.exe - D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe cygcheck: could not find './cmd.exe' cygcheck is not a cygwin application, it's a native windows

Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Christopher Faylor
On Wed, Oct 20, 2010 at 07:46:05PM -0400, Rolf Campbell wrote: On 2010-10-19 19:17, Arseny Slobodyuk wrote: [snip...] a...@dstar ~ $ ln -s `which cmd.exe` cmd.exe a...@dstar ~ $ cygcheck ./cmd.exe - D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe cygcheck: could not find

Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Andrey Repin
Greetings, Christopher Faylor! [snip...] a...@dstar ~ $ ln -s `which cmd.exe` cmd.exe a...@dstar ~ $ cygcheck ./cmd.exe - D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe cygcheck: could not find './cmd.exe' cygcheck is not a cygwin application, it's a native windows application,

Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Christopher Faylor
On Thu, Oct 21, 2010 at 06:46:16AM +0400, Andrey Repin wrote: Greetings, Christopher Faylor! [snip...] a...@dstar ~ $ ln -s `which cmd.exe` cmd.exe a...@dstar ~ $ cygcheck ./cmd.exe - D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe cygcheck: could not find './cmd.exe' cygcheck

Re: Bash problems, strace, performance, etc.

2010-10-20 Thread Cyrille Lefevre
seems to work here ! even on cpan.1 generated from pod2man... do you have bash-completion, if yes, get rid of it and try again. PS : where do you find the Club-G package ? Regards, Cyrille Lefevre -- mailto:cyrille.lefevre-li...@laposte.net -- Problem reports: