how to create static library in cygwin

2006-06-21 Thread cxf

Hello, everyone:
   I compile source files, create a dll file "cygtspi.dll" , an import 
file "libtspi.dll.a" and a link file "libtspi.la",How can I use the dll 
in windows(such as using the dll in VC). the "cygtspi.dll" seems depends 
on several cygwin's dll.
   Another question: How can I create the static library, So I can use 
the static library only( such that can import the static library in VC) 
,not using the dll. 




--
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: updwtmpx

2006-06-21 Thread Igor Peshansky
On Thu, 22 Jun 2006, Luis P Caamano wrote:

> The latest gnome-terminal, which works nicely btw, complaints before
> first start that it cannot find updwtmpx in cygwin1.dll.  I see that
> it was added back in February but I can't figure out which version
> includes it.
>
> http://article.gmane.org/gmane.os.cygwin.cvs/2345/match=updwtmpx+cygwin
>
> Perhaps it's in an experimental version?

It's a snapshot ().
It'll also be in 1.5.20, whenever that comes out.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/



updwtmpx

2006-06-21 Thread Luis P Caamano

The latest gnome-terminal, which works nicely btw, complaints before
first start that it cannot find updwtmpx in cygwin1.dll.  I see that
it was added back in February but I can't figure out which version
includes it.

http://article.gmane.org/gmane.os.cygwin.cvs/2345/match=updwtmpx+cygwin

Perhaps it's in an experimental version?

--
Luis P Caamano
Atlanta, GA USA

--
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: How to create dll in cygwin

2006-06-21 Thread Larry Hall (Cygwin)
cxf wrote:
> Hello,everyone:
>I want to create a dll from source file, how to create dll in cygwin, 
> can anyone give me some tips.


Yes, certainly.  Please avail yourself of the existing
Cygwin resources found at www.cygwin.com.  For specific
information on building DLLs, see the proper section in
the Cygwin User's Guide:




>Can cygwin create static library(.lib file)?


Of course.  By default, it's named libfoo.a but the format
is the same and can be named however you want.


-- 
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/



How to create dll in cygwin

2006-06-21 Thread cxf

Hello,everyone:
   I want to create a dll from source file, how to create dll in 
cygwin, can anyone give me some tips.
   Can cygwin create static library(.lib file)? 




--
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: Problems using 'mkdirhier'

2006-06-21 Thread Angelo Graziosi

On Wed, 21 Jun 2006, Igor Peshansky wrote:

> On Wed, 21 Jun 2006, Angelo Graziosi wrote:
> 
> > Trying to build an application downloaded from the web, the make fails
> > using 'mkdirhier'. I have reproduced this with the following example:
> >
> > As Administrator:
> > -
> > $ cd
> > $ mkdirhier /home/Administrator/foo1/foo2/lib
> > mkdir: cannot create directory `//home': No such host or network path
> > mkdir: cannot create directory `//home/Administrator': Permission denied
> > mkdir: cannot create directory `//home/Administrator/foo1': Permission 
> > denied
> > mkdir: cannot create directory `//home/Administrator/foo1/foo2': Permission 
> > denied
> > mkdir: cannot create directory `//home/Administrator/foo1/foo2/lib': 
> > Permission denied
> > -
> >
> 
> .
>
> Googling for "mkdirhier site:cygwin.com inurl:ml/cygwin" should turn up
> the fixes you need.

Applying the patch reported in
http://www.cygwin.com/ml/cygwin-xfree/2003-06/msg00374.html seems to solve
the problem!

Thanks,
   
   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: Problems using 'mkdirhier'

2006-06-21 Thread David Arnstein
On Wed, Jun 21, 2006 at 12:05:52PM -0400, Igor Peshansky wrote:
> Most of the above is irrelevant.  This sounds like a bug in mkdirhier, and
> I also seem to recall that it was mentioned on the Cygwin lists before,
> with proposed fixes.  Apparently, the fixes haven't been incorporated in
> 6.8.99.901-1.

On my system, mkdirhier is just a shell script. The program "mkdir"
has an option "-p" that seems to do exactly what mkdirhier does.
Perhaps mkdirhier needs to be retired.

--
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: Latest Cygwin Release 5 month old...

2006-06-21 Thread Brian Bruns

On Wednesday, June 21, 2006 4:14 PM [EST], Charli Li wrote:


VMWare player is only for *PLAYING* VMWare files.  In order to set a
VM up you gotta get VMWare Desktop or VMWare Server, like I have here
on my box. Plus, VMs are much, much slower than normal boxes so it's
not really a red herring if you can't even install the OS on the VM!
For example, I couldn't even get Windows 2000 Server on the VM to
even initilize the text-mode setup program (WINNT.EXE)!



Easy way to fix that.

VMX Builder:
http://petruska.stardock.net/Software/VMware.html

http://petruska.stardock.net/Software/Files/VMXBuilderSetup.exe

Will build the player files for you with the hardware/settings you want.

--
Brian Bruns
The Summit Open Source Development Group
http://www.sosdg.org / http://www.ahbl.org 



--
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: Latest Cygwin Release 5 month old...

2006-06-21 Thread Charli Li
-Original Message-
> From: [EMAIL PROTECTED]
> Sent: Wednesday, June 21, 2006 4:04 PM
> To: cygwin@cygwin.com
> Subject: Re: Latest Cygwin Release 5 month old...
>
>
>> Not everyone has a spare test machine.
>
> I can never remember if we are supposed to top-quote or not. But
> here goes:
>
> If you need a spare test machine you should look into the VMWare
> Player.  It is free and allows you to run a Virtual Machine on your
> desktop. Saying: "I don't have a spare machine", these days is red
> herring.  Maybe you can't or won't make the time.  That is something
> else entirely.
>
> Please remember that Cygwin and other projects are largely
> volunteer efforts.
>

VMWare player is only for *PLAYING* VMWare files.  In order to set a VM up
you gotta get VMWare Desktop or VMWare Server, like I have here on my box.
Plus, VMs are much, much slower than normal boxes so it's not really a red
herring if you can't even install the OS on the VM!  For example, I couldn't
even get Windows 2000 Server on the VM to even initilize the text-mode setup
program (WINNT.EXE)!

Charli


--
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: Latest Cygwin Release 5 month old...

2006-06-21 Thread Jim Drash

Not everyone has a spare test machine.


I can never remember if we are supposed to top-quote or not. But here goes:

If you need a spare test machine you should look into the VMWare
Player.  It is free and allows you to run a Virtual Machine on your
desktop. Saying: "I don't have a spare machine", these days is red
herring.  Maybe you can't or won't make the time.  That is something
else entirely.

Please remember that Cygwin and other projects are largely volunteer efforts.

--
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: setup - duplicating cygwin

2006-06-21 Thread Shankar Unni

Jim Easton wrote:


cd /cygdrive/c/cygwin
cd proc
For which I received the message:
"bash: cd: proc: No such file or directory"


Of course. As you surmised, these two are *NOT* the same. The literal 
path "/proc" (and "/dev") are treated specially.


Unlike on linux, "mount" is not modifying the kernel layer below to 
create a file system linkage - it's all in the emulation layer for 
open() in cygwin1.dll..


You can't cd to "/" using a native win32 shell, for instance, and see 
any of these mount points..



--
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: sed: 4.1.5 breaks libtool generation

2006-06-21 Thread Stepp, Charles
By Gawk! You're right!

Sed "broke" one on my little scripts, but there is an easy work around.
It isn't really sed so much as white space confusion.

-Original Message-
From: Igor Peshansky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 21, 2006 11:47 AM
To: Stepp, Charles
Cc: cygwin@cygwin.com
Subject: RE: sed: 4.1.5 breaks libtool generation

 reformatted.

On Wed, 21 Jun 2006, Stepp, Charles wrote:

> -Original Message-
> From: Christopher Faylor
[mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 17, 2006 12:30 AM
> To: [EMAIL PROTECTED]

.  Thanks.

> Subject: Re: sed: 4.1.5 breaks libtool generation
>
> > On Sat, Jun 17, 2006 at 02:24:00PM +1000, Mark Hessling wrote:
> > >Given the fact that cygwin runs on a machine where the native
linend
> > >is CRLF, having a major component not recognise CRLF as a linend
when
> > >handling text files is, AFAIAC, a major problem.
> >
> > ...unless you stop to consider that sed is supposed to work
correctly
> > on binary files.
> >
> > cgf
>
> It is?

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

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends
compte."
"But no -- you are no fool; you call yourself a fool, there's proof
enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Robin Walker

--On 21 June 2006 18:50 +0100 John McNulty wrote:


However, I just noticed something really else really weird.  Repeating
the remote 'ls' command in succession _sometimes_ works.

# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
bar
exit-bad
exit-good
saved-files
#
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
bar
exit-bad
exit-good
saved-files


Check the Windows 2003 Server Event Viewer for entries from sshd in the 
Application Event Log.


--
Robin Walker

--
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: Thread Injection + Cygwin problems

2006-06-21 Thread Kaveh Goudarzi

Christopher Faylor wrote:

On Wed, Jun 21, 2006 at 07:44:15AM +0100, Kaveh Goudarzi wrote:

cgf wrote:

Sorry.  Don't know.  I've given you the basic facts but researching this
further is not something that I'm interested in doing.  Your use is
very much a corner case and if it doesn't work then I'm not terribly
concerned.  However, if you think you have a fix for the behavior you
can certainly submit it to cygwin-patches.


Thanks ... I will try to reduce it to a simple case and see
if I can find out what is going on.

If anyone can think of another way of getting access to a running
cygwin apps environment variables please let me know.

thanks again.

Kaveh.


--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread John McNulty

On 21/06/06, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:


What does 'ssh [EMAIL PROTECTED] cygcheck ls' say?


If I ssh login and then run 'cygcheck ls' then I get...

$ cygcheck ls
Found: C:\cygwin\bin\ls.exe
C:/cygwin/bin/ls.exe
 C:\cygwin\bin\cygwin1.dll
   C:\WINDOWS\system32\ADVAPI32.DLL
 C:\WINDOWS\system32\KERNEL32.dll
   C:\WINDOWS\system32\ntdll.dll
 C:\WINDOWS\system32\RPCRT4.dll
 C:\cygwin\bin\cygintl-3.dll
   C:\cygwin\bin\cygiconv-2.dll

Doing is as a remote command didn't output anything.

However, I just noticed something really else really weird.  Repeating
the remote 'ls' command in succession _sometimes_ works.

# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
bar
exit-bad
exit-good
saved-files
#
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
# ssh [EMAIL PROTECTED] ls
bar
exit-bad
exit-good
saved-files

???

Regards,

John

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Larry Hall (Cygwin)

John McNulty wrote:

On 21/06/06, Igor Peshansky <[EMAIL PROTECTED]> wrote:


Cygwin ssh (and basically all terminals except the Windows console) use
pipes to emulate ttys (so-called "ptys").  Some Windows applications 
don't

like these ptys and won't write data to them (and they will certainly not
detect them as a console, so any console-specific functions won't work
either).


Hmm .. this is where it gets even more interesting.  If I run:

$ ssh [EMAIL PROTECTED] date
Wed Jun 21 18:02:13 GMTDT 2006

.. then I get a result.  But other commands don't, e.g.

$ ssh [EMAIL PROTECTED] cat /etc/hosts
$ ssh [EMAIL PROTECTED] ls



What does 'ssh [EMAIL PROTECTED] cygcheck ls' say?


On Windows 2003, SYSTEM does not have the appropriate privileges to 
switch

user contexts, so ssh-host-config needs to create an account that does.
Read  for
details.


Before running ssh-host-config I did:

- Right click My Computer, Properties > Advanced > Environment Variables
- Under System Variables, click New, add CYGWIN as the variable name,
add ntsec as the variable value
- Under System Variables, scroll down to Path, click Edit, add
;c:\cygwin\bin to the end of the string already in the field

Then opened Cygwin on the desktop, ran ssh-host-config and entered:

"Privilege Separation?" Yes
"Create local user SSHd?" Yes
"Install SSHd as a service?" Yes
"CYGWIN = " enter ntsec

Should I have done anything different there on W2003 ?


Depends on what you need.  If you need to get output from non-Cygwin
executables, then you'll need to re-install the service with "nontsec"
instead.  But this is notably less secure.  There should be no need to
do this if you're simply dealing with Cygwin utilities though.

--
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/



Re: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread John McNulty

On 21/06/06, Andrew DeFaria <[EMAIL PROTECTED]> wrote:


Are you sure it works at all? Did you check /var/log/sshd.log on the
W2K3 server for errors? It might be that the ssh isn't running the
command at all rather it's aborting.


sshd.log is empty.  However from my other replies you can see that
commands like 'date' work and return output to the client.  Also, I
can do stuff like:

$ ssh [EMAIL PROTECTED] rm foo

and 'foo' is successfully removed.

Regards,

John

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread John McNulty

On 21/06/06, John McNulty <[EMAIL PROTECTED]> wrote:


"Privilege Separation?" Yes
"Create local user SSHd?" Yes
"Install SSHd as a service?" Yes
"CYGWIN = " enter ntsec


Whoops, that was from a log from the WinXP install.  The correct log
includes the bit about the "sshd_server".   Sorry.

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread John McNulty

On 21/06/06, Igor Peshansky <[EMAIL PROTECTED]> wrote:


Cygwin ssh (and basically all terminals except the Windows console) use
pipes to emulate ttys (so-called "ptys").  Some Windows applications don't
like these ptys and won't write data to them (and they will certainly not
detect them as a console, so any console-specific functions won't work
either).


Hmm .. this is where it gets even more interesting.  If I run:

$ ssh [EMAIL PROTECTED] date
Wed Jun 21 18:02:13 GMTDT 2006

.. then I get a result.  But other commands don't, e.g.

$ ssh [EMAIL PROTECTED] cat /etc/hosts
$ ssh [EMAIL PROTECTED] ls



On Windows 2003, SYSTEM does not have the appropriate privileges to switch
user contexts, so ssh-host-config needs to create an account that does.
Read  for
details.


Before running ssh-host-config I did:

- Right click My Computer, Properties > Advanced > Environment Variables
- Under System Variables, click New, add CYGWIN as the variable name,
add ntsec as the variable value
- Under System Variables, scroll down to Path, click Edit, add
;c:\cygwin\bin to the end of the string already in the field

Then opened Cygwin on the desktop, ran ssh-host-config and entered:

"Privilege Separation?" Yes
"Create local user SSHd?" Yes
"Install SSHd as a service?" Yes
"CYGWIN = " enter ntsec

Should I have done anything different there on W2003 ?


Regards,

John

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Harig, Mark
 
> -Original Message-
> From: John McNulty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 21, 2006 12:48 PM
> To: Harig, Mark
> Subject: Re: ssh password-less cmds to Windows 2003 don't 
> return any output
> 
> On 21/06/06, Harig, Mark <[EMAIL PROTECTED]> wrote:
> >
> > I do not see this and I do not know why you are seeing that 
> behavior.
> > I am reporting that
> >
> >   $ ssh [EMAIL PROTECTED] server] [command]
> >
> > produces user-visible output when I run that command from RHEL 3
> > or RH 7.3.
> 
> I just tried it from one of the RHEL AS 4 (update 3) systems.  Same
> thing.  So that's 3 different clients now and 3 different operating
> systems.  The common denominator is the W2003 server.
> 

My guess is the one that was listed in one of the earlier replies,
namely, to confirm that you have created the required special accounts
required for running a Cygwin ssh service on Windows 2K+.  Normally,
'ssh-host-config' will have done this for you, or will have prompted
you for permission to do it.  Consider posting your /etc/passwd,
/etc/group,
and /etc/sshd_config files (as attachments) to the Cygwin mailing list.
Someone may see a problem with your configuration.

For what it's worth, I used your test program, 'ipconfig', to check the
cygwin sshd behavior on three W2003 servers.  All three worked as
expected,
with the output of ipconfig displayed in my rxvt terminal window.

Also, I am assuming that you are able to start an ssh client on your
RHEL
server and successfully connect to your W2003 server, and can run the
'ipconfig' command with the expected results when run interactively.

--
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 creating device files

2006-06-21 Thread Sam Robb
On Wed, 2006-06-21 at 11:11 +0200, Nicolas Boudin wrote:
> > You are making invalid assumptions.  Have a look into
> > /usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
> > and see the light.  After that, make a mental note:
> > 
> >   "Never create a device number other than by using the makedev macro"
> 
> OK, thank you. :) Now that I am enlightened I will enlight the guy who made 
> this mistake in a program I am using. ;)

Nicolas,

  I should point out that the device node handling in the NFS server
isn't as good as it should be :-/  If you export a directory from Cygwin
using the NFS server, mount it on an Linux system, and then create a
device node on the NFS mount from the Linux system... well, that's just
plain broken.

  Translation of device node major/minor numbers *does* work properly if
the device node is created under Cygwin and then exported via NFS,
though.  So if you're going to create device nodes for a Linux root file
system, you'll want to create those under Cygwin, instead of from the
system where you mount the NFS export.

-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: Problems using 'mkdirhier'

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, Angelo Graziosi wrote:

> Trying to build an application downloaded from the web, the make fails
> using 'mkdirhier'. I have reproduced this with the following example:
>
> As Administrator:
> -
> $ cd
> $ mkdirhier /home/Administrator/foo1/foo2/lib
> mkdir: cannot create directory `//home': No such host or network path
> mkdir: cannot create directory `//home/Administrator': Permission denied
> mkdir: cannot create directory `//home/Administrator/foo1': Permission denied
> mkdir: cannot create directory `//home/Administrator/foo1/foo2': Permission 
> denied
> mkdir: cannot create directory `//home/Administrator/foo1/foo2/lib': 
> Permission denied
> -
>
> The system is W2K SP4 with ALL CYGWIN installed.
> I am using the snapshot : 1.5.20s(0.155/4/2) 20060614 16:21:31
> In cygwin am using the following test packages:
>
>coreutils-5.96-1
>emacs-21.3.50-2.*
>findutils-4.3.0-1
>lesstiff-0.94.4-1
>tar-1.15.90-1
>xorg-6.8.99.901-1.*

Most of the above is irrelevant.  This sounds like a bug in mkdirhier, and
I also seem to recall that it was mentioned on the Cygwin lists before,
with proposed fixes.  Apparently, the fixes haven't been incorporated in
6.8.99.901-1.

Googling for "mkdirhier site:cygwin.com inurl:ml/cygwin" should turn up
the fixes you need.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Corinna Vinschen
On Jun 21 08:29, Andrew DeFaria wrote:
> The change is necessary since W2K3 tightened up security and permissions 
> on the Local System Account such that sshd would not be able to switch 
> user if it used that account. Instead it offers to create a new account 
> called sshd_server and bestow on it the required rights to switch user. 
> (I've been wondering why not bestow those rights directly to the Local 
> System Account? I mean it had them before... Obviously a security 
> decision, probably a wise one).

You'll be surprised, but on 2K3 the SYSTEM account still has all the
rights it has on previous systems.

The sad fact on 2K3 is that the SYSTEM account gets revoked the
SeCreateTokenName privilege *unconditionally* as soon as a service is
running under that account.  Unfortunately this is the privilege
necessary to allow password-less logins.

Whatever you do to the SYSTEM account, you'll not have the
SeCreateTokenName privilege in any service started under this account.
This is a Microsoft design decision to raise security.  Alas, the cygwin
mailing list is not the right place to discuss sense or nonsense of this
decision...


Corinna

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

--
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: sed: 4.1.5 breaks libtool generation

2006-06-21 Thread Igor Peshansky
 reformatted.

On Wed, 21 Jun 2006, Stepp, Charles wrote:

> -Original Message-
> From: Christopher Faylor [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 17, 2006 12:30 AM
> To: [EMAIL PROTECTED]

.  Thanks.

> Subject: Re: sed: 4.1.5 breaks libtool generation
>
> > On Sat, Jun 17, 2006 at 02:24:00PM +1000, Mark Hessling wrote:
> > >Given the fact that cygwin runs on a machine where the native linend
> > >is CRLF, having a major component not recognise CRLF as a linend when
> > >handling text files is, AFAIAC, a major problem.
> >
> > ...unless you stop to consider that sed is supposed to work correctly
> > on binary files.
> >
> > cgf
>
> It is?

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

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: Re: window resizing not updating COLUMNS and LINES

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, Valster Nico-anv009 wrote:

> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > On Behalf Of mwoehlke
> > Sent: Thursday, June 01, 2006 1:47 AM
> > To: [EMAIL PROTECTED]

.  Thanks.

> [snip]
> P.S. rxvt behaves the same but that mentioning that would make this mail
> inappropriate for this list if I read this thread correctly

Only if you are running rxvt in X mode and talking about things that have
to do with visual rendering of the window (e.g., fonts, positioning, etc).
Then this would belong on the cygwin-xfree list.  Otherwise, mentioning
rxvt should be fine.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Andrew DeFaria

John McNulty wrote:
However I've just installed and configured Cygwin OpenSSH on a 
Windows  2003 server, and setup password-less logins (via public keys) 
as before. But when I try and issue a command via ssh from the client 
I get no command output back at all.  The remote command just 
completes silently.  The password-less login is working just fine.
Are you sure it works at all? Did you check /var/log/sshd.log on the 
W2K3 server for errors? It might be that the ssh isn't running the 
command at all rather it's aborting.
Does anyone else see this and have any idea why I'm getting this 
behavior?

I have similar problems with both ssh and rsh on W2K3.
I followed the instructions in ssh-host-config and opted to use the 
sshd_server account (which kind of caught me by surprise).  Obviously 
this changes the way ssh works on Cygwin a little.
The change is necessary since W2K3 tightened up security and permissions 
on the Local System Account such that sshd would not be able to switch 
user if it used that account. Instead it offers to create a new account 
called sshd_server and bestow on it the required rights to switch user. 
(I've been wondering why not bestow those rights directly to the Local 
System Account? I mean it had them before... Obviously a security 
decision, probably a wise one).


--

Andrew DeFaria 
It's not an optical illusion. It just looks like one.


--
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: checkdir: cannot create extraction directory

2006-06-21 Thread Larry Hall (Cygwin)

bh77 wrote:

$> cygcheck unzip
Found: C:\cygwin\bin\unzip.exe
C:/cygwin/bin/unzip.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\RPCRT4.dll



OK then.  Well, I guess it's back to the beginning on this one:


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


It may be a permissions problem so it's worth checking that out
if you haven't already too.  Don't forget about 'getfacl' to find
the the ACL permissions.

--
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/



Re: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, John McNulty wrote:

> Hello,
>
> I've been testing executing command via password-less SSH (public key)
> logins from  MacOSX and OpenVMS clients to a Redhat EL AS 4 server,
> and a WinXP Home system (with Cygwin's OpenSSH).  All works ok and I
> can issue test commands like:
>
> $  ssh [EMAIL PROTECTED] ipconfig
>
> and see the output from ipconfig on the client.
>
> However I've just installed and configured Cygwin OpenSSH on a Windows
> 2003 server, and setup password-less logins (via public keys) as
> before. But when I try and issue a command via ssh from the client I
> get no command output back at all.  The remote command just completes
> silently.  The password-less login is working just fine.
>
> Does anyone else see this and have any idea why I'm getting this
> behavior?

Cygwin ssh (and basically all terminals except the Windows console) use
pipes to emulate ttys (so-called "ptys").  Some Windows applications don't
like these ptys and won't write data to them (and they will certainly not
detect them as a console, so any console-specific functions won't work
either).

> I followed the instructions in ssh-host-config and opted to use the
> sshd_server account (which kind of caught me by surprise).  Obviously
> this changes the way ssh works on Cygwin a little.

On Windows 2003, SYSTEM does not have the appropriate privileges to switch
user contexts, so ssh-host-config needs to create an account that does.
Read  for
details.

> Ultimately the object of the exercise here is to drive a CLI app on
> Windows 2003 from batch jobs on OpenVMS.  Cygwin OpenSSH is the only
> way I've been able to think of to solve this problem.  The other
> clients and servers are only being used to test my methodology is
> correct, and it works flawlessly on WinXP Home.

You are not guaranteed that the program you want to drive will work with a
pty.  The easiest way to check is to run the application in rxvt.  If that
works, your app will probably work over ssh as well.  If it doesn't, don't
even bother to set up ssh.  Whether or not this works is specific to the
application you intend to run.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/



Problems using 'mkdirhier'

2006-06-21 Thread Angelo Graziosi

Trying to build an application downloaded from the web, the make fails
using 'mkdirhier'. I have reproduced this with the following example:

As Administrator:
-
$ cd
$ mkdirhier /home/Administrator/foo1/foo2/lib
mkdir: cannot create directory `//home': No such host or network path
mkdir: cannot create directory `//home/Administrator': Permission denied
mkdir: cannot create directory `//home/Administrator/foo1': Permission
denied
mkdir: cannot create directory
`//home/Administrator/foo1/foo2': Permission denied
mkdir: cannot create directory
`//home/Administrator/foo1/foo2/lib': Permission denied

-

The system is W2K SP4 with ALL CYGWIN installed.

I am using the snapshot : 1.5.20s(0.155/4/2) 20060614 16:21:31

In cygwin am using the following test packages:


   coreutils-5.96-1
   emacs-21.3.50-2.*
   findutils-4.3.0-1
   lesstiff-0.94.4-1
   tar-1.15.90-1
   xorg-6.8.99.901-1.*


Cheers,

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: find dir -o does not work

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, root wrote:

>
> Hi,
> I posted my request for help, but the client i used truncated the message.
> I post it again for your attention.
> By the way
> find common -type f -o -type l -print  does not works either.
> I think the -o flag  is returning false.

I have a nagging suspicion that you're using a non-Cygwin find...  I think
it's time you read and followed
> Problem reports:   http://cygwin.com/problems.html
(especially the bit about attaching, as an uncompressed text *attachment*,
the output of "cygcheck -svr" on your system).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Harig, Mark
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of John McNulty
> Sent: Wednesday, June 21, 2006 7:07 AM
> To: cygwin@cygwin.com
> Subject: ssh password-less cmds to Windows 2003 don't return 
> any output
> 
> Hello,
> 
> I've been testing executing command via password-less SSH (public key)
> logins from  MacOSX and OpenVMS clients to a Redhat EL AS 4 server,
> and a WinXP Home system (with Cygwin's OpenSSH).  All works ok and I
> can issue test commands like:
> 
> $  ssh [EMAIL PROTECTED] ipconfig
> 
> and see the output from ipconfig on the client.
> 
> However I've just installed and configured Cygwin OpenSSH on a Windows
> 2003 server, and setup password-less logins (via public keys) as
> before. But when I try and issue a command via ssh from the client I
> get no command output back at all.  The remote command just completes
> silently.  The password-less login is working just fine.
> 
> Does anyone else see this and have any idea why I'm getting 
> this behavior?
> 

I do not see this and I do not know why you are seeing that behavior.
I am reporting that 

  $ ssh [EMAIL PROTECTED] server] [command]

produces user-visible output when I run that command from RHEL 3
or RH 7.3.

--
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: Thread Injection + Cygwin problems

2006-06-21 Thread Christopher Faylor
On Wed, Jun 21, 2006 at 07:44:15AM +0100, Kaveh Goudarzi wrote:
>cgf wrote:
>>The problem may be due to the fact that the injected thread doesn't have
>>a cygtls area.  If the thread is injected prior to the completion of
>>cygwin's initialization or if it somehow bypasses the DLL_THREAD_ATTACH
>>phase of the initialization (which was one problem that I had to deal
>>with in the dreaded "cygwin loops forever" problem) then there will be
>>no cygtls area and using cygwin functions will be problematic.
>
>[snip]
>
>As for the cygtls area ...  is this something necessary for proper
>functioning of cygwin calls?  (I looked at the source ...  but none the
>wise I'm afraid :-( ) ...

"Using cygwin functions will be problematic":  Some simple functions will
work some other functions will crash, some may hang.

>Empirically I see getenv working now "all" the time but the call to
>cyg_internal seems to fail with regularity.  Is this expected?

Sorry.  Don't know.  I've given you the basic facts but researching this
further is not something that I'm interested in doing.  Your use is
very much a corner case and if it doesn't work then I'm not terribly
concerned.  However, if you think you have a fix for the behavior you
can certainly submit it to cygwin-patches.

cgf

--
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: 1.5.19: tar runs normally from command line but terminates early when run from crontab

2006-06-21 Thread Stepp, Charles
From a Unix viewpoint, running from cron does not set the environment
the same as with an interactive session. I have sometimes had to set
TERM=vt100 (or whatever) and other environment variables to get things
to run from cron.

One trick it to capture your environment to a file, edit out what you
know won't matter and add the rest to the top of your script:

env > env.out
vi env.out

Add
. env.out

To script.

-Original Message-
From: G.W. Haywood [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 5:53 AM
To: cygwin@cygwin.com
Subject: 1.5.19: tar runs normally from command line but terminates
early when run from crontab

Hi there,

This is my first installation of cygwin, and I'm not very familiar
with W2000 (server or otherwise).

Using ssh from a remote machine I log onto a Windows 2000 server which
is running a freshly installed cygwin.  The recommended settings were
used in the installation and in addition to the defaults, a few extra
packages were installed.  (Although I couldn't find ntpd anywhere...:)

On my local (Linux) box I get a bash prompt from the W2k server:

[EMAIL PROTECTED] ~
$

On the W2k server there are two physical devices in a simple RAID
array arranged as one logical drive.  I want to back up some files
from one of the Windows directories on this logical drive into a file
e.g. in the Administrator account's cygwin /home directory located on
the same logical device.  Later, when I have the file, I will copy it
to a remote machine.

To create the file I will use tar.  A simple tar command works when it
is run from the Administrator's command line (either in the foreground
or the background) but fails when run from the Administrator account's
crontab.

When run from the command line the job works whether gzip compression
is used or not, and when run from the crontab it fails also whether
compression is used or not, so I don't think it's anything to do with
pipes and DOS/Unix line endings.

It looks like I'm missing something here.  What is it?



The version of cygwin (installed on 16 June 2006) is: CYGWIN_NT-5.0
1.5.19(0.150/4/2) 2006-01-20 13:28

Process list:


[EMAIL PROTECTED] ~
$ ps -aelW
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
8   0   0  8?0 20:24:48 *** unknown ***
  184   0   0184?0   Mar 18
\SystemRoot\System32\smss.exe
  204   0   0204?0   Mar 18
\??\C:\WINNT\system32\winlogon.exe
  256   0   0256?0   Mar 18
C:\WINNT\system32\services.exe
  268   0   0268?0   Mar 18
C:\WINNT\system32\lsass.exe
  464   0   0464?0   Mar 18
C:\WINNT\system32\svchost.exe
  520   0   0520?0   Mar 18
C:\WINNT\system32\spoolsv.exe
  724   0   0724?0   Mar 18
C:\WINNT\System32\msdtc.exe
  844   0   0844?0   Mar 18
C:\WINNT\system32\Dfssvc.exe
  864   0   0864?0   Mar 18
C:\WINNT\System32\svchost.exe
  892   0   0892?0   Mar 18 C:\Data\Program
Files\Autodesk Network License Manager\lmgrd.exe
  916   0   0916?0   Mar 18
C:\WINNT\System32\ismserv.exe
  928   0   0928?0   Mar 18
C:\WINNT\System32\llssrv.exe
  976   0   0976?0   Mar 18 C:\Program
Files\Network Associates\Common Framework\FrameworkService.exe
 1060   0   0   1060?0   Mar 18 C:\Program
Files\Network Associates\VirusScan\Mcshield.exe
 1088   0   0   1088?0   Mar 18 C:\Program
Files\Network Associates\VirusScan\VsTskMgr.exe
 1096   0   0   1096?0   Mar 18 C:\Data\Program
Files\Autodesk Network License Manager\adskflex.exe
 1184   0   0   1184?0   Mar 18
C:\WINNT\system32\ntfrs.exe
 1252   0   0   1252?0   Mar 18
C:\PVSW\BIN\NTBTRV.EXE
 1312   0   0   1312?0   Mar 18
C:\WINNT\system32\regsvc.exe
 1316   0   0   1316?0   Mar 18
C:\PVSW\BIN\NTDBSMGR.EXE
 1328   0   0   1328?0   Mar 18
C:\WINNT\System32\locator.exe
 1340   0   0   1340?0   Mar 18
C:\WINNT\system32\MSTask.exe
 1412   0   0   1412?0   Mar 18
C:\WINNT\System32\WBEM\WinMgmt.exe
 1424   0   0   1424?0   Mar 18
C:\WINNT\system32\svchost.exe
 1436   0   0   1436?0   Mar 18
C:\WINNT\System32\dns.exe
 1448   0   0   1448?0   Mar 18
C:\WINNT\System32\

RE: sed: 4.1.5 breaks libtool generation

2006-06-21 Thread Stepp, Charles
It is?

-Original Message-
From: Christopher Faylor
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 17, 2006 12:30 AM
To: cygwin@cygwin.com
Subject: Re: sed: 4.1.5 breaks libtool generation

On Sat, Jun 17, 2006 at 02:24:00PM +1000, Mark Hessling wrote:
>Given the fact that cygwin runs on a machine where the native linend is
>CRLF, having a major component not recognise CRLF as a linend when
>handling text files is, AFAIAC, a major problem.

...unless you stop to consider that sed is supposed to work correctly on
binary files.

cgf

--
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: Re: window resizing not updating COLUMNS and LINES

2006-06-21 Thread Valster Nico-anv009
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of mwoehlke
> Sent: Thursday, June 01, 2006 1:47 AM
> To: cygwin@cygwin.com
> Subject: Re: window resizing not updating COLUMNS and LINES
> 
> Samuel Thibault wrote:
> > mwoehlke, le Wed 31 May 2006 17:19:15 -0500, a écrit :
> >> Kenneth Nellis wrote:
> >>> Same here...I do my own export to get things started. --Ken
> >>
> >> Wait, wait, step back... this in itself sounds like a problem.
> >
> > 'export COLUMNS' is needed for 'printenv COLUMNS' to work,
> > since in the printenv case you need the variable to be
> > transferred to the child printenv process.
> 
> Ok, that makes sense, although my understanding is that if the child
> process is 'bash' (including a script run by bash), then it will have a
> non-exported copy of the var set correctly. Or rather, it would/should
> if this was working at all.
> 


My command window does not show COLUMNS or LINES at all, i.e. echo $COLUMNS 
gives no output. 
After "export COLUMNS=80" as stated somewhere in the thread, both echo $COLUMNS 
and printenv COLUMNS give 80, but resizing the window does not influence this.
What am I missing to get COLUMNS and LINES in the first place

P.S. rxvt behaves the same but that mentioning that would make this mail 
inappropriate for this list if I read this thread correctly

Nico Valster


--
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: find dir -o does not work

2006-06-21 Thread Eric Blake
> Hi,
> I posted my request for help, but the client i used truncated the message.
> I post it again for your attention.

I've now seen substantially the same message content three times.

> By the way
> find common -type f -o -type l -print  does not works either.

It does what it was told, but is the same as
find common -type f -o \( -type l -print \)
and only prints symlinks.

> find common -type f -o -type l

Are you sure you don't have some alias in place, and that
you are picking up the right version of find?  The above
expression is the same as
find common \( -type f -o -type l \) -print
and works for me to print out all regular files and symlinks.

> find common -type f -o

That is a syntax error.  -o requires two arguments.  The fact
that you got directories listed instead of a syntax error makes
me suspect that you aren't invoking find properly.

What do 'type find' and 'echo find common -type f -o' print?

Also, following these directions:
> Problem reports:   http://cygwin.com/problems.html
and attaching the output of 'cygcheck -svr' would be helpful.

-- 
Eric Blake
volunteer cygwin findutils maintainer

--
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: loop through folders

2006-06-21 Thread smanna


Igor Peshansky-2 wrote:
> 
> 
> P.S. For a non-Cygwin question, this is getting an awful lot of replies.
> 
> 

Thanks for your help guys, sorry for the out-of-scope question. Newbie
mistake :S
--
View this message in context: 
http://www.nabble.com/loop-through-folders-t1814116.html#a4972239
Sent from the Cygwin Users forum at Nabble.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/



ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread John McNulty

Hello,

I've been testing executing command via password-less SSH (public key)
logins from  MacOSX and OpenVMS clients to a Redhat EL AS 4 server,
and a WinXP Home system (with Cygwin's OpenSSH).  All works ok and I
can issue test commands like:

$  ssh [EMAIL PROTECTED] ipconfig

and see the output from ipconfig on the client.

However I've just installed and configured Cygwin OpenSSH on a Windows
2003 server, and setup password-less logins (via public keys) as
before. But when I try and issue a command via ssh from the client I
get no command output back at all.  The remote command just completes
silently.  The password-less login is working just fine.

Does anyone else see this and have any idea why I'm getting this behavior?

I followed the instructions in ssh-host-config and opted to use the
sshd_server account (which kind of caught me by surprise).  Obviously
this changes the way ssh works on Cygwin a little.


Ultimately the object of the exercise here is to drive a CLI app on
Windows 2003 from batch jobs on OpenVMS.  Cygwin OpenSSH is the only
way I've been able to think of to solve this problem.  The other
clients and servers are only being used to test my methodology is
correct, and it works flawlessly on WinXP Home.

Regards,

John

--
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/



find dir -o does not work

2006-06-21 Thread root

Hi,
I posted my request for help, but the client i used truncated the message.
I post it again for your attention.
By the way
find common -type f -o -type l -print  does not works either.
I think the -o flag  is returning false.

I am trying to make a tar with files that are in a directory and checks
some condition
The problem i encountered is next :
find common  -type f   give the following output. (which is good)

common/VERSION
common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap/RcMapCreateOptionsStep.java


find common -type f -o -type l
(get nothing here )

find common -type f -o
common
common/gui
common/gui/svcConsole
common/gui/svcConsole/src
common/gui/svcConsole/src/com
common/gui/svcConsole/src/com/ibm
common/gui/svcConsole/src/com/ibm/storage
common/gui/svcConsole/src/com/ibm/storage/svc
common/gui/svcConsole/src/com/ibm/storage/svc/console
common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap
find common -type f -o -type f
(nothing)
It seems that  "find common -type f -o -
returns nothing.
I'm using winXP. On linux same comand works fine...
Thanks for your time.
cristi petrisor




On Wed, 21 Jun 2006, cristi petrisor wrote:

> I am trying to make a tar with files that are in a directory and checks
> some condition
> The problem i encountered is next :
> find common  -type f   give the following output. (which is good)
>
> common/VERSION
> common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap/RcMapCreateOptionsStep.java
>
> find common -type f -o -type l
> (get nothing here )
>
> find common -type f -o
> common
> common/gui
> common/gui/svcConsole
> common/gui/svcConsole/src
> common/gui/svcConsole/src/com
> common/gui/svcConsole/src/com/ibm
> common/gui/svcConsole/src/com/ibm/storage
> common/gui/svcConsole/src/com/ibm/storage/svc
> common/gui/svcConsole/src/com/ibm/storage/svc/console
> common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap
>
> find common -type f -o -type f
> (nothing)
> It seems that  "find common -type f -o -
> returns nothing.
> I'm using winXP. On linux same comand works fine...
> Thanks for your time.
> cristi petrisor
>
>
>




--
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 creating device files

2006-06-21 Thread Nicolas Boudin

> You are making invalid assumptions.  Have a look into
> /usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
> and see the light.  After that, make a mental note:
> 
>   "Never create a device number other than by using the makedev macro"

OK, thank you. :) Now that I am enlightened I will enlight the guy who made 
this mistake in a program I am using. ;)

Bye,

Nicolas

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
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 creating device files

2006-06-21 Thread Corinna Vinschen
On Jun 21 10:47, Nicolas Boudin wrote:
> 
> Hello,
> 
> I get strange results when trying to create device files with this program:
> 
> #include 
> 
> int main (void)
> {
>   int major, minor;
>   dev_t dev;
> 
>   major = 5;
>   minor = 1;
>   dev = (major << 8) | minor;
> 
>   mknod ("test", S_IFCHR | 0666, dev);
> 
>   return 0;
> }
> 
> After running it, I get:
> 
> # ls -al test
> crw-rw-rw-1 NBoudin mkgroup-l-d 0, 1281 Jun 21 10:44 test
> 
> However, with "mknod test2 c 5 1":
> crw-rw-rw-1 NBoudin mkgroup-l-d 5,1 Jun 21 10:44 test2
> 
> Why do I get this result?

You are making invalid assumptions.  Have a look into
/usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
and see the light.  After that, make a mental note:

  "Never create a device number other than by using the makedev macro"


Corinna

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

--
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 creating device files

2006-06-21 Thread Nicolas Boudin

Hello,

I get strange results when trying to create device files with this program:

#include 

int main (void)
{
int major, minor;
dev_t dev;

major = 5;
minor = 1;
dev = (major << 8) | minor;

mknod ("test", S_IFCHR | 0666, dev);

return 0;
}

After running it, I get:

# ls -al test
crw-rw-rw-1 NBoudin mkgroup-l-d 0, 1281 Jun 21 10:44 test

However, with "mknod test2 c 5 1":
crw-rw-rw-1 NBoudin mkgroup-l-d 5,1 Jun 21 10:44 test2

Why do I get this result?

Bye,

Nicolas

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
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: Problems with NFS server

2006-06-21 Thread Nicolas Boudin

Hello,

>   - If I'm understanding you correctly, it seems like your server.map
> didn't get created properly.  For the administrator uid and 
> gid entries,
> there should definitely be a mapping of id '0' to the 
> appropriate cygwin
> system administrator uid/gid.  You can find these using 'id -u
> administrator' and 'id -g administrator' from a cygwin bash shell.  If
> these aren't present, then the NFS server may have a problem obtaining
> permissions to read/write files on the NFS mount.

I have put correct values here now.

>   - In your original message, you mentioned that you are 
> running Windows
> XP.  Do you have a firewall running on that system that might be
> interfering with NFS? You'll need to make sure that ports 111 and 2049
> are open for TCP and UDP traffic.  Microsoft provides 
> information about
> opening ports in the Windows XP Internet Connection Firewall on their
> web site at http://www.microsoft.com/security/protect/ports.asp.

These ports are open. I don't understand why NFS transfers work with U-Boot but 
not with the kernel.

File Monitor told me nfsd was failing to open the C:/ directory (my cygwin is 
in C:/local), so it looks like it was a permission problem, but everything was 
allowed for members of my Administrators group, like my nfs user who is running 
the NFS services. So it is strange it didn't report me an "acces denied" error.

Now it goes a bit further, it can mount the root filesystem at last, and I get 
other errors about device files, but this is another problem. ;)

Thanks a lot!

Nicolas

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
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: find dir -o does not work

2006-06-21 Thread cristi petrisor
I am trying to make a tar with files that are in a directory and checks
some condition
The problem i encountered is next :
find common  -type f   give the following output. (which is good)

common/VERSION
common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap/RcMapCreateOptionsStep.java

find common -type f -o -type l
(get nothing here )

find common -type f -o
common
common/gui
common/gui/svcConsole
common/gui/svcConsole/src
common/gui/svcConsole/src/com
common/gui/svcConsole/src/com/ibm
common/gui/svcConsole/src/com/ibm/storage
common/gui/svcConsole/src/com/ibm/storage/svc
common/gui/svcConsole/src/com/ibm/storage/svc/console
common/gui/svcConsole/src/com/ibm/storage/svc/console/rcmap

find common -type f -o -type f
(nothing)
It seems that  "find common -type f -o -
returns nothing.
I'm using winXP. On linux same comand works fine...
Thanks for your time.
cristi petrisor




--
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: checkdir: cannot create extraction directory

2006-06-21 Thread bh77

$> cygcheck unzip
Found: C:\cygwin\bin\unzip.exe
C:/cygwin/bin/unzip.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\RPCRT4.dll
--
View this message in context: 
http://www.nabble.com/checkdir%3A--cannot-create-extraction-directory-t1818680.html#a4969162
Sent from the Cygwin Users forum at Nabble.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/