Re: Please help on GCC

2005-10-24 Thread estech users
Dear All,

Please, can someone help me with a running program on
how to read and output to texfile in gcc using c
language.

Best wishes,

Olorunfemi, Temitope

--- Eric Blake <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> According to estech users on 10/22/2005 3:19 AM:
> > Dear all,
> > 
> > Please can you enlighten me on why it is more
> > advantageous to use gcc rather that Microsoft
> > studio.net visual c ?
> 
> 1) gcc is free, Microsoft is not (even if you can
> obtain a copy without
> paying money, it is still not free - you are not
> free to see its source code)
> 
> 2) gcc understands cygwin, Microsoft does not
> 
> - --
> Life is short - so eat dessert first!
> 
> Eric Blake [EMAIL PROTECTED]
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (Cygwin)
> Comment: Public key at
> home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Thunderbird -
> http://enigmail.mozdev.org
> 
>
iD8DBQFDWlg784KuGfSFAYARAolKAKDFzdtj36otMFbizdKXzEXE48twHQCgmdCT
> Pzlma6ILmeUig5BIjwH8Tlw=
> =0iTR
> -END PGP SIGNATURE-
> 




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Please help on GCC

2005-10-24 Thread Brian Dessent
estech users wrote:

> Please, can someone help me with a running program on
> how to read and output to texfile in gcc using c
> language.

That's off-topic for this mailing list because it's not Cygwin
specific.  This is not a list about how to program in C, there are
plenty of those elsewhere.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem: find not traversing /cygdrive/X properly?

2005-10-24 Thread Chris Taylor

Kevin Autrey wrote:

I tried the lastest snapshot cygwin.dll - no changes - find still failed.

So, I bit the bullet and re-installed my Cygwin installation.  Same 
problem:  I can't do a 'find' from a top-level /cygdrive/X directory 
(and it seems to affect ONLY 'find' when searching from the top-level 
/cygdrive/X mount point).


When I do a 'find' command (in bash or tcsh):


tka-16:/cygdrive/p> find /cygdrive/c -iname cdplayer.ini
find: .: No such file or directory
find: /cygdrive/c/.backupSettings: No such file or directory
find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
find: /cygdrive/c/boot.ini: No such file or directory
find: /cygdrive/c/CONFIG.SYS: No such file or directory
find: /cygdrive/c/Documents and Settings: No such file or directory
find: /cygdrive/c/IO.SYS: No such file or directory
find: /cygdrive/c/Log.txt: No such file or directory
find: /cygdrive/c/MSDOS.SYS: No such file or directory
find: /cygdrive/c/NTDETECT.COM: No such file or directory
find: /cygdrive/c/ntldr: No such file or directory
find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
find: /cygdrive/c/Program Files: No such file or directory
find: /cygdrive/c/RECYCLER: No such file or directory
find: /cygdrive/c/System Volume Information: No such file or directory
find: /cygdrive/c/Temp: No such file or directory
find: /cygdrive/c/tomsteady.ini: No such file or directory
find: /cygdrive/c/WINDOWS: No such file or directory
find: /cygdrive/c/xPos.txt: No such file or directory




If I search a specific directory from the /cygdrive/X directory, it works:


tka-16:/cygdrive/p> find /cygdrive/c/windows -iname cdplayer.ini
/cygdrive/c/windows/CDPLAYER.INI





If I do 'find' on the "C:/" directory it works:


tka-16:/cygdrive/p> find C:/ -iname cdplayer.ini
C:/WINDOWS/CDPLAYER.INI




What's interesting is that if I do a 'find' on "/cygdrive/c/.", it also 
works!



tka-16:/cygdrive/p> find /cygdrive/c/. -iname cdplayer.ini
/cygdrive/c/./WINDOWS/CDPLAYER.INI





Does this clarify the problem or give more clues as to what might be 
going on? Is anyone else having this problem?


Kevin



Well, I've just tested this myself, and the only error I get is the 
normal permission denied on system volume information.
I should mention that I updated my cygwin installation on Thursday or 
Friday last week..


There are two things I'm wondering though...
Where is this . in your PATH coming from? (it's in your cygcheck output)
Also, have you tried making the /cygdrive/X mounts binmode?
Mine show up in mount like:
c: on /cygdrive/c type system (binmode,noumount)

Might be worth testing it that way?

Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Subversion client & text mounts

2005-10-24 Thread Jörg Schaible
Hello Subversion maintainer,

the subversion client does unfortunately not respect text mounts. Checking out 
form a remote repository all text files have unix line endings although they 
have the property svn:eol-style set to native. This is a major hassle in a 
build environment where also a lot of non-Cygwin tools have to be used.

- Jörg

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: question about raw sockets

2005-10-24 Thread Corinna Vinschen
On Oct 23 20:25, Fernando Barsoba wrote:
> Hi all,
> 
> I'm working with raw sockets and I get the following error: `IP_HDRINCL' 
> undeclared (first use in this function)

This definition is missing up to 1.5.18 but has been added to Cygwin
in CVS already.  Try the latest snapshot from http://cygwin.com/snapshots/

Other than that, raw sockets are not officially supported, but it should
basically work.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
I would like to have on my Windoze desktop an Icon for zsh running under

Cygwin, similar to the standard Cygwin Icon which runs a bash login
shell,
so that I can choose whether to get a window using bash or using zsh.

It works kind of, but I can't get zsh executed as login shell. The BAT
file
invoking the bash login shell calls bash using

  bash --login -i

but zsh has no equivalent to the --login option, so I just use

  zsh -i

which makes the shell interactive, but not login. Zsh considers itself a
login
shell iff it is called under a name starting with a dash.

Is there an elegant solution to this problem? Of course I could

  cp -- zsh -zsh

and call -zsh, but I would have then to redo this everytime I update zsh
to a 
newer version. Another possibility would be to execute a shell script
using
bash and in this script do an

  exec -a -zsh zsh -I

But maybe someone knows a better way to do this?

Ronald 
-- 
Ronald Fischer <[EMAIL PROTECTED]>
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Help Required

2005-10-24 Thread Nagendra G
Hello,

http://cygwin.mirrors.pair.com/jffs2/mkfs.jffs2  appears to be a Linux 
executable.  Is there a version for cygwin that runs on a Windows 
platform?
  Thanks in advance for any help .





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



File permission problems with setup.exe

2005-10-24 Thread Alexander Gottwald
Hi all,

Updating cygwin two days ago revealed two problems with cywings setup.exe

1) corrupted /etc/setup/.lst.gz 

setup tries to read the file and stops. The error message in the logfile
did not mention the filename. Deleting the broken file solved the problem

2) insufficent file permissions 

A folder had 0700 permission for my user account and installing as admin
user hang when setup tried to write a file to that folder. It printed 
log messages continously and ate up all memory.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Sun, 23 Oct 2005 17:26:50 -0700,  wrote:

>zzapper wrote:

>
>Sometimes it can be hard, especially when you are dealing with both
>Cygwin and non-Cygwin programs, because the quoting rules differ.  But
>it is always possible, and I can't believe that there exists a situation
>where you are actually forced to use the short filename.  If you have
>one, post it.
>
>Brian

See script below sja.exe is actually in program files, my kludge below was to 
use a mount (rather
than the short name)

(sja.exe is SQLYOG Job Agent)

dirbackup="c:/backup/dosh/"


eval filedate=$(date.exe '+%d%b%y')

ls -l c:/backup/dosh/doshautoexport.sql

sjaprog="/sqlyog/sja.exe"
sjascript="c:/cygwin/usr/local/bin/sql/dosh-batch.xml"
sjarun="$sjaprog $sjascript";
$sjarun


-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor

zzapper wrote:

On Sun, 23 Oct 2005 17:26:50 -0700,  wrote:



zzapper wrote:




Sometimes it can be hard, especially when you are dealing with both
Cygwin and non-Cygwin programs, because the quoting rules differ.  But
it is always possible, and I can't believe that there exists a situation
where you are actually forced to use the short filename.  If you have
one, post it.

Brian



See script below sja.exe is actually in program files, my kludge below was to 
use a mount (rather
than the short name)

(sja.exe is SQLYOG Job Agent)

dirbackup="c:/backup/dosh/"


eval filedate=$(date.exe '+%d%b%y')

ls -l c:/backup/dosh/doshautoexport.sql

sjaprog="/sqlyog/sja.exe"
sjascript="c:/cygwin/usr/local/bin/sql/dosh-batch.xml"
sjarun="$sjaprog $sjascript";
$sjarun




Considering all this is doing is launching a statically located 
executable with a statically located script (xml) file, this seems 
overly complex..
Surely you could just do /cygdrive/c/Program\ Files/sqlyog/sja.exe 
c:/cygwin/usr/local/bin/sql/dosh-batch.xml ?
One question.. When you were trying with spaces.. Did you try escaping 
the \ ? (as in Program\\ Files)
I've found this to be necessary at times, though I can't remember an 
instance at the moment.
Does the command run from the console if you start it using the standard 
path?


Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Brian Dessent
zzapper wrote:

> See script below sja.exe is actually in program files, my kludge below was to 
> use a mount (rather
> than the short name)

I don't see anything here that necessitates using a mount or 8.3.

> sjaprog="/sqlyog/sja.exe"

sjaprog="/cygdrive/c/program\ files/whatever/sja.exe"

> sjascript="c:/cygwin/usr/local/bin/sql/dosh-batch.xml"
> sjarun="$sjaprog $sjascript";
> $sjarun

"$sjaprog" $sjascript

OR

sjarun="\"$sjaprog\" $sjascript"
$sjarun

I fail to see the need for the variable $sjarun if its only function is
to be the command that's executed on the next line.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 12:09:41 +0100,  wrote:


>One question.. When you were trying with spaces.. Did you try escaping 
>the \ ? (as in Program\\ Files)
>I've found this to be necessary at times, though I can't remember an 
>instance at the moment.
>Does the command run from the console if you start it using the standard 
>path? #yes#
>
>Chris
Will have a go at the 'Program\\ Files' method


-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor

zzapper wrote:

On Mon, 24 Oct 2005 12:09:41 +0100,  wrote:



One question.. When you were trying with spaces.. Did you try escaping 
the \ ? (as in Program\\ Files)
I've found this to be necessary at times, though I can't remember an 
instance at the moment.
Does the command run from the console if you start it using the standard 
path? #yes#


Chris


Will have a go at the 'Program\\ Files' method




Brian has suggested a more versatile method. Use it instead.
But both of us have indicated that we can't see the point in the sqlrun 
variable (I don't particularly see the benefit of any of them over say, 
an alias in your bashrc).


--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 04:28:37 -0700,  wrote:

Whatever I try I get

/usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ 
Enterprise/sja.exe: No
such file or directory

But a ls is just dandy

ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
-rwx--+ 1 davidr None 1220608 Oct  5 09:45 /cygdrive/c/Program Files/SQLyog
Enterprise/sja.exe

Short Name method or a mount to a directory are also dandy

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor

zzapper wrote:

On Mon, 24 Oct 2005 04:28:37 -0700,  wrote:

Whatever I try I get

/usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ 
Enterprise/sja.exe: No
such file or directory

But a ls is just dandy

ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
-rwx--+ 1 davidr None 1220608 Oct  5 09:45 /cygdrive/c/Program Files/SQLyog
Enterprise/sja.exe

Short Name method or a mount to a directory are also dandy



What happens when you run the program yourself, from a cygwin console?

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 13:02:31 +0100,  wrote:

>zzapper wrote:
>> On Mon, 24 Oct 2005 04:28:37 -0700,  wrote:
>> 
>> Whatever I try I get
>> 
>> /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ 
>> Enterprise/sja.exe: No
>> such file or directory
>> 
>> But a ls is just dandy
>> 
>> ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
>> -rwx--+ 1 davidr None 1220608 Oct  5 09:45 /cygdrive/c/Program 
>> Files/SQLyog
>> Enterprise/sja.exe
>> 
>> Short Name method or a mount to a directory are also dandy
>> 
>
>What happens when you run the program yourself, from a cygwin console?

$ /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
SQLyog Job Agent Version 4.2
Copyright (c) Webyog Softworks Pvt. Ltd.. All Rights Reserved.

I'm affeared this is going to turn out to be something dumb!!


-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem: find not traversing /cygdrive/X properly?

2005-10-24 Thread Kevin Autrey

Hi Chris -

I always put "." in the front of my path so that as I'm developing an app, 
I always pick up the devel version in my current working directory instead 
of /usr/local/bin.  I know it's not the most secure thing in the world, but 
I'm on a stand-alone, single-user system, so the security risks are manageable.


Just to try something, I modified my path to only include "/usr/bin" - no 
difference:



tka-16:/cygdrive/p> set path = "/usr/bin"
tka-16:/cygdrive/p> which find
/usr/bin/find
tka-16:/cygdrive/p> find /cygdrive/c -iname win.ini
find: .: No such file or directory
find: /cygdrive/c/.backupSettings: No such file or directory
find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
find: /cygdrive/c/boot.ini: No such file or directory
find: /cygdrive/c/CONFIG.SYS: No such file or directory
find: /cygdrive/c/Documents and Settings: No such file or directory
find: /cygdrive/c/IO.SYS: No such file or directory
find: /cygdrive/c/Log.txt: No such file or directory
find: /cygdrive/c/MSDOS.SYS: No such file or directory
find: /cygdrive/c/NTDETECT.COM: No such file or directory
find: /cygdrive/c/ntldr: No such file or directory
find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
find: /cygdrive/c/Program Files: No such file or directory
find: /cygdrive/c/RECYCLER: No such file or directory
find: /cygdrive/c/System Volume Information: No such file or directory
find: /cygdrive/c/Temp: No such file or directory
find: /cygdrive/c/tomsteady.ini: No such file or directory
find: /cygdrive/c/WINDOWS: No such file or directory
find: /cygdrive/c/xPos.txt: No such file or directory



Per Eric's suggestion from last week, I did change my mount types to -b:


tka-16:/cygdrive/p> mount -m
mount -f -s -b "D:/CygWIN/bin" "/usr/bin"
mount -f -s -b "D:/CygWIN/lib" "/usr/lib"
mount -f -s -b "D:/CygWIN" "/"
mount -s -b --change-cygdrive-prefix "/cygdrive"


Very strange...

Kevin




At 04:02 10/24/2005  (Monday), Chris Taylor wrote:

Kevin Autrey wrote:

I tried the lastest snapshot cygwin.dll - no changes - find still failed.
So, I bit the bullet and re-installed my Cygwin installation.  Same 
problem:  I can't do a 'find' from a top-level /cygdrive/X directory (and 
it seems to affect ONLY 'find' when searching from the top-level 
/cygdrive/X mount point).

When I do a 'find' command (in bash or tcsh):


tka-16:/cygdrive/p> find /cygdrive/c -iname cdplayer.ini
find: .: No such file or directory
find: /cygdrive/c/.backupSettings: No such file or directory
find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
find: /cygdrive/c/boot.ini: No such file or directory
find: /cygdrive/c/CONFIG.SYS: No such file or directory
find: /cygdrive/c/Documents and Settings: No such file or directory
find: /cygdrive/c/IO.SYS: No such file or directory
find: /cygdrive/c/Log.txt: No such file or directory
find: /cygdrive/c/MSDOS.SYS: No such file or directory
find: /cygdrive/c/NTDETECT.COM: No such file or directory
find: /cygdrive/c/ntldr: No such file or directory
find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
find: /cygdrive/c/Program Files: No such file or directory
find: /cygdrive/c/RECYCLER: No such file or directory
find: /cygdrive/c/System Volume Information: No such file or directory
find: /cygdrive/c/Temp: No such file or directory
find: /cygdrive/c/tomsteady.ini: No such file or directory
find: /cygdrive/c/WINDOWS: No such file or directory
find: /cygdrive/c/xPos.txt: No such file or directory


If I search a specific directory from the /cygdrive/X directory, it works:


tka-16:/cygdrive/p> find /cygdrive/c/windows -iname cdplayer.ini
/cygdrive/c/windows/CDPLAYER.INI



If I do 'find' on the "C:/" directory it works:


tka-16:/cygdrive/p> find C:/ -iname cdplayer.ini
C:/WINDOWS/CDPLAYER.INI


What's interesting is that if I do a 'find' on "/cygdrive/c/.", it also 
works!



tka-16:/cygdrive/p> find /cygdrive/c/. -iname cdplayer.ini
/cygdrive/c/./WINDOWS/CDPLAYER.INI



Does this clarify the problem or give more clues as to what might be 
going on? Is anyone else having this problem?

Kevin


Well, I've just tested this myself, and the only error I get is the normal 
permission denied on system volume information.
I should mention that I updated my cygwin installation on Thursday or 
Friday last week..


There are two things I'm wondering though...
Where is this . in your PATH coming from? (it's in your cygcheck output)
Also, have you tried making the /cygdrive/X mounts binmode?
Mine show up in mount like:
c: on /cygdrive/c type system (binmode,noumount)

Might be worth testing it that way?

Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has

Re: zsh as login shell

2005-10-24 Thread Václav Haisman
What about editing /etc/passwd? Pesonally, I use customized cygwin.bat.

Václav Hasiman


Com MN PG P E B Consultant 3 wrote:
> I would like to have on my Windoze desktop an Icon for zsh running under
> 
> Cygwin, similar to the standard Cygwin Icon which runs a bash login
> shell,
> so that I can choose whether to get a window using bash or using zsh.
> 
> It works kind of, but I can't get zsh executed as login shell. The BAT
> file
> invoking the bash login shell calls bash using
> 
>   bash --login -i
> 
> but zsh has no equivalent to the --login option, so I just use
> 
>   zsh -i
> 
> which makes the shell interactive, but not login. Zsh considers itself a
> login
> shell iff it is called under a name starting with a dash.
> 
> Is there an elegant solution to this problem? Of course I could
> 
>   cp -- zsh -zsh
> 
> and call -zsh, but I would have then to redo this everytime I update zsh
> to a 
> newer version. Another possibility would be to execute a shell script
> using
> bash and in this script do an
> 
>   exec -a -zsh zsh -I
> 
> But maybe someone knows a better way to do this?
> 
> Ronald 



signature.asc
Description: OpenPGP digital signature


RE: zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
> What about editing /etc/passwd? Pesonally, I use customized 
> cygwin.bat.

How exactly would this work? After all, we are talking about Windows
Batch skripts,
don't we? And they are not aware of /etc/passwd. 

But maybe I didn't get your point. How do you suggest that I should
modify my /etc/passwd?

Ronald

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor

zzapper wrote:

On Mon, 24 Oct 2005 13:02:31 +0100,  wrote:



zzapper wrote:


On Mon, 24 Oct 2005 04:28:37 -0700,  wrote:

Whatever I try I get

/usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ 
Enterprise/sja.exe: No
such file or directory

But a ls is just dandy

ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
-rwx--+ 1 davidr None 1220608 Oct  5 09:45 /cygdrive/c/Program Files/SQLyog
Enterprise/sja.exe

Short Name method or a mount to a directory are also dandy



What happens when you run the program yourself, from a cygwin console?



$ /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe
SQLyog Job Agent Version 4.2
Copyright (c) Webyog Softworks Pvt. Ltd.. All Rights Reserved.

I'm affeared this is going to turn out to be something dumb!!




Please attach the script in question verbatim (ie don't edit it) so that 
we can have a look and see what's going on. :)
Obviously, if there are passwords, or server names, or ip address, you 
can mask those..

Just don't change the script itself.

Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem: find not traversing /cygdrive/X properly?

2005-10-24 Thread Chris Taylor

Kevin Autrey wrote:

Hi Chris -

I always put "." in the front of my path so that as I'm developing an 
app, I always pick up the devel version in my current working directory 
instead of /usr/local/bin.  I know it's not the most secure thing in the 
world, but I'm on a stand-alone, single-user system, so the security 
risks are manageable.


Fair enough. Just seemed odd (I didn't think for a moment it could cause 
the problem.. Just out of place).




Just to try something, I modified my path to only include "/usr/bin" - 
no difference:



tka-16:/cygdrive/p> set path = "/usr/bin"
tka-16:/cygdrive/p> which find
/usr/bin/find
tka-16:/cygdrive/p> find /cygdrive/c -iname win.ini
find: .: No such file or directory
find: /cygdrive/c/.backupSettings: No such file or directory
find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
find: /cygdrive/c/boot.ini: No such file or directory
find: /cygdrive/c/CONFIG.SYS: No such file or directory
find: /cygdrive/c/Documents and Settings: No such file or directory
find: /cygdrive/c/IO.SYS: No such file or directory
find: /cygdrive/c/Log.txt: No such file or directory
find: /cygdrive/c/MSDOS.SYS: No such file or directory
find: /cygdrive/c/NTDETECT.COM: No such file or directory
find: /cygdrive/c/ntldr: No such file or directory
find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
find: /cygdrive/c/Program Files: No such file or directory
find: /cygdrive/c/RECYCLER: No such file or directory
find: /cygdrive/c/System Volume Information: No such file or directory
find: /cygdrive/c/Temp: No such file or directory
find: /cygdrive/c/tomsteady.ini: No such file or directory
find: /cygdrive/c/WINDOWS: No such file or directory
find: /cygdrive/c/xPos.txt: No such file or directory




Per Eric's suggestion from last week, I did change my mount types to -b:


tka-16:/cygdrive/p> mount -m
mount -f -s -b "D:/CygWIN/bin" "/usr/bin"
mount -f -s -b "D:/CygWIN/lib" "/usr/lib"
mount -f -s -b "D:/CygWIN" "/"
mount -s -b --change-cygdrive-prefix "/cygdrive"


Could you paste the current output of mount ?



Very strange...


Indeed.
As I recall, you said you'd tried reinstalling cygwin..
Was this from the same source?
Actually.. Hrm..
*ponders*
I wonder if it's a permissions thing..
What user class do you run cygwin as, and what are your user/group 
permissions on C:, D: etc?



Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required - jraynersqlzip (0/1)

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 13:49:45 +0100,  wrote:


>> 
>
>Please attach the script in question verbatim (ie don't edit it) so that 
>we can have a look and see what's going on. :)
>Obviously, if there are passwords, or server names, or ip address, you 
>can mask those..
>Just don't change the script itself.
>
>Chris

see attached

I don't think the app sja.exe is significant

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required - jraynersqlzip (1/1)

2005-10-24 Thread zzapper

begin 644 jraynersqlzip
M(R$O8FEN+V)A<[EMAIL PROTECTED]"B,@:G)A>6YE7-Q;"!U&4@)RLE9"5B)7DG*0T*;',@+6P@)&1I6]G+W-J
M82YE>&4B#0IS:F%P6]G
M7"!%;G1E&4B#0IS:F%S8W)I<'0](F,Z+V-Y9W=I;B]U
M6YE6YEhttp://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: question about raw sockets

2005-10-24 Thread Fernando Barsoba



Corinna Vinschen wrote:


On Oct 23 20:25, Fernando Barsoba wrote:
 


Hi all,

I'm working with raw sockets and I get the following error: `IP_HDRINCL' 
undeclared (first use in this function)
   



This definition is missing up to 1.5.18 but has been added to Cygwin
in CVS already.  Try the latest snapshot from http://cygwin.com/snapshots/

Other than that, raw sockets are not officially supported, but it should
basically work.


Corinna

 

Thanks. Just another question.. where should I put these files? Could 
you reference me to a web page where I could find this information?


Thanks,

FBM


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem: find not traversing /cygdrive/X properly?

2005-10-24 Thread Kevin Autrey

Hi Chris -

At 07:54 10/24/2005  (Monday), you wrote:

Could you paste the current output of mount ?


Sure:


tka-16:/cygdrive/p> mount
D:\CygWIN\bin on /usr/bin type system (binmode)
D:\CygWIN\lib on /usr/lib type system (binmode)
D:\CygWIN on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
e: on /cygdrive/e type system (binmode,noumount)
i: on /cygdrive/i type system (binmode,noumount)
m: on /cygdrive/m type system (binmode,noumount)
p: on /cygdrive/p type system (binmode,noumount)
s: on /cygdrive/s type system (binmode,noumount)
v: on /cygdrive/v type system (binmode,noumount)
w: on /cygdrive/w type system (binmode,noumount)





Very strange...


Indeed.
As I recall, you said you'd tried reinstalling cygwin..
Was this from the same source?


Yes, http://planetmirror.com


Actually.. Hrm..
*ponders*
I wonder if it's a permissions thing..
What user class do you run cygwin as, and what are your user/group 
permissions on C:, D: etc?


I'm not sure exactly how to get the information that you're asking about 
here - but I'll give it a stab and if it's not right, then please reply 
with the commands you're interested in:



tka-16:/cygdrive/p> id
uid=1003(Administrator) gid=513(None) 
groups=0(root),513(None),544(Administrators),545(Users),1004(Debugger Users)



tka-16:/cygdrive/p> ls -lga /cygdrive/c
total 303
drwxrwxr-x+  9 SYSTEM  0 Oct 23 11:00 .
dr-xr-xr-x  17 root0 Dec 31  1969 ..
-rwx--+  1 None   12 Jul  6 22:28 .backupSettings
-rwxrwx---+  1 SYSTEM  0 Aug 22 08:29 AUTOEXEC.BAT
-rwxrwx---+  1 SYSTEM  0 Aug 22 08:29 CONFIG.SYS
drwxrwxr-x+  8 SYSTEM  0 Sep 23 14:26 Documents and Settings
-r-xr-x---+  1 SYSTEM  0 Aug 22 08:29 IO.SYS
-rwx--+  1 None0 Oct 24 06:13 Log.txt
-r-xr-x---+  1 SYSTEM  0 Aug 22 08:29 MSDOS.SYS
-r-xr-x---+  1 SYSTEM  47564 Aug 22 08:41 NTDETECT.COM
drwxrwxrwt+  5 SYSTEM  0 Aug 23 21:55 PRIOR_SYSTEM
dr-xr-x---+ 21 SYSTEM  0 Aug 22 09:04 Program Files
drwx--+  3 None0 Aug 23 11:47 RECYCLER
d---rwx---+  2 SYSTEM  0 Oct 24 02:11 System Volume Information
drwxrwxrwt+  3 SYSTEM  0 Oct  1 14:15 Temp
drwxrwx---+ 90 SYSTEM  0 Oct 23 12:09 WINDOWS
-rwxrwx---+  1 SYSTEM211 Aug 22 08:48 boot.ini
-r-xr-x---+  1 SYSTEM 250032 Aug 22 08:41 ntldr
-rwx--+  1 None  138 Oct 24 06:11 tomsteady.ini
-rwx--+  1 None 2591 Oct 15 13:54 xPos.txt



tka-16:/cygdrive/p> ls -lga /cygdrive/d
total 2304
drwxrwxr-x+ 117 SYSTEM   0 Oct 24 06:14 .
dr-xr-xr-x   17 root 0 Dec 31  1969 ..
drwxrwx---+   6 SYSTEM   0 Aug 23 15:00 Acrobat
drwx--+   4 None 0 Aug 23 15:01 Adobe
drwxrwx---+  14 SYSTEM   0 Oct 23 10:59 Apache2
drwxrwx---+   6 SYSTEM   0 Oct 16 13:48 Backup MyPC
drwx--+   5 None 0 Oct 24 06:13 CIDMan
drwxrwx---+   5 SYSTEM   0 Sep 23 08:56 Canon
drwx--+   5 None 0 Oct 24 06:15 ClipMate
drwxrwx---+   2 SYSTEM   0 Oct 23 10:56 Config.Msi
drwx--+   6 None 0 Aug 23 07:32 Creative
drwxrwx---+   9 Users0 Oct 23 13:38 CygWIN


...


tka-16:/cygdrive/p> cd /cygdrive/d/cygwin
tka-16:/cygdrive/d/cygwin> ls -lga
total 9
drwxrwx---+   9 Users 0 Oct 23 13:38 .
drwxrwxr-x+ 117 SYSTEM0 Oct 24 06:14 ..
drwxrwx---+   2 Users 0 Oct 23 13:36 bin
-rwxr-x---+   1 Users57 Oct 23 13:37 cygwin.bat
-rwxr-x---+   1 Users  7022 Oct 23 13:37 cygwin.ico
drwxrwx---+  10 Users 0 Oct 23 13:58 etc
drwxrwxrwx+   3 None  0 Oct 23 22:10 home
drwxrwx---+  20 Users 0 Oct 23 13:36 lib
drwxrwxrwt+   2 Users 0 Oct 24 04:30 tmp
drwxrwx---+  15 Users 0 Oct 23 13:36 usr
drwxrwx---+   9 Users 0 Oct 23 13:37 var




Regards,
Kevin



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required - jraynersqlzip (1/1)

2005-10-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to zzapper on 10/24/2005 6:56 AM:
Please convince your mailer to send text files with a text mime-type, not
application/octet-stream.  Reposting here for convenience:

#!/bin/bash
# jraynersqlzip
# description : backup Mysql using sja.exe
# date 21Mar05
# v1.0
dirbackup="c:/backup/farms/"
eval filedate=$(date.exe '+%d%b%y')
ls -l $dirbackup/jraynerscheduled.sql

sjaprog="/sqlyog/sja.exe"
sjaprog="c:/progra~1/SqlYog~2/sja.exe"
sjaprog="/cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe"
sjascript="c:/cygwin/usr/local/bin/sql/jrayner.xml"
"$sjaprog" "$sjascript"

ls -l $dirbackup/
cp $dirbackup/jraynerscheduled.sql $dirbackup/jrayner$filedate.sql
ls -l $dirbackup/jrayner$filedate.sql


Here's your problem.  foo="a\ b" puts 4 characters into $foo.  On the
other hand, foo=a\ b puts 3 characters into $foo.  Also, foo='a b' puts 3
characterse into $foo.  Until you have the correct contents in $sjaprog,
then invoking "$sjaprog" will fail.  If you really want 4 characters in
$foo, then you need an eval to reparse the expansion.  Learn how to
properly use shell quotes - it will save you loads of headaches.

$ echo 'echo hi' > ./a\ b
$ foo="./a\ b"
$ eval $foo
hi
$ foo="./a b"
$ "$foo"
hi

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
volunteer cygwin bash maintainer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDXN9O84KuGfSFAYARAvSwAJ9VgsC6fUihjopWAfxrhMNCCQorywCfWLgA
c3VTtJ7wFwRJp1v9rfja1xg=
=3L9s
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: VIM - Vi IMproved 6.4 (2005 Oct 15, compiled Oct 17 2005 11:54:34

2005-10-24 Thread Corinna Vinschen
On Oct 20 14:16, Shankar Unni wrote:
> Christopher Faylor wrote:
> >On Thu, Oct 20, 2005 at 04:15:34PM +0200, Christoph Jeksa wrote:
> 
> >>Supposed, you have a file X.sh ( exactly in this spelling ).  If you
> >>enter:
> >>
> >>vim x.sh ( also exactly in this spelling )
> >>
> >>and write it back after any modification, the file will be renamed even
> >>to x.sh.  
> 
> >This isn't a vim problem.  Windows filename handling is case-insensitive.
> 
> But I think it's worth mentioning that 6.3 doesn't do this (change the 
> case of the name when writing back). It overwrites the old file when 
> writing back, thus preserving its case.

No, it doesn't.  I just tried it in 6.3 and this behaviour is the same
as in 6.4.  There is special code in the native Windows port which tests
explicitely for the case of the filename, but that's not in the UNIX
code which is used for Cygwin.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: question about raw sockets

2005-10-24 Thread Corinna Vinschen
On Oct 24 09:05, Fernando Barsoba wrote:
> Corinna Vinschen wrote:
> >On Oct 23 20:25, Fernando Barsoba wrote:
> >>I'm working with raw sockets and I get the following error: `IP_HDRINCL' 
> >>undeclared (first use in this function)
> >
> >This definition is missing up to 1.5.18 but has been added to Cygwin
> >in CVS already.  Try the latest snapshot from http://cygwin.com/snapshots/
> >
> >Other than that, raw sockets are not officially supported, but it should
> >basically work.
> >
> Thanks. Just another question.. where should I put these files? Could 
> you reference me to a web page where I could find this information?

Er... isn't that pretty self-evident?  You should just be prepared to use
setup to revert to 1.5.18 if something doesn't work as expected.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Corinna Vinschen
On Oct 24 14:49, Com MN PG P E B Consultant 3 wrote:
> > What about editing /etc/passwd? Pesonally, I use customized 
> > cygwin.bat.
> 
> How exactly would this work? After all, we are talking about Windows
> Batch skripts,
> don't we? And they are not aware of /etc/passwd. 
> 
> But maybe I didn't get your point. How do you suggest that I should
> modify my /etc/passwd?

Using an editor?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Scalability problem with Pthread Read/Write Locks

2005-10-24 Thread Corinna Vinschen
On Oct 23 05:45, Johan De Taeye wrote:
> 
> My multi-threaded application is creating a lot of
> pthread_rwlock objects to protect access to my objects.
> I am noticing that this doesn't scale up well. As the number
> of active objects being created/changed/deleted increases
> into the thousands, the runtime performance degrades very
> badly.
> 
> When investigating the problem I noticed from the source code
> in the files winsup/cygwin/thread.h and
> winsup/cygwin/thread.cc that a static double-linked list
> (called rwlocks) is used to keep track of all rwlocks present
> in the process. Removal of an element in the list is O(n) and
> explains the behavior of my application.
> 
> When compiling under Linux no such scalability problems are
> found. (I believe the pthreads implementation there doesn't
> need to  keep track of the active rwlocks)
> 
> Finally the question: Could/should the =list= data structure
> be replaced with a =set= to provide better scalability?

Maybe, but http://cygwin.com/acronyms/#SHTDI.  A patch which optimizes
cases like this are always thoughtfully considered.  If you're willing
to help, have a look on http://cygwin.com/contrib.html.  However, I'd
think we shouldn't change this for the upcoming 1.5.19 release which
already contains a lot more changes than we had in mind once.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Chris Taylor

Corinna Vinschen wrote:

On Oct 24 14:49, Com MN PG P E B Consultant 3 wrote:

What about editing /etc/passwd? Pesonally, I use customized 
cygwin.bat.


How exactly would this work? After all, we are talking about Windows
Batch skripts,
don't we? And they are not aware of /etc/passwd. 


But maybe I didn't get your point. How do you suggest that I should
modify my /etc/passwd?



Using an editor?


Corinna



I think he means what modifications should he make..

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread Brian Dessent
zzapper wrote:

> /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ 
> Enterprise/sja.exe: No
> such file or directory
> 
> But a ls is just dandy

There's double quoting now.  My email wasn't quite correct, use one or
the other but not both:

foo=/path\ with\ spaces

or

foo="/path with spaces"

and then when you want to use $foo as a single word, use double quotes,
as in:

"$foo" arg1 arg2

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwins setup hangs in installation: Conflict with software FRITZ!DSL Startcenter

2005-10-24 Thread Norbert Harendt
Dave Korn  artimi.com> writes:

>   Report a bug in FRITZ!DSL to avm.de and offer to test the patch for them?
> Cygwin doesn't do anything in the least unusual with sockets, so if their
> LSP breaks cygwin, it must be that cygwin is exposing a bug in their code.
> 
> cheers,
>   DaveK

Thanks for your suggestion. I just try, how AVM reacts upon the information 
about their bug.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



df reports negative value and cygcheck is OK

2005-10-24 Thread bill test
$ df -l -h
FilesystemSize  Used Avail Use% Mounted on
D:\cygwin\bin  11G  1.6G  8.6G  16% /usr/bin
D:\cygwin\lib  11G  1.6G  8.6G  16% /usr/lib
D:\cygwin  11G  1.6G  8.6G  16% /
c:4.0G  2.6G  1.5G  65%
/cygdrive/c
d: 11G  1.6G  8.6G  16%
/cygdrive/d
f:300M  -64Z  300M 101%
/cygdrive/f

$ cygcheck -s -r

Cygwin Configuration Diagnostics
Current System Time: Mon Oct 24 16:31:36 2005

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Running in Terminal Service session

Path:   D:\cygwin\usr\local\bin
D:\cygwin\bin
D:\cygwin\bin
D:\cygwin\usr\X11R6\bin
c:\Program Files\VERITAS\NetBackup\bin\
c:\Program Files\Fichiers communs\VERITAS
Shared
c:\PROGRA~1\VERITAS\NetBackup\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
d:\aenix\bin
c:\WINNT\System32\Citrix\IMA
c:\WINNT\System32\Citrix\IMA\SubSystems
c:\Program Files\Intel\DMIX

Output from D:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrateur)   GID:
512(mkgroup)
0(root)513(Utilisa. du
domaine)
551(OpÚrateurs de sauvegarde) 
545(Utilisateurs)
554(AccÞs compatible Pre-Windows 2000)
544(Administrateurs)
10545(mkgroup_l_d) 512(mkgroup)

Output from D:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrateur)   GID:
512(mkgroup)
0(root)513(Utilisa. du
domaine)
551(OpÚrateurs de sauvegarde) 
545(Utilisateurs)
554(AccÞs compatible Pre-Windows 2000)
544(Administrateurs)
10545(mkgroup_l_d) 512(mkgroup)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

USER = `Administrateur'
PWD = `/bin'
HOME = `/home/Administrateur'
MAKE_MODE = `unix'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/
  (default) = `D:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `D:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `D:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\Program Options

a:  netN/AN/A
c:  hd  NTFS  4094Mb  65% CP CS UN PA FC
SYSTEM
d:  hd  NTFS 10346Mb  16% CP CS UN PA FC ADMIN
e:  cd N/AN/A
f:  hd  NTFS   300Mb   0% CP CS UN PA FC Users
p:  net NTFS 69397Mb  85% CP CS UN PA FC Users
r:  net NTFS 69397Mb  85% CP CS UN PA FC Users
s:  hd  NTFS  2557Mb  81% CP CS UN PA FC SWAP
t:  net FAT   2151Mb   6% CP
u:  netN/AN/A
v:  net FAT   2693Mb  96% CP

D:\cygwin  /  system  binmode
D:\cygwin/bin  /usr/bin   system  binmode
D:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: D:\cygwin\bin\awk.exe
Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: D:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: D:\cygwin\bin\grep.exe
Not Found: ld
Found: D:\cygwin\bin\ls.exe
Not Found: make
Found: D:\cygwin\bin\mv.exe
Found: D:\cygwin\bin\rm.exe
Found: D:\cygwin\bin\sed.exe
Found: D:\cygwin\bin\sh.exe
Found: D:\cygwin\bin\tar.exe

   56k 2005/07/09 D:\cygwin\bin\cygbz2-1.dll
   18k 2004/07/06 D:\cygwin\bin\cygcharset-1.dll
7k 2003/10/19 D:\cygwin\bin\cygcrypt-0.dll
  895k 2004/04/28 D:\cygwin\bin\cygdb-4.2.dll
  965k 2005/05/14 D:\cygwin\bin\cygdb-4.3.dll
 1156k 2004/04/28 D:\cygwin\bin\cygdb_cxx-4.2.dll
 1240k 2005/05/14 D:\cygwin\bin\cygdb_cxx-4.3.dll
  174k 2004/10/14 D:\cygwin\bin\cygexpat-0.dll
   40k 2005/09/29 D:\cygwin\bin\cygform-8.dll
   45k 2001/04/25 D:\cygwin\bin\cygform5.dll
   35k 2002/01/09 D:\cygwin\bin\cygform6.dll
   48k 2003/08/09 D:\cygwin\bin\cygform7.dll
   28k 2003/07/20 D:\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 D:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 D:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 D:\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 D:\cygwin\bin\cyggdbm_compat-4.dll
   17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 D:\cygwin\bin\cyghistory5.dll
   24k 2005/07/29 D:\cygwin\bin\cyghistory6.dll
  991k 2004/07/06 D:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 D:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 D:\cygwin\bin\cygintl-2.dll
   54k 2004/07/06 D:\cygwin\bin\cygintl-3.dll
   21k 2001/06/20 D:\cygwin\bin\cygintl.dll
   68k 2005/09/07 D:

overlapping windows in cygwin

2005-10-24 Thread Fabrizio Salvatore

Hi,

I've just installed the latest version of cygwin, that I use to connect 
from my WindowsXP laptop to our linux farms at the university. I run 
startxwin.bat (as a shortcut from my desktop) and, from the cygwin 
terminal window I then jump to wherever I need to. My startxwin.bat is 
the default one that comes with the cygwin installation:


SET CYGWIN_ROOT=\cygwin

SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix

run XWin -multiwindow -clipboard -silent-dup-error

run xterm -fn 6x13 -g 140x24 -si -sk -sb -fg black -bg Wheat -T "cygwin 
terminal Window" -e /usr/bin/tcsh -l


I'm simply using Windows as my window manager (not running twm or fvwm 
or anything like that); when I have several windows, I would like to 
focus on each one of them (and so activate them) by just pointing my 
mouse to the window, instead of clicking on them. Does anyone know if it 
is possible (and in case how to do it) ?


I also noticed that for some graphical programs (like PAW, for example, 
the physics analysis workstatio developed at CERN), when an xterm window 
is overlapped to the graphics window, the part of the plot that is 
covered by the xterm is cancelled and when I focus back to the graphic 
window (by clicking on it) my plot is partially deleted. Any idea why 
this happens ?


Many thanks for any help/suggestion !


Fab

--
#
Dr P-Fabrizio Salvatore| Department of Physics
Phone: +44 (0)1784 44 3479 | Royal Holloway College
Fax: +44 (0)1784 47 2794   | University of London
e-mail: [EMAIL PROTECTED] | Egham, Surrey, TW20 0EX
http://www.pp.rhul.ac.uk/~salvator | United Kingdom (UK)
#

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: textmount/binmount issue

2005-10-24 Thread Igor Pechtchanski
On Fri, 21 Oct 2005, Lemke, Michael  IZ/HZA-IOM wrote:

> This is my current mount table:
>
>  pc00626> mount -m
> mount -f -s -b "c:/MyStuff/cygwin/bin" "/usr/bin"
> mount -f -s -b "c:/MyStuff/cygwin/lib" "/usr/lib"
> mount -f -s -b "c:/MyStuff/cygwin" "/"
> mount -f -s -t -E "u:" "/u"
> mount -s -b --change-cygdrive-prefix "/"
>
> Note that /u is mounted textmode while the rest is binary.  However,
> if I access files on /u they are binmode as well.  But when I
> change the mode of the drive prefix to text then /u is also text.
> Seems like prefix is overwriting the explicit setting for /u.  If
> the drive prefix is something else but /u is still there then /u
> is not affected by the prefix settings.  Is this intended behavior?

Looks like the cygdrive prefix takes precedence over explicit mounts.
This is arguably a bug.  .
Corinna or Chris, care to comment?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: overlapping windows in cygwin

2005-10-24 Thread Christopher Faylor
On Mon, Oct 24, 2005 at 04:01:36PM +0100, Fabrizio Salvatore wrote:
>I've just installed the latest version of cygwin, that I use to connect 
>from my WindowsXP laptop to our linux farms at the university. I run 
>startxwin.bat (as a shortcut from my desktop) and, from the cygwin 
>terminal window I then jump to wherever I need to. My startxwin.bat is 
>the default one that comes with the cygwin installation:
>
>Many thanks for any help/suggestion !

Please use the cygwin-xfree mailing list for X-related questions.

See: http://cygwin.com/lists.html for information about cygwin mailing
lists.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: intercepting serial comms

2005-10-24 Thread Igor Pechtchanski
On Sun, 23 Oct 2005, tns1 wrote:

> tns1 wrote:
>
> > Is is possible to redirect the serial comms of a program after it has
> > already launched and opened /dev/com1?
>
> If not, is it possible to create virtual serial ports under cygwin? To
> do this under linux I believe you need to add a kernel module.

To do this under Cygwin also requires adding a kernel module -- which
makes sense once you realize that the Cygwin kernel is essentially Windows
(plus cygwin1.dll).  If you add a virtual serial port under Windows (see
MSDN for instructions), Cygwin should be able to use it.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Error creating files in /tmp

2005-10-24 Thread Igor Pechtchanski
On Sun, 23 Oct 2005, Alastair Burnett wrote:

> Hi,
>
> I have an 'interesting' problem - we have some software tools which
> require cygwin. For various reasons, we can't install cygwin on a local
> machine - all that the tools require is the cygwin1.dll and bash.exe, in
> theory at least.
>
> The tools and cygwin dependancies are all running from a mapped network
> drive - say f:\tools\bin.
>
> Now, when I run the tools from another mapped drive - say a g: drive, I
> initially got the error about not being able to find a /tmp directory,
> so I simply did 'mkdir /tmp' and got past this. However, now the tools
> bail out because it can't create a file in /tmp - which is the problem
> I'm having. Anyone got any idea how to get round this - as I mention, we
> can't do a full install of cygwin on the local machine, which would
> solve the problem quite easily.
>
> If I start a bash shell (i.e. from f:\tools\bin) then I'm able to create
> files without any problem - so I'm not sure why I get this error when
> using the tools I'm working with ...

As Brian pointed out, you don't have a mount table.  AFAIK, for Windows to
be usable at all, at least the user registry should be writeable, so
nothing prevents you from adding user mounts.  Try

mount -u -b f:/tools /
mount -u -b f:/tools/bin /usr/bin
mount -u -b f:/tools/lib /usr/lib
mount -u -b c:/temp /tmp

(the first three are needed for Cygwin to function properly, the last one
can be changed to point to a local directory that you have write access
to, unless you want a shared /tmp).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: df reports negative value and cygcheck is OK

2005-10-24 Thread Corinna Vinschen
On Oct 24 07:49, bill test wrote:
> $ df -l -h
> FilesystemSize  Used Avail Use% Mounted on
> D:\cygwin\bin  11G  1.6G  8.6G  16% /usr/bin
> D:\cygwin\lib  11G  1.6G  8.6G  16% /usr/lib
> D:\cygwin  11G  1.6G  8.6G  16% /
> c:4.0G  2.6G  1.5G  65%
> /cygdrive/c
> d: 11G  1.6G  8.6G  16%
> /cygdrive/d
> f:300M  -64Z  300M 101%
> /cygdrive/f

Looks like you have quotas in place...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Igor Pechtchanski
On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:

> I would like to have on my Windoze desktop an Icon for zsh running under
> Cygwin...
> [snip]
> Zsh considers itself a login shell iff it is called under a name
> starting with a dash.
> [snip]
> Another possibility would be to execute a shell script using bash and in
> this script do an
>
>   exec -a -zsh zsh -I
>
> But maybe someone knows a better way to do this?

The latter sounds like the best solution.  You could do it directly from
the batch file by using

bash -c 'exec -l /usr/bin/zsh -i'

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Thorsten Kampe
* Com MN PG P E B Consultant 3 (2005-10-24 11:11 +0100)
> I would like to have on my Windoze desktop an Icon for zsh running under
> 
> Cygwin, similar to the standard Cygwin Icon which runs a bash login
> shell,
> so that I can choose whether to get a window using bash or using zsh.

mkzsh
 
> It works kind of, but I can't get zsh executed as login shell. The BAT
> file
> invoking the bash login shell calls bash using
> 
>   bash --login -i
> 
> but zsh has no equivalent to the --login option, so I just use
> 
>   zsh -i

Please, start making sense:
zsh --help | grep -- --login
 

> But maybe someone knows a better way to do this?

Start reading the fine zsh manual *now*, please


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cron Problems with Cygwin

2005-10-24 Thread CWS Informatics [Sas]
I am not sure what else you want based on reporting guidelines. I
attached the cygcheck file though.

As for what I am trying to do: 

We have a bunch of old Unix scripts and software that we need to keep
running for awhile. 
These need to run every x minutes for y range of hours during the day.
The scripts and software produce the results we are looking when run
from the command line in Cygwin. 

There is nothing but "Cron Started []" in the cron log.

Thank you.


-Original Message-
From: Larry Hall (Cygwin) [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 23, 2005 4:39 PM
To: CWS Informatics [Sas]
Cc: cygwin@cygwin.com
Subject: Re: Cron Problems with Cygwin


CWS Informatics [Sas] wrote:
> I am having trouble getting the cron to run properly under Windows 
> 2000 and XP with cygwin.
> 
> I have searched through several threads on the mailing list, including

> these most relevant ones: The solutions did not overly work, although 
> they did help me progress a little bit.
> 
> http://www.cygwin.com/ml/cygwin/2001-12/msg01123.html
> http://www.mail-archive.com/cygwin@cygwin.com/msg29278.html
> http://www.cygwin.com/ml/cygwin/2003-09/msg01855.html
> http://www.cygwin.com/ml/cygwin/2003-09/msg00803.html
> 
> The service appears to install and start with no problems. The crontab

> files are correct and the cron service is running my tasks as I had 
> set them. For example, I have a task set to run eveyr 5 minutes, and I

> see an event in the event viewer every 5 minutes saying "CMD 
> (/home/test/test)" as part of it; this is indeed the what I was trying

> to run every 5 minutes (just a test). However, nothing happens. The 
> command is supposed to be a script that does a bunch of other stuff 
> (for testing it simply append echoes the time to a file), but it never

> happens. If I run the script just from the command line it works fine.
> 
> The events are running as SYSTEM at least the event viewer shows them 
> as SYSTEM. All associated cron files are owned by system.
> I have tried changing the permissions and modes of some of the files
as
> mentioned in the above threads - no difference.
> 
> The full text of the event log entry for the task being run is: The 
> description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be 
> found. The local computer may not have the necessary registry 
> information or message DLL files to display messages from a remote 
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this

> description; see Help and Support for details. The following 
> information is part of the event: /usr/sbin/cron : PID 3816 : (scoop) 
> CMD (/home/test/test).
> 
> I would appreciate any insight into what may or may not be working.


Please read and follow the problem reporting guidelines found at:

> Problem reports:   http://cygwin.com/problems.html

Configuration information and details of what you're doing would also be
helpful.

You may find more info in '/var/log/cron'.

-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746


cygcheck.out
Description: cygcheck.out
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: zsh as login shell

2005-10-24 Thread Thorsten Kampe
Urgh, /top-posting/,

* Václav Haisman (2005-10-24 13:35 +0100)
> What about editing /etc/passwd?

That's only used for remote logins (ssh, etc.)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Thorsten Kampe
* Com MN PG P E B Consultant 3 (2005-10-24 13:49 +0100)
>> What about editing /etc/passwd? Pesonally, I use customized 
>> cygwin.bat.
> 
> How exactly would this work? After all, we are talking about Windows
> Batch skripts,
> don't we? And they are not aware of /etc/passwd. 
> 
> But maybe I didn't get your point. How do you suggest that I should
> modify my /etc/passwd?

Why don't you try it, consultant?! There's actually just a single
entry referring to a shell.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



read -u how to

2005-10-24 Thread cygwin . 20 . maillinglist
Hi folks 

I have the problem that I like to use read -u to read from file. 
The following script was stored under $HOME/bin/h 
--
#!/bin/bash
set -xv
ls -l $HOME/bin/h
3<$HOME/bin/h

while read -u 3 
do
  echo $REPLY
done
--
The output of a run is 

--
ls -l $HOME/bin/h
 3:  ls -l /cygdrive/c/home/bin/h
-rwx--+ 1 F.Braunbeck Domänen-Benutzer 101 Oct 24 17:52 
/cygdrive/c/home/bin/h
3<$HOME/bin/h

while read -u 3
do
  echo $REPLY
done
 6:  read -u 3
/cygdrive/c/home/bin/h: line 6: read: 3: invalid file descriptor: Bad file 
descriptor
-

How can I get it work so that no "Bad file descriptor" error comes out

IMPORTANT
I will read replies only from the mailing list. 
If you send me email directly it will be deleted.

Regards 

Franz


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Help Required

2005-10-24 Thread Robb, Sam
> Hello,
> 
> http://cygwin.mirrors.pair.com/jffs2/mkfs.jffs2  appears to 
> be a Linux executable.

Actually, it doesn't appear to be anything at all:

  $ wget http://cygwin.mirrors.pair.com/jffs2/mkfs.jffs2 
  --12:16:28--  http://cygwin.mirrors.pair.com/jffs2/mkfs.jffs2
 => `mkfs.jffs2'
  Resolving cygwin.mirrors.pair.com... 216.92.2.149
  Connecting to cygwin.mirrors.pair.com|216.92.2.149|:80... connected.
  HTTP request sent, awaiting response... 404 Not Found
  12:16:28 ERROR 404: Not Found.

> Is there a version for cygwin that runs on a Windows platform?
>   Thanks in advance for any help .

It is available as part of the normal cygwin distribution.
You can get instructions for installing cygwin at:

  http://cygwin.com/cygwin-ug-net/setup-net.html

During the installation process, you will want to make sure that
you select the "mtd" package for installation.  This package is
part of the "Devel" category.  Once you have cygwin and the mtd
package installed, you should be able to use mkfs.jffs2.

-Samrobb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: read -u how to

2005-10-24 Thread Igor Pechtchanski
On Mon, 24 Oct 2005, cygwin.20.maillinglist wrote:

> Hi folks
>
> I have the problem that I like to use read -u to read from file.
> The following script was stored under $HOME/bin/h
> --
> #!/bin/bash
> set -xv
> ls -l $HOME/bin/h
> 3<$HOME/bin/h
>
> while read -u 3
> do
>   echo $REPLY
> done
> --
> The output of a run is
>
> --
> ls -l $HOME/bin/h
>  3:  ls -l /cygdrive/c/home/bin/h
> -rwx--+ 1 F.Braunbeck Domänen-Benutzer 101 Oct 24 17:52 
> /cygdrive/c/home/bin/h
> 3<$HOME/bin/h
>
> while read -u 3
> do
>   echo $REPLY
> done
>  6:  read -u 3
> /cygdrive/c/home/bin/h: line 6: read: 3: invalid file descriptor: Bad file 
> descriptor
> -
>
> How can I get it work so that no "Bad file descriptor" error comes out

Read the bash man page on input redirection.  This is not how you redirect
input in the current bash process.  Using

exec 3<"$HOME/bin/h"
while read -u 3; do echo $REPLY; done

works just fine for me.  Note that you may want to quote $HOME...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: Subversion client & text mounts

2005-10-24 Thread Arend-Jan Westhoff
At 11:27 2005-10-24 +0200, Joerg Schaible wrote:
>Hello Subversion maintainer,
>
>the subversion client does unfortunately not respect text mounts. Checking =
>out form a remote repository all text files have unix line endings although=
> they have the property svn:eol-style set to native. This is a major hassle=
> in a build environment where also a lot of non-Cygwin tools have to be use=
>d.
>
>- J=F6rg

Hello Joerg,

Am not the Subversion maintainer, but have some possible workarounds:

1. Use the native Windows subversion. (I do.)

2. Use u2d (d2u).

HTH
Arend-Jan Westhoff.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Thorsten Kampe
* Igor Pechtchanski (2005-10-24 16:36 +0100)
> On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:
>> I would like to have on my Windoze desktop an Icon for zsh running under
>> Cygwin...
>> [snip]
>> Zsh considers itself a login shell iff it is called under a name
>> starting with a dash.
>> [snip]
>> Another possibility would be to execute a shell script using bash and in
>> this script do an
>>
>>   exec -a -zsh zsh -I
>>
>> But maybe someone knows a better way to do this?
> 
> The latter sounds like the best solution.  You could do it directly from
> the batch file by using
> 
> bash -c 'exec -l /usr/bin/zsh -i'

zsh perfectly knows -l/--login. It's the "-i" that's not needed


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Igor Pechtchanski
On Mon, 24 Oct 2005, Thorsten Kampe wrote:

> * Igor Pechtchanski (2005-10-24 16:36 +0100)
> > On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:
> >> I would like to have on my Windoze desktop an Icon for zsh running under
> >> Cygwin...
> >> [snip]
> >> Zsh considers itself a login shell iff it is called under a name
> >> starting with a dash.
> >> [snip]
> >> Another possibility would be to execute a shell script using bash and in
> >> this script do an
> >>
> >>   exec -a -zsh zsh -I
> >>
> >> But maybe someone knows a better way to do this?
> >
> > The latter sounds like the best solution.  You could do it directly from
> > the batch file by using
> >
> > bash -c 'exec -l /usr/bin/zsh -i'
>
> zsh perfectly knows -l/--login. It's the "-i" that's not needed

Thanks for the clarification, Thorsten.  As I don't know anything about
using zsh, I was suggesting a way of modifying cygwin.bat appropriately.

The above method could be used for shells that don't understand --login
(e.g., ash) or those where using the --login flag is inconvenient (e.g.,
when you want to pass more options to a tcsh login shell).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



cygwin-setup & rebaseall

2005-10-24 Thread Satish Balay

I don't see any FAQ regarding rebaseall - hence this post.

It appears that rebaseall is required ocassionally to get cygwin [esp
python] working. [having been bitten by this a few times,] Each time I
do any cygwin updates - I make sure I run 'rebaseall' before doing
anything else.

Q: Does cygwin setup run rebaseall either during initial install or
during subsequent updates? [guessing no]

Q: Is it safe to say: 'if cygwin is installed from scratch - rebaseall
is not required'

[for our tools] cygwin/python is a pre-requisite - and our users
appear to stumble across this issue regularly. And asking users to
always run rebaseall is an extra hurdle]

Thanks,
Satish

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: textmount/binmount issue

2005-10-24 Thread Yitzchak Scott-Thoennes
On Mon, Oct 24, 2005 at 11:05:13AM -0400, Igor Pechtchanski wrote:
> On Fri, 21 Oct 2005, Lemke, Michael  IZ/HZA-IOM wrote:
> 
> > This is my current mount table:
> >
> >  pc00626> mount -m
> > mount -f -s -b "c:/MyStuff/cygwin/bin" "/usr/bin"
> > mount -f -s -b "c:/MyStuff/cygwin/lib" "/usr/lib"
> > mount -f -s -b "c:/MyStuff/cygwin" "/"
> > mount -f -s -t -E "u:" "/u"
> > mount -s -b --change-cygdrive-prefix "/"
> >
> > Note that /u is mounted textmode while the rest is binary.  However,
> > if I access files on /u they are binmode as well.  But when I
> > change the mode of the drive prefix to text then /u is also text.
> > Seems like prefix is overwriting the explicit setting for /u.  If
> > the drive prefix is something else but /u is still there then /u
> > is not affected by the prefix settings.  Is this intended behavior?
> 
> Looks like the cygdrive prefix takes precedence over explicit mounts.
> This is arguably a bug.  .
> Corinna or Chris, care to comment?

My name doesn't start with C, but I will comment that if the precedence
went the other way, a mount like:

  mount c:/foo /cygdrive/d

would make a windows path d:\bar have no posix translation.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: overlapping windows in cygwin

2005-10-24 Thread Angelo Graziosi


Fabrizio Salvatore wrote:

> I also noticed that for some graphical programs (like PAW, for
> example, the physics analysis workstatio developed at CERN), when an
> xterm window is overlapped to the graphics window, the part of the
> plot that is covered by the xterm is cancelled and when I focus back
> to the graphic window (by clicking on it) my plot is partially
> deleted. Any idea why this happens ?

You should add the option '+bs' when starting XWin, i.e.:

 run XWin -multiwindow -clipboard -silent-dup-error +bs

(This results from PAW-All-FAQ)

Best regards,

   angelo.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: zsh as login shell

2005-10-24 Thread Peter A. Castro

On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:

Greetings, Ronald,


I would like to have on my Windoze desktop an Icon for zsh running under

Cygwin, similar to the standard Cygwin Icon which runs a bash login
shell, so that I can choose whether to get a window using bash or using
zsh.


Use mkzsh to do this.  For help, type 'mkzsh --help'

eg:

mkzsh --desktop


It works kind of, but I can't get zsh executed as login shell. The BAT
file invoking the bash login shell calls bash using

 bash --login -i


See the '-l' option of zsh in the manpages.

eg:

zsh -l


but zsh has no equivalent to the --login option, so I just use

 zsh -i

which makes the shell interactive, but not login. Zsh considers itself a
login
shell iff it is called under a name starting with a dash.

Is there an elegant solution to this problem? Of course I could

 cp -- zsh -zsh

and call -zsh, but I would have then to redo this everytime I update zsh
to a
newer version. Another possibility would be to execute a shell script
using
bash and in this script do an

 exec -a -zsh zsh -I

But maybe someone knows a better way to do this?

Ronald
--
Ronald Fischer <[EMAIL PROTECTED]>


--
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: textmount/binmount issue

2005-10-24 Thread Igor Pechtchanski
On Mon, 24 Oct 2005, Yitzchak Scott-Thoennes wrote:

> On Mon, Oct 24, 2005 at 11:05:13AM -0400, Igor Pechtchanski wrote:
> > On Fri, 21 Oct 2005, Lemke, Michael  IZ/HZA-IOM wrote:
> >
> > > This is my current mount table:
> > >
> > >  pc00626> mount -m
> > > mount -f -s -b "c:/MyStuff/cygwin/bin" "/usr/bin"
> > > mount -f -s -b "c:/MyStuff/cygwin/lib" "/usr/lib"
> > > mount -f -s -b "c:/MyStuff/cygwin" "/"
> > > mount -f -s -t -E "u:" "/u"
> > > mount -s -b --change-cygdrive-prefix "/"
> > >
> > > Note that /u is mounted textmode while the rest is binary.  However,
> > > if I access files on /u they are binmode as well.  But when I
> > > change the mode of the drive prefix to text then /u is also text.
> > > Seems like prefix is overwriting the explicit setting for /u.  If
> > > the drive prefix is something else but /u is still there then /u
> > > is not affected by the prefix settings.  Is this intended behavior?
> >
> > Looks like the cygdrive prefix takes precedence over explicit mounts.
> > This is arguably a bug.  .
> > Corinna or Chris, care to comment?
>
> My name doesn't start with C, but I will comment that if the precedence
> went the other way, a mount like:
>
>   mount c:/foo /cygdrive/d
>
> would make a windows path d:\bar have no posix translation.

How is this different from

mount c:/baz /somemount
mount c:/foo /somemount/d

(except for the fact that /cygdrive/d is an automount)?  I'm actually not
sure what's meant by "posix translation" in this context...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Sat, 22 Oct 2005 20:46:04 +0100,  wrote:

>Hi
>
>$ cygpath -d c:/Program\ Files/Internet\ Explorer
>c:\PROGRA~1\INTERN~1
>
>I've just had another case where the I had to use the short form, is the short 
>form the "real name"?

Hi just solved my problem:-

sjaprog='/cygdrive/c/Program Files/SQLyog Enterprise/sja.exe'
sjascript="c:/cygwin/usr/local/bin/sql/jrayner.xml"
"$sjaprog" "$sjascript"

By using no backslashing at all, but surely that's what I would have tried in 
the first place? Drat

Sorry for wasting your grey emininences

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin-setup & rebaseall

2005-10-24 Thread Brian Dessent
Satish Balay wrote:

> Q: Does cygwin setup run rebaseall either during initial install or
> during subsequent updates? [guessing no]

No, setup has no clue about rebaseall.

> Q: Is it safe to say: 'if cygwin is installed from scratch - rebaseall
> is not required'

That's not quite correct.  Whether a rebase is required depends on
several factors - which packages you've selected, and whether those
packages have been compiled with --enable-auto-image-base.  As you have
noted, the rebase is only required for certain packages, particularly
those that use dynamically loaded modules such as python or perl.  Many
people use Cygwin all the time and never run into the problem because
most programs don't suffer from this.

Additionally, maintainers of these packages have (I believe) recently
started compiling them with --enable-auto-image-base which should
eliminate (or reduce) the need to rebase.

> [for our tools] cygwin/python is a pre-requisite - and our users
> appear to stumble across this issue regularly. And asking users to
> always run rebaseall is an extra hurdle]

Always running rebase after any setup operation seems like overkill.  It
should only be necessary if you upgrade python or a dynamic library that
python might load at runtime, and then only if python wasn't compiled
with the above flag -- I don't know the current status of which
maintainers are doing that.

So, it seems to me like it would be a lot easier just to say "Run rebase
if you get an "Unable to remap" error" instead of "Run rebase
religiously after any setup operation."  Or, if you know that python
triggers this problem then perhaps it should be, "Always run rebaseall
after a clean install, and then don't worry about it again unless you
get the "unable to remap" error."

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: textmount/binmount issue

2005-10-24 Thread Yitzchak Scott-Thoennes
On Mon, Oct 24, 2005 at 05:56:36PM -0400, Igor Pechtchanski wrote:
> On Mon, 24 Oct 2005, Yitzchak Scott-Thoennes wrote:
> 
> > On Mon, Oct 24, 2005 at 11:05:13AM -0400, Igor Pechtchanski wrote:
> > > Looks like the cygdrive prefix takes precedence over explicit mounts.
> > > This is arguably a bug.  .
> > > Corinna or Chris, care to comment?
> >
> > My name doesn't start with C, but I will comment that if the precedence
> > went the other way, a mount like:
> >
> >   mount c:/foo /cygdrive/d
> >
> > would make a windows path d:\bar have no posix translation.
> 
> How is this different from
> 
> mount c:/baz /somemount
> mount c:/foo /somemount/d
> 
> (except for the fact that /cygdrive/d is an automount)?  I'm actually not
> sure what's meant by "posix translation" in this context...

For example, assume a windows PATH=d:\bar.  What does a cygwin program
convert PATH to at startup?  There would be no equivlent, since
/cygdrive/d/bar would mean c:/foo/bar, not d:/bar.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: on the road to 1.5.19 - snapshot testing needed

2005-10-24 Thread Igor Pechtchanski
On Thu, 29 Sep 2005, Christopher Faylor wrote:

> The latest snapshot is chock full of developer goodness and needs to
> be tested.
>   * * *
> I'm asking, once again, for people to test the latest cygwin snapshot.
> The snapshot that is currently available should be very close to an
> official release of cygwin version 1.5.19.
>
> Please report success or failure to this thread.  Please don't change
> the subject.  Please don't start a new discussion.  If you have a
> problem please report it using the guidelines found at
> <http://cygwin.com/problems.html>.

Here's a success story:

1.5.18-1 failed to start the sshd service (with privilege separation)
correctly on a brand new installation on XP Home (cygrunsrv reports Win32
error 1062, but the sshd process starts nonetheless).  The latest snapshot
(1.5.19s(0.141/4/2) 20051024 12:04:00) fixes the problem -- the service
starts cleanly.  I could provide the details for the failure case if
people are interested.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Minor ssh-host-config typos (openssh-4.2p1-1)

2005-10-24 Thread Igor Pechtchanski
The questions about creating SSH2 RSA and DSA identities contain a
"(yes/no)" within the question.  Since the request function also appends
"(yes/no)" to the message, this results in "(yes/no)  (yes/no)" at the end
of those two questions.  Not a bug, but worth fixing.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: textmount/binmount issue

2005-10-24 Thread Igor Pechtchanski
On Mon, 24 Oct 2005, Yitzchak Scott-Thoennes wrote:

> On Mon, Oct 24, 2005 at 05:56:36PM -0400, Igor Pechtchanski wrote:
> > On Mon, 24 Oct 2005, Yitzchak Scott-Thoennes wrote:
> >
> > > On Mon, Oct 24, 2005 at 11:05:13AM -0400, Igor Pechtchanski wrote:
> > > > Looks like the cygdrive prefix takes precedence over explicit mounts.
> > > > This is arguably a bug.  .
> > > > Corinna or Chris, care to comment?
> > >
> > > My name doesn't start with C, but I will comment that if the precedence
> > > went the other way, a mount like:
> > >
> > >   mount c:/foo /cygdrive/d
> > >
> > > would make a windows path d:\bar have no posix translation.
> >
> > How is this different from
> >
> > mount c:/baz /somemount
> > mount c:/foo /somemount/d
> >
> > (except for the fact that /cygdrive/d is an automount)?  I'm actually not
> > sure what's meant by "posix translation" in this context...
>
> For example, assume a windows PATH=d:\bar.  What does a cygwin program
> convert PATH to at startup?  There would be no equivlent, since
> /cygdrive/d/bar would mean c:/foo/bar, not d:/bar.

Ah, I see.  Well, one solution is to disallow mounting over directories
under the /cygdrive prefix (which is a good idea anyway, as it'll wreak
havoc even in the current case).  Yes, I know, PTC...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cron Problems with Cygwin

2005-10-24 Thread Larry Hall (Cygwin)

CWS Informatics [Sas] wrote:

I am not sure what else you want based on reporting guidelines. I
attached the cygcheck file though.



Thanks.  I was also looking for details about your failing cron commands.


As for what I am trying to do: 


We have a bunch of old Unix scripts and software that we need to keep
running for awhile. 
These need to run every x minutes for y range of hours during the day.

The scripts and software produce the results we are looking when run
from the command line in Cygwin. 


There is nothing but "Cron Started []" in the cron log.



So it sounds like cron thinks everything is fine.



Thank you.



OK, then let's go back to basics.  Clear your crontab out of everything but
the following line:

1 * * * *   /bin/echo "hi" >/tmp/cron.out

Do you get a /tmp/cron.tab with "hi" in it after a minute?  If so, then you
need to look at your originalcrontab commands and figure out which ones
are causing you the problem.  From the output, it would suggest that you're
invoking 'cmd' for something.  That may be causing you some problem.  If
you don't get any output with the simple crontab file, you probably want to
uninstall and reinstall the cron package, reading
'/usr/share/doc/Cygwin/cron.README' immediately after installing.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



problem with sendto and raw sockets

2005-10-24 Thread Fernando Barsoba

Hi all,

I'm stuck trying to send an IP header through raw sockets. I'm using 
Eclipse and cygwin.. but I have been told that raw sockets should work 
with cygwin.. I got the definition for IP_HDRINCL from the last 
snapshot. I only got the socket.h header file from the snapshot... and 
not the whole thing. I have been able to build the program, but I am not 
sure if using only the socket.h could be the problem...


The error that I get back is: Cannot assign requested address.

Here's my code. I have been trying with this implementation using raw 
sockets and I have the same problem -> http://www.whitefang.com/rin/

(rawsock-05)

Any help appreciated.. i'm stuck with this thing..

FBM

ipsec_v4.c-

#include"ipsec_v4.h"
#include
#include

#define IP_VERSION 4
#define LEN512

struct ip * build_ip_packet() {
   struct ip *iphdr;
   int packet_size;
   char *packet;
   struct in_addr ipsrc_addr, ipdst_addr;
   const char *host = "192.168.2.3";
   const char *dest = "192.168.2.2";
   
   packet_size = sizeof(struct ip);

   packet = malloc(packet_size);
   bzero(packet, packet_size);   
   iphdr = (struct ip *)packet;   


   inet_aton(host, &ipsrc_addr);
   inet_aton(dest, &ipdst_addr);
   
   iphdr->ip_v = 4;

   iphdr->ip_hl = 5;
   iphdr->ip_tos = 0;
   iphdr->ip_len = 0x1400;
   iphdr->ip_id = 0;
   iphdr->ip_off = 0;
   iphdr->ip_ttl = 64;
   iphdr->ip_p = 51;
   iphdr->ip_src = ipsrc_addr;
   iphdr->ip_dst = ipdst_addr;
   iphdr->ip_sum = 0;

   iphdr->ip_sum = in_cksum((u_short *) iphdr, (iphdr->ip_hl) << 2);

   return iphdr;
}

int main(int argc, char **argv) {
   int s, port;
   struct ip *ip_datagram;
   const int on = 1;
   struct sockaddr_in sin;
   char host[LEN];
   struct hostent *hp;

   hp = gethostbyname(argv[1]);
   if ( hp == NULL ) {
   fprintf(stderr, "%s: host not found (%s)\n", argv[0], host);
   exit(1);
   }
   port = atoi("");
   
   s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);

   sin.sin_family = AF_INET;
   sin.sin_port = htons(port);
   memcpy(&sin.sin_addr, hp->h_addr_list[0], hp->h_length);

   ip_datagram = build_ip_packet();
   
   if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, &on, sizeof(on)) < 0) {

   perror("setsockopt:");
   exit(s);
   }
   ssize_t returned;
   returned = sendto(s, ip_datagram, 20, 0, (struct sockaddr *) &sin, 
sizeof(sin));

   if (returned < 0) {
   perror("sendto");
   exit(1);
   }
   exit(0);   
}


checksum.c 

#include 
#include 

uint16_t in_cksum (uint16_t * addr, int len) {
int nleft = len;
uint32_t sum = 0;
uint16_t *w = addr;
uint16_t answer = 0;

   /*
* Our algorithm is simple, using a 32 bit accumulator (sum), we add
   * sequential 16 bit words to it, and at the end, fold back all the
   * carry bits from the top 16 bits into the lower 16 bits.
   */
   while (nleft > 1) {
   sum += ntohs(*w++);
   nleft -= 2;
   }
   /* mop up an odd byte, if necessary */
   if (nleft == 1) {/* ntohs shoudl be added here too.. to do!
   * (unsigned char *) (&answer) = * (unsigned char *) w;
   sum += answer;
   }

   /* add back carry outs from top 16 bits to low 16 bits */
   sum = (sum >> 16) + (sum & 0x); /* add hi 16 to low 16 */
   sum += (sum >> 16); /* add carry */
   answer = ~sum; /* truncate to 16 bits */
   return (answer);
}



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: problem with sendto and raw sockets

2005-10-24 Thread Brian Dessent
Fernando Barsoba wrote:

> snapshot. I only got the socket.h header file from the snapshot... and
> not the whole thing. I have been able to build the program, but I am not
> sure if using only the socket.h could be the problem...

Using a modified header with the old 1.5.18 cygwin1.dll is probably
going to be a bad idea.  The snapshot dll and headers are meant to be
used together.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cron Problems with Cygwin

2005-10-24 Thread René Berber
Larry Hall (Cygwin) wrote:
[snip]
> 1 * * * *   /bin/echo "hi" >/tmp/cron.out

You meant:

* * * * *  /bin/echo :hi: >/tmp/cron.out

-- 
R. Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Socket read problem on Windows XP Pro & Cygwin

2005-10-24 Thread Todd Rearick
Corinna Vinschen  cygwin.com> writes:

> You should nevertheless use /dev/com4 or /dev/ttyS3.  I might be wrong
> but it still looks like you don't quite see what Brian was up to.
> 
> Corinna
> 

Hmm...I think I see what you're getting at.  I'm (obviously) not really all that
knowledgeable of serial ports under Cygwin.  I was quite shocked actually that I
could just open "COM4" and write to it and it seemed to work OK

so...If I open "COM4" from cygwin, cygwin thinks I'm really just opening
some disk file..and probably all I can do is read/write..and perhaps even that
might not be totally reliable.  If I use /dev/com4 (or /dev/ttyS3), then the
underlying software understands that I am actually opening a serial port, and
all of the things like baud rate, parity, start, stop bits..etc..can all be
configured correctly...and there is probably a lot more testing that goes into
making sure /dev/com4 works properly.

Thanks to Brian for bringing it up, and thanks to you for the clarification.  I
was missing the point that COM4 is NOT the right way to access serial port #4
under cygwin.  It's easy enough to change...

Todd








--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin-setup & rebaseall

2005-10-24 Thread Satish Balay
On Mon, 24 Oct 2005, Brian Dessent wrote:

> Additionally, maintainers of these packages have (I believe) recently
> started compiling them with --enable-auto-image-base which should
> eliminate (or reduce) the need to rebase.

Ok so the problem is likely to go away for python users.

> 
> > [for our tools] cygwin/python is a pre-requisite - and our users
> > appear to stumble across this issue regularly. And asking users to
> > always run rebaseall is an extra hurdle]
> 
> Always running rebase after any setup operation seems like overkill.  It
> should only be necessary if you upgrade python or a dynamic library that
> python might load at runtime, and then only if python wasn't compiled
> with the above flag -- I don't know the current status of which
> maintainers are doing that.
> 
> So, it seems to me like it would be a lot easier just to say "Run rebase
> if you get an "Unable to remap" error" instead of "Run rebase
> religiously after any setup operation."  Or, if you know that python
> triggers this problem then perhaps it should be, "Always run rebaseall
> after a clean install, and then don't worry about it again unless you
> get the "unable to remap" error."

Currently the burden is on [cygwin] users to know/keep track of this
info. And not all instructions/documetation get read by users. So each
time there is such a breakage, cygwin get a bad repo [why doesn't it
just work?]

So I hope cygwin can improve on this. Users seeing "Unable to remap"
errors [however infrequently] should be avoided - esp if it can be
automated.

[maybe the fix is: for any package that is likely to break - add a
flag - which triggers setup to run rebaseall - after
install/upgrade. So no overhead for pacakges that don't break - but
always overhead for packages that break.]

Thanks,
Satish

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: CPU usage issue with bash

2005-10-24 Thread Sarcar, Shourya C \(GE Healthcare\)
Eric,
Thanks for the offer to help.
I am attaching cygcheck.out
If you need me to carry out some more investigations, please let me
know.

--
Shourya

 

-Original Message-
From: Eric Blake [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 8:29 PM
To: Sarcar, Shourya C (GE Healthcare); cygwin@cygwin.com
Subject: Re: CPU usage issue with bash

> Bash seems to be taking up a lot of CPU resources for me. It peaks to 
> 100% for lengthy spans of around 20-30 seconds.
> On NT systems (with an older cygwin) I notice peaks to around 70-80% 
> for shorter durations of time.
> Is this a known issue with bash ?
> I found this on the archives.
> http://www.cygwin.com/ml/cygwin/2004-03/msg01114.html

That message was for a much older configuration.  Perhaps the issue has
been fixed since then, but since you did not attach cygcheck.out for us
to determine your configuration, I can't tell if you need to upgrade.

> Problem reports:   http://cygwin.com/problems.html

> 
> Is there any documentation on the minimum recommended hardware 
> configuration for Cygwin ?

If I understand right, cygwin uses assembly instructions that won't work
on a 386.  But beyond that, if you have a machine that can run Win95,
then you can run cygwin (although it may be painfully slow).  I
regularly run cygwin on a 266 MHz Pentium Pro, Win98 (although I much
prefer more modern machines).

--
Eric Blake
volunteer cygwin bash maintainer




cygcheck.out
Description: cygcheck.out
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: cygwin-setup & rebaseall

2005-10-24 Thread Brian Dessent
Satish Balay wrote:

> Ok so the problem is likely to go away for python users.

I don't know if Jason has started compiling Python with
--enable-auto-image-base or not.  It will also depend on the maintainers
of any libraries that are dynamically loaded by a python module using
the flag as well.

> Currently the burden is on [cygwin] users to know/keep track of this
> info. And not all instructions/documetation get read by users. So each
> time there is such a breakage, cygwin get a bad repo [why doesn't it
> just work?]
> 
> So I hope cygwin can improve on this. Users seeing "Unable to remap"
> errors [however infrequently] should be avoided - esp if it can be
> automated.

This is true.  It is a rather bad situation.  It is mitigated by the
fact that it only affects certain packages used in certain
circumstances.  Cygwin is also somewhat aimed at users that are familiar
with reading documentation, and this problem is documented in
/usr/share/doc/cygwin/python-*.README.

> [maybe the fix is: for any package that is likely to break - add a
> flag - which triggers setup to run rebaseall - after
> install/upgrade. So no overhead for pacakges that don't break - but
> always overhead for packages that break.]

It's not that simple.  The --enable-auto-image-base feature is, in
theory, the correct way to fix this problem.  This option has been
traditionally been disabled by default, for reasons I'm not familiar
with.  At some time in the past I think it had some problems.  And I
seem to recall that it can still cause conflicts in certain
circumstances because Cygwin uses a small amount of memory past the end
of the DLL for record-keeping purposes, which the rebaseall script
accomodates by adding padding.

Automatically running rebaseall from setup.exe has issues too.  For one
thing, it would run into problems if the user had programs or services
running.  The rebaseall script bails if it cannot write to a DLL, so
unless the user was very careful to close all running programs, it would
fail in almost all cases.  Rebaseall would have to be modified to rebase
in-use DLLs, but this would require the user to reboot.  And, somehow
this would have to be communicated to setup.exe so it could notify the
user.  Plus, consider if setup.exe installed a DLL that was in use
(writing it to name.dll.new, and scheduling that for replacement at next
boot) and then rebaseall was run.  The rebaseall script would have to
know to rebase name.dll.new and not name.dll.  It just gets more and
more complicated.  The only workable solution would be to incorporate
the entire rebaseall functionality internally into setup.exe, which is
not an insignificant undertaking, and one which no one is eager to
undertake.

On top of that, there is a problem with running out of address space.  I
don't think this happens (yet!) with the official packages but someone
has reported that it can happen if you suppliment an installation with
some of the Cygwin ports like KDE.  So this solution of rebasing every
single DLL is clearly not scaleable into the future, unless the Cygwin
DLL's memory layout is rearranged, or unless DLLs are rebased into
another memory space.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
 
> Use mkzsh to do this.  For help, type 'mkzsh --help'

Thank you, this is exactly what I was looking for.

> > It works kind of, but I can't get zsh executed as login 
> shell. The BAT
> > file invoking the bash login shell calls bash using
> >
> >  bash --login -i
> 
> See the '-l' option of zsh in the manpages.

Thank you, this works equally well.

I had searched the manpages for this option, but overlooked it...

Ronald

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Subversion client & text mounts

2005-10-24 Thread Jörg Schaible
Arend-Jan Westhoff wrote on Monday, October 24, 2005 6:38 PM:

> At 11:27 2005-10-24 +0200, Joerg Schaible wrote:
>> Hello Subversion maintainer,
>> 
>> the subversion client does unfortunately not respect text mounts.
>> Checking = out form a remote repository all text files have unix line
>> endings although=  they have the property svn:eol-style set to
>> native. This is a major hassle=  in a build environment where also a
>> lot of non-Cygwin tools have to be use= d.
>> 
>> - J=F6rg
> 
> Hello Joerg,
> 
> Am not the Subversion maintainer, but have some possible workarounds:
> 
> 1. Use the native Windows subversion. (I do.)

I do normally also, but I have now the need to work on binary and on text 
mounts.

> 
> 2. Use u2d (d2u).

Not any text file may have svn:eol-style=native. So this is not an option.

- Jörg

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/