Re: Windows file permissions

2003-10-19 Thread Thorsten Kampe
* Krzysztof Duleba (2003-10-19 13:02 +0200)
 Is there a way to change file access permissions that are used by Windows
 2000 pro having only ssh account?

chmod, cacls

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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: sshd and cat

2003-10-19 Thread Thorsten Kampe
* Asif Iqbal (2003-10-19 01:45 +0200)
 Today is the first time I am using cygwin in my XP.

You've just discovered the real thing. Improve your experience by
reading the FAQ and the User's Guide.

 I am trying to run cat and it says command not found

Well, these dumb computers. This could mean that either the package
containing 'cat' is not installed or the executable is not in $PATH.

A search for the package at
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=cat.exe

leads to the conclusion that you have to have textutils installed.

 Also when I try to start sshd it fails not finding /etc/sshd_config
 file

Please follow the installation guidelines at
/usr/share/doc/Cygwin/openssh-3.7.1p2-1.README

 The third thing I just noticed I can't copy using my mouse.

Yes, you can. If you are using the windows console you can enable this
in the properties dialog and if you are using rxvt you just have to
select the text.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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: Windows file permissions

2003-10-19 Thread Thorsten Kampe
* Krzysztof Duleba (2003-10-19 17:22 +0200)
 Thorsten Kampe wrote:
 Is there a way to change file access permissions that are used by Windows
 2000 pro having only ssh account?

 chmod

 I knew that, but it affects only the Cygwin permissions.

No, Cygwin doesn't have its own permissions - they directly affect the
NT ACLs.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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: Open a cygwin command prompt in a specific folder?

2003-10-23 Thread Thorsten Kampe
* Alfonso Esteban Gonzalez Sencion (2003-10-23 11:26 +0200)
 I would like to open a cygwin console from the windows file manager, and
 have the console be positioned in the directory selected on the windows
 file manager?

Google for Bash prompt here

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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: ACLs are not handled correctly

2003-10-31 Thread Thorsten Kampe
* Dierk Schmedes (2003-10-31 10:15 +0100)
 Problem: nearly each tool that the create or modify a file/directory (e.g. cp,
 touch, setfacl) ignore the ALCs of the current directory or add further 
 users/groups to it.

 Example
 /home/dierk has the following ACLs (listed with xcalcs.exe from the MS
 resource
 kit; same with Explorer)

 xcalcs F:/cygwin/home/dierk
 f:\cygwin\home\dierk domainname\dierk:F
  NT AUTHORITY\SYSTEM:(OI)(CI)(IO)R

 Now I create a new file (e.g. touch /home/dierk/newfile). Everyone expect that
 the file has the same rights as my home folder /home/dierk, [...]

Why? Cygwin doesn't support ACLs and inheritance - including Windows
ACLs. And cp or touch don't either - umask is the thing they
ask.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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 Windows.NET

2003-11-05 Thread Thorsten Kampe
* Adrian Parker (2003-11-05 00:50 +0100)
 Do you guys know if Cygwin will run on Windows.NET?

There's no such thing as Windows.NET.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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 and displays

2003-11-10 Thread Thorsten Kampe
* Anne L Caraley (2003-11-10 23:12 +0100)
 Everything looks great except that I
 can't get the displays to export properly from my
 Linux machine (RedHat 7.3) to the Windows 2000
 machine running CYGWIN.

What do you mean by that? Termcap?

  I know the advice is
 to reinstall with the latest version of cygwin1.dll
 --- well how do I do that without killing what I've
 installed already?  I especially don't want to have
 to reinstall all the extras I've put on.

Choose reinstall in the setup for the base package.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
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: latex and lyx

2003-11-20 Thread Thorsten Kampe
* Demmer, Thomas (2003-11-20 10:07 +0100)
 Thorsten Kampe wrote:
* koorapati, koundinya (2003-11-20 09:24 +0100)
   Has anyone got lyx to work under cygwin with latex (one which is
 packaged under cygwin  ?. 

Yes, works like a charm. There's s package for Cygwin on their
website.

Thorsten

 Thorsten, there is no cygwin package that contains lyx, 
 that is none I found in the package search, and I didn't find a 
 cygwin hint on www.lyx.org, but I may
 missed that. Can you give us a pointer? 

http://wwwserv1.rz.fh-hannover.de/mbau/tim/hentschel/lyx/

Native: http://www.home.zonnet.nl/rareitsma/lyx/

Thorsten


--
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: Crontab does not work, Windows 2000

2003-11-22 Thread Thorsten Kampe
* Tim Ashman (2003-11-21 23:39 +0100)
 Igor,

 I have looked through /usr/share/doc/Cygwin/cron.README like you suggested. 
 The only problem is that the cygrunsrv file does not exist on my computer. 
 I've done a thorough search. Do you have any idea why this happened? Is it 
 common and what should I do about it?

 Thanks.

 Original Message Follows
 From: Igor Pechtchanski [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tim Ashman [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: Crontab does not work, Windows 2000
 Date: Fri, 21 Nov 2003 12:59:54 -0500 (EST)

 On Thu, 20 Nov 2003, Tim Ashman wrote:

   Igor,
  
   I did not run the cygrunsrv utility. I searched my hard drive and it does
   not exist. I just created a crontab under my username from the crontab 
 -e
   command. Is cygrunsrv a trivial part of running cron tasks?

 Your cron service is not running.  See /usr/share/doc/Cygwin/cron.README.

   Also, I ran cron_diagnose and it is getting stuck on the mounts. I'm 
 pretty
   sure that the mounts are system mounts, not user.
  
   -Part of my output after running the diagnose script:
  
   The SYSTEM user cannot access the mount point /usr/bin.
   Please run the following command to add a system mount point:
  mount -f -s -b [DOS path to Cygwin]/bin /usr/bin
   where [DOS path to Cygwin] is something like c:/cygwin.
  
   For more information, run 'mount -m' and 'mount -h'
  
   After adding this mount point, please re-run this script.
  
   -My output after running mount -m:
  
   mount -f -s -b C:/cygwin/bin /usr/bin
   mount -f -s -b C:/cygwin/lib /usr/lib
   mount -f -s -b C:/cygwin /
   mount -s -b --change-cygdrive-prefix /cygdrive
  
   Should I run the command you suggested at:
   http://sources.redhat.com/ml/cygwin/2003-05/msg00486.html ?

 No, I think you have a different problem.  Looks like your SYSTEM user may
 have user mounts that shadow the system ones.  Try getting a SYSTEM-owned
 shell and running mount -m from there.  If you see any user mounts,
 umount -u them.
   Igor

   Hopefully we get this sorted out after this posting! :) Thanks
  
   Original Message Follows
   From: Igor Pechtchanski [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: Tim Ashman [EMAIL PROTECTED]
   CC: [EMAIL PROTECTED]
   Subject: Re: Crontab does not work, Windows 2000
   Date: Thu, 20 Nov 2003 17:59:55 -0500 (EST)
  
   Tim,
  
   Umm, sorry, I meant just the underlined lines, but I guess no dice...
  
   Did you try running Mark Harig's cron_diagnose.sh (Google for it) on your
   system?  Does it report any errors?
  
   Does the date example produce any messages in syslog (i.e., Windows
   Event log)?  An obligatory silly question, BTW: did you start the cron
   service?  What options did you pass to cygrunsrv to create the service?
   Igor
  
   On Thu, 20 Nov 2003, Tim Ashman wrote:
  
Igor,
   
The output I displayed in my last posting was from the event log. It
is not what my script is supposed to output. My script uses the lynx
utility to download specific data files from an http site and echoes
some progress statements back to the shell. I have tried what you
suggested below and the hello world date crontab as well. Both do
not work. I have also tried different combinations of path (/bin and
/usr/bin) in my crontab, but still no luck. Note, I open a bash shell
from /bin/bash and write my crontab from there. Just a quick
sidetrack...why does the pwd command give /usr/bin when the shell
was opened in /bin?
   
Any other ideas of what the problem could be? Do you think it's
path-related? Thank you so much...
   
--
   
Tim,
   
Replies inline below.
   
On Thu, 20 Nov 2003, Tim Ashman wrote:
   
 Igor

 I have attached the windows event log. Can you help? Thanks.

 Event Type: Information
 Event Source:   ./crontab
 Event Category: None
 Event ID:   0
 Date:   11/18/2003
 Time:   10:37:29 AM
 User:   ECPACIFIC\ashmant
 Computer:   TAYLORBILL
 Description:
 The description for Event ID ( 0 ) in Source ( ./crontab ) cannot be
 found.
 The local computer may not have the necessary registry information or
 message DLL files to display messages from a remote computer. The
 following
 information is part of the event: ./crontab : PID 596 :
 (ashmant) LIST (ashmant).
   
Isn't this what your script is supposed to output?  Looks to me like
your crontab actually worked.  If you don't redirect the output of
your script, it goes to syslog (which, in case of Cygwin, is the
Windows event log). Try changing your crontab entry to something like
   
33 12 * * * /usr/bin/bsh_ubcfxscript.txt  /tmp/bsh_ubcfxscript.out
   
and see if it works.  In fact, did you try the Hello, world! of all
crontabs, i.e.
   
   

Re: Problem making rxvt

2003-11-27 Thread Thorsten Kampe
* David A. Cobb (2003-11-27 17:54 +0100)
 My configure/make score is just barely above zero.  I'd be sure it was 
 all me if it was indeed zero - but not quite.

 Latest attempt: rxvt-2.7.10

Install rxvt via Setup.exe.


--
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: rxvt and bold directory entries

2003-12-15 Thread Thorsten Kampe
* Brandon Saxe (2003-12-12 16:59 +0100)
 I'm using rxvt and do directory listings with the
 --color=auto option.

 Certain files are not only colored, but are bold as
 well. How do I turn off the bolding of certain
 listings? I only want colors. The bold makes certain
 entries difficult to read.

man rxvt


--
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: 'man' shows escape sequences after updating to docbook_xsl 1.64.1-1

2003-12-29 Thread Thorsten Kampe
* Lynn Wilson (2003-12-23 19:40 +0100)
 It seems that a few months ago the man pages were showing the ESC[1m etc. escape 
 sequences in a bash shell. The problem was quickly fixed.

 I downloaded docbook_xsl 1.64.1-1 yesterday and the problem is back.  I also 
 downloaded a few X-modules.  One of these modules caused the 'man' problem to 
 re-appear.

Same with me. Anyone with a solution (because every man page is 
unreadable). I haven't installed any X modules.

Thorsten


--
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: 'man' shows escape sequences after updating to docbook_xsl 1.64.1-1

2003-12-29 Thread Thorsten Kampe
* Larry Hall (2003-12-29 20:18 +0100)
 At 01:48 PM 12/29/2003, Thorsten Kampe you wrote:
* Lynn Wilson (2003-12-23 19:40 +0100)
 It seems that a few months ago the man pages were showing the ESC[1m etc. escape 
 sequences in a bash shell. The problem was quickly fixed.

 I downloaded docbook_xsl 1.64.1-1 yesterday and the problem is back.  I also 
 downloaded a few X-modules.  One of these modules caused the 'man' problem to 
 re-appear.

 Same with me. Anyone with a solution (because every man page is 
 unreadable). I haven't installed any X modules.

 Does that mean that you updated to docbook_xsl 1.64.1-1 as well or did 
 you intend to imply that there were no overlaps between the packages you 
 installed/updated and Lynn's?

The latter: no doc*, no X*. All packages are on their latest releases.

Thorsten


--
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: 'man' shows escape sequences after updating to docbook_xsl 1.64.1-1

2003-12-30 Thread Thorsten Kampe
* Thorsten Kampe (2003-12-29 19:48 +0100)
 * Lynn Wilson (2003-12-23 19:40 +0100)
 It seems that a few months ago the man pages were showing the ESC[1m etc. escape 
 sequences in a bash shell. The problem was quickly fixed.

 I downloaded docbook_xsl 1.64.1-1 yesterday and the problem is back.  I also 
 downloaded a few X-modules.  One of these modules caused the 'man' problem to 
 re-appear.

 Same with me. Anyone with a solution (because every man page is 
 unreadable). I haven't installed any X modules.

Got a personal mail referring to a recent thread called man produces
ESC. My manpager was 'most' (which is no problem on Gentoo Linux).

export LESS=R
export MANPAGER=less

...in your .bashrc/.zshrc fixes the problem.

Thorsten


--
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: sshd on alternate port doesn't seem to work

2004-01-14 Thread Thorsten Kampe
* Mooky Mooksgill (2004-01-14 20:07 +0100)
 i add the Port  to the ssh_config file, sshd restarts, but refuses 
 connections.

Yes, of course: man ssh_config - the first sentence.

 i have debugged this for a while, can someone verify that sshd on 
 non-standard does (or does not work)?

Sure it does. I never run ssh on the default port.

Thorsten


--
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: sshd on alternate port doesn't seem to work

2004-01-15 Thread Thorsten Kampe
* Mark Himsley (2004-01-15 00:53 +0100)
 On 15 January 2004 00:05 +0100 Thorsten Kampe wrote:
 * Mooky Mooksgill (2004-01-14 20:07 +0100)
 i add the Port  to the ssh_config file, sshd restarts, but refuses
 connections.

 Yes, of course: man ssh_config - the first sentence.
 
 Try sshd_config since it is, after all, the daemon that you want to 
 configure rather than the client.

Thank you so much. Now that this mystery is solved, could you explain
me and MM the meaning of a follow-up?!

Thorsten


--
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-1.5.6-1 Vim now broken

2004-01-19 Thread Thorsten Kampe
* Frédéric L. W. Meunier (2004-01-20 06:47 +0100)
 On Mon, 19 Jan 2004, Christopher Faylor wrote:
 And, no, screen becoming screwed up in an rxvt session is not
 a show stopper.
 
 Yes, but it's something that will make all screen users not
 upgrade to 1.5.6 or downgrade to 1.5.5 when they see how broken
 it's. Broken dettach / reattach is nothing compared with such a
 problem.
 
 BTW, it's broken in everything (rxvt, XTerm, and cmd.exe).
 
 I guess it'd be a show stopper if screen were part of Cygwin.
 Still, I think it's more important than Vim, as there are a
 dozen editors but no screen alternatives.

How could you exactly predict what was going to happen on my pc this
morning?! :-)

Thorsten


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



postinstall scripts not updated

2004-02-02 Thread Thorsten Kampe
Quite a few of the postinstall scripts are not updated in respect to
the transition from /usr/doc to /usr/share/doc which results in
important rcfiles in /etc not to be written.

Just a quick look at a fresh install from today:

[EMAIL PROTECTED] /etc/postinstall/wget.sh.done
cp: cannot stat `/usr/doc/wget-1.9.1/sample.wgetrc': No such file or directory

[EMAIL PROTECTED] /etc/postinstall/zsh.sh.done
Installing default /etc/zprofile
install: cannot stat `/usr/doc/zsh-4.1.1/StartupFiles/zprofile': No such file or
 directory
 
Thorsten


--
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: Local (polish) characters

2004-02-07 Thread Thorsten Kampe
* Krzysztof Duleba (2004-02-08 00:19 +0100)
 Is there a way to make Cygwin display polish characters? I see no
 setconsole, setfont programs, nor /etc/sysconfig directory. Does Cygwin
 support local character sets at all?

Cygwin itself is just an emulation layer so it cannot display any
character at all. For applications like bash, ls or other it depends
on your settings.

BTW (on my Gentoo box):

[EMAIL PROTECTED] setconsole
zsh: command not found: setconsole
[EMAIL PROTECTED] d /etc/sysconfig
/etc/sysconfig doesn't exist!
[EMAIL PROTECTED]

Thorsten


--
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: Local (polish) characters

2004-02-08 Thread Thorsten Kampe
* Krzysztof Duleba (2004-02-08 05:08 +0100)
 Igor Pechtchanski wrote:
 Now bash works ok. Thank you very much for your help. Now I just have to
 remember to use d directory lister instead of ls (which produces ?? where
 Polish characters should be) :-)

As I said, it depends on the configuration of your specific 
application: ls --show-control-chars.

Thorsten


--
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-4.1.1-2 still seems broken under Cygwin-1.5.7-1 .

2004-02-12 Thread Thorsten Kampe
* Peter A. Castro (2004-02-12 08:03 +0100)
 On Wed, 11 Feb 2004, Morris Siegel wrote:
 My PC is running under Windows XP Professional, and until recently with
 Cygwin-1.5.5-1 and zsh-4.1.1-1 .  I upgraded to Cygwin-1.5.6-1, installing
 everything available, in particular including zsh-4.1.1-2 .  zsh behaved in
 a buggy fashion.  I reported it; you kindly replied that similarly problems
 had been reported by others, and that Cygwin-1.5.7-1 should fix matters.  I
 upgraded to that, and the behavior is improved, but still buggy: (1)
 sometimes when I start zsh it hangs, sometimes it starts normally; (2) zsh
 command-line editing generally badly messes up the display when long command
 lines are being edited.  I seem to recall that problem (2) was a consistent
 nuisance a while back, but then some new Cygwin release (I don't remember
 which) fixed it.  (I generally run zsh under screen, by the way.)
 
 cgf said in earlier email that this has been fixed in CVS and will be
 pushed into the next release.  For the moment, if you really need zsh
 (like me :), downgrade to 1.5.5 and wait for the update to appear.

No, use the new snapshot 1.58s.

Thorsten


--
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: using setup to update cygwin

2004-02-16 Thread Thorsten Kampe
* Kevin Ison (2004-02-16 14:47 +0100)
 I have been using cygwin for a few months now and reading through the
 documentation and FAQs it mentions that I can update the software packages
 installed with the setup program that I used to install cygwin.
 
 It doesnt seem to work though.  When I run the setup program it does not
 return any newer version of the software packages I have already installed.
 I am running version 1.5.5 of cygwin and I know the latest  version is 1.5.7
 .  My question is how do I get newer versions of those packages I have
 already installed.  I did not delete the subfolders that setup originally
 created.  According to what I read when I run the setup program it should
 get the latest or current versions of packages available.  Is there
 something I need to do to insure I always get a current list?

*sigh* Yeah, choose Install from Internet on the third setup screen.

Thorsten


--
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: execute RPM files

2004-02-17 Thread Thorsten Kampe
* Jimmi Wolf (2004-02-17 11:22 +0100)
 Is it possible to execute a RPM file in cygwin, and if yes, how???

What do you mean by execute a RPM file? RPM files are not
executable. If you mean open then yes. Just install rpm. If you
mean install, probably yes, but it wouldn't make sense. As you could
know this relates to the question is it possible to run Linux
binaries on Windows? The answer is no, of course.


Thorsten


--
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: new to cygwin, not understanding a setup issue...

2004-02-18 Thread Thorsten Kampe
* Adam Reiswig (2004-02-18 01:45 +0100)
 Hello, I am new to cygwin.  I am running a windows 2000 machine.  I just 
 finished downloading and installing cygwin.  When the setup finished I 
 ran the Cygwin icon on my desktop, got the bash prompt and every command 
 I type comes back command not found.  The head of the bash window 
 reads bash: /etc/profiles: Permission denied.

The path isn't set - same as in Windows. Try /bin/ls instead of
ls. The path is set in /etc/profile.

 Is there a cygwin for dummies out there somewhere??

The FAQ and the user manual. You'll find them on your own, won't you?


--
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: Running cygwin cron under WinXP SP1

2004-02-19 Thread Thorsten Kampe
* Russell Hind (2004-02-19 10:55 +0100)
 I have just installed the latest cygwin and set up cron to run using
 
 cygrunsrv -I cron -p /usr/sbin/cron -a -D
 cygrunsrv -S cron
 
 It is running as a service (both in XP task manager and in ps -ef)
 
 But I can't get it to execute commands.  I have tried a crontab as both 
 /etc/crontab and /var/cron/tabs/Russell

How did you create those? crontab -e for the latter? You know that the
system-wide crontab has a additional field for the user?

cron logs tho /var/whatever and into the eventviewer. Please consult
those two logs and explain further can't get it to execute commands. 

Try redirecting the output with . For executables use the full path
or the PATH variable inside the crontab. Please read the fine manual
which answers all FAQs.

Thorsten


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



man completion in zsh not working

2004-02-20 Thread Thorsten Kampe
This has been a problem for a quite a while to me: the man command
doesn't complete to the possible manpages anymore. For example man
zsha[tab] should complete to man zshall. It worked some time ago in
Cygwin zsh and it stills works on my Gentoo Linux box.

Here are the facts: zsh and man are uptodate. I use exactly the same
.zshrc on both hosts and it doesn't contain any MAN* environment
settings. /etc/man.conf is exactly the same on both hosts (generated
automatically from man.conf.in by the configure script)

,--- * MANPATH statements in /etc/man.conf
| MANPATH /usr/share/man
| MANPATH /usr/X11R6/man
| MANPATH /usr/local/man
| MANPATH /usr/man
`---

,--- * Cygwin host (where it doesn't work)
| % echo $MANPATH
| :/usr/X11R6/man:/usr/ssl/man
| ^ see the empty path? ($manpath is '' /usr/X11R6/man /usr/ssl/man)
| % manpath
| /usr/share/man:/usr/X11R6/man:/usr/ssl/man:/usr/man:/usr/local/man
`---

,--- * Linux host (where it works)
| % echo $MANPATH
| 
/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/
| X11R6/man::/opt/sun-jdk-1.4.2.03/man:/usr/qt/3/doc/man:/opt/vmware/man
| % manpath
| zsh: command not found: manpath
`---

/etc/zprofile and /etc/profile.d/zshell.zsh don't contain man
settings. When I manually do export MANPATH=/usr/share/man then zsh
does the man completion.

My questions are (I know they might not be specifically Cygwin
related):

1. Where and how is $MANPATH assembled?

2. Where does the path that the manpath command shows come from?

3. Why does $MANPATH and manpath output differ?

4. Why is /usr/share/man not in $MANPATH?

5. Why is the first entry in $MANPATH empty?

6. How and where can I fix this?


Thanks to all that can help,
Thorsten


--
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: vi and cygwin

2004-02-20 Thread Thorsten Kampe
* Totte Karlsson (2004-02-20 23:49 +0100)
 my question was if vi is available under cygwin. I know about vim and about
 it's compatible option. Just curious if there is a pure vi available and
 it seems not to be...

If you knew vim you knew that it has a vi compatibility mode - vim can
emulate vi perfectly.

Thorsten


--
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: python and cygwin

2004-02-20 Thread Thorsten Kampe
* Totte Karlsson (2004-02-21 00:29 +0100)
 OK, I see, However, it seems as if I can execute the win32 python
 interpreter from within the cygwin bash shell, and it seems to work
 as long the cygwin path come into play, which is unfortunate. 
 
 I thought the idea with cygwin was to provide unix tools working
 under windows,

Exactly. That's why you need the python binary for Cygwin. 

 not to make windows into unix/posix?

I hope at least you know what you mean by that. 

 Now it looks as if I need to have two sets of python running, one
 for cygwin and one for windows,

In fact you don't, as long as you translate Posix paths to Windows
(via cygpath -w). Many Cygwin utilities also understand Windows
paths (cd 'C:\', cd C:/, etc).

 and both are running in windows!

No, one runs in Windows and the other one under Cygwin. You can always
run the Cygwin binaries from Windows (ls, d, etc. work for me in a
Windows cmd.exe console window). Many Windows binaries work *directly*
in Cygwin bash or zsh (also much slower, so it's wise to execute them
in a cmd subshell).


Thorsten


--
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: vi and cygwin

2004-02-20 Thread Thorsten Kampe
* Totte Karlsson (2004-02-21 02:25 +0100)
 does not mean that vim is vi! Read my question!

Read my answer: vim behaves like vi, it is called with vi in the
shell and therefor it /is/ vi (http://www.netbsd.org/Misc/call-it-a-duck.html).

The original vi is not free software so you will hardly find it on any
Linux machine (same with ksh for example).

Thorsten


--
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: python and cygwin

2004-02-20 Thread Thorsten Kampe
* Totte Karlsson (2004-02-21 02:45 +0100)
 When I open up a cygwin-bash on windows, I just thought that I
 could use my already installed win-32 python. I realize now that
 you can't

As I already told you in my answer: You *can* with a little effort.
Python as a multiplatform scripting language is even better suited for
that as any other Windows tool/program.

 and I think that creates problems. As a programmer I don't like do
 have to duplicate things. I only want one repository.

When you install Zope for instance on Windows you have to make some
effort to use an existing Python installation and not the Python
interpreter that comes with Zope. Same with Cygwin.

Thorsten


--
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: Can I change sfuuser's password ?

2004-02-27 Thread Thorsten Kampe
* lau bella (2004-02-27 08:20 +0100)
 In Cygwin 1.3.10 (win2k SP3 Advanced Server) , sfuuser
 password is same as username. 

Aah, Cygwin 1.3.10. This is antique!

 1. For security reason, can I change the sfuuser
 password ?

Yes.

 Any impact ?

Maybe - as for any user account, services might be started under that
account.

 2. What's the usage and privilege of sfuuser ? 

Don't know. SFU = Microsoft Services for Unix - ask Microsoft.

 3. If changing sfuuser password is not recommended,
 any method to mininize the security impact ?

UPDATE Cygwin and disable the account and update the SP of Windows
2000.

Thorsten


--
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: 'less' can not find dll

2004-02-27 Thread Thorsten Kampe
* MEA-MikeFriedrichs (2004-02-27 06:38 +0100)
 I just installed Cygwin from the net, and having problems with 'less'. Its 
 always looking for '/bin/cygpcre-0.dll'
 but not found in the path.
 
 I've searched all partitions with no success.
 
 find / -name *less*

Errm, did it say less: not found? Wouldn't make find / -name
cygpcre* make more sense?

 Where can I get the required 'dll' ?

* Setup Package Search
  http://cygwin.com/packages/
  
The name of the dll might lead you the right way.


--
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.7: Problems with german umlauts in bash/rxvt command line

2004-02-27 Thread Thorsten Kampe
* Olaf Föllinger (2004-02-27 09:49 +0100)
 I have trouble to show german umlauts in bash command line in rxvt.

What about zsh (or another shell) and the standard Cygwin Console?

 I get are the following values:
 
 $ \344\366\374
 bash: äöü: command not found
 
 I have set the following in .inputrc
 
 $ less .inputrc
 set input-meta on 
 set convert-meta off 
 set output-meta on 

This is the canonic way. Make sure that the file is sourced. But I
have no problems here - although typing non-ascii characters in a
shell doesn't make sense. The only use is showing files with ls or d -
which is not a shell thing.

Thorsten


--
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.7: Problems with german umlauts in bash/rxvt command line

2004-02-27 Thread Thorsten Kampe
* Alejandro Lopez-Valencia (2004-02-27 14:42 +0100)
 On Fri, 27 Feb 2004 12:35:23 +0100, Thorsten Kampe wrote in
 [EMAIL PROTECTED]:
 although typing non-ascii characters in a
shell doesn't make sense. The only use is showing files with ls or d -
which is not a shell thing.
 
 Really?
 
 Say, you use cygwin to do text processing (I do, with the help of a
 bleeding edge groff), and in a whim you decide to write poetry to your
 girlfirend. Being a German speaker, you type, e.g.,
 Lieder_für_meine_geliebte.tr. 
 
 Did you or did you not need to type high-bit charecters in your shell?
 (Don't say you type them from within your editor, that's cheating).

I simply wouldn't generate filenames with non-ascii characters in a
shell. Same with spaces. Sooner or later some application will choke
on it and it'll take me hours to search and find the script or
application and fix it or make a workaround.

Lieder_fuer_meine_Geliebte.tr suffices and probably I'd call it
poems_for_my_sweetheart.txt because she comes from Poland and we
communicate in English... :-)

Thorsten


--
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: 'less' can not find dll

2004-02-27 Thread Thorsten Kampe
* redirected to the list*
* do NOT send private email *

* MEA-MikeFriedrichs (2004-02-27 17:29 +0100)
 At 04:18 AM 2/27/2004, you wrote:
 * MEA-MikeFriedrichs (2004-02-27 06:38 +0100)
 I just installed Cygwin from the net, and having problems with
 'less'. Its always looking for '/bin/cygpcre-0.dll' but not found
 in the path.

 I've searched all partitions with no success.

 find / -name *less*

 Errm, did it say less: not found? Wouldn't make find / -name
 cygpcre* make more sense?

 Where can I get the required 'dll' ?
 
 I have executed 'find / -name *less*', which indicates 'less' is
 available.

Which you already knew because less gave you this error message and
if less wouldn't be available it couldn't tell you anything.

By the way locate is your tool of choice.
 
 I have then executed 'find / -name cygpcre*, and NO
 'cygpcre-0.dll' is found. This is the file that is missing.
 
 Where can 'cygpcre-0.dll' be located?

Do you suffer from an inability to read postings that are answers to
your posting until the very end? If so, I repeat my answer:

,---
|  Where can I get the required 'dll' ?
| 
| * Setup Package Search
|   http://cygwin.com/packages/
|   
| The name of the dll might lead you the right way.
`---

Thorsten


--
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: 'less' can not find dll

2004-02-27 Thread Thorsten Kampe
* MEA-MikeFriedrichs (2004-02-27 22:29 +0100)
 At 11:49 AM 2/27/2004, Thorsten Kampe wrote:
* redirected to the list*
* do NOT send private email *

* MEA-MikeFriedrichs (2004-02-27 17:29 +0100)
 At 04:18 AM 2/27/2004, you wrote:
 * MEA-MikeFriedrichs (2004-02-27 06:38 +0100)
 I just installed Cygwin from the net, and having problems with
 'less'. Its always looking for '/bin/cygpcre-0.dll' but not found
 in the path.

 I've searched all partitions with no success.

 find / -name *less*

 Errm, did it say less: not found? Wouldn't make find / -name
 cygpcre* make more sense?

 Where can I get the required 'dll' ?

 I have executed 'find / -name *less*', which indicates 'less' is
 available.

Which you already knew because less gave you this error message and
if less wouldn't be available it couldn't tell you anything.

By the way locate is your tool of choice.

 I have then executed 'find / -name cygpcre*, and NO
 'cygpcre-0.dll' is found. This is the file that is missing.

 Where can 'cygpcre-0.dll' be located?

Do you suffer from an inability to read postings that are answers to
your posting until the very end? If so, I repeat my answer:

,---
|  Where can I get the required 'dll' ?
|
| * Setup Package Search
|   http://cygwin.com/packages/
|
| The name of the dll might lead you the right way.
`---
 
 You are one smart 'ass', or is this your personalty hidden behind a 
 keyboard. If this is the only way you have to communicate assistance, you 
 should stick to your day job!!

I told you the canonical way to search for missing files and
dependencies. Obviously you don't want my help and I honor your wish.
 
 I searched for 'cygpcre-0.dll' at  http://cygwin.com/packages and all I 
 found is where it should reside in the tree structure. I didn't see any 
 means to download this file.

Obviously I should have guessed or otherwise known that you did that
although you didn't mention it at all in your email. Well, I'm sorry
for not being able to read your mind. It won't happen again.

T.


--
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: Man not finding pages

2004-03-01 Thread Thorsten Kampe
* Ross Boulet (2004-02-28 23:06 +0100)
 I solved my own problem with man not finding pages but in doing the research
 on it, I found something I thought might be worthy of mentioning.  From the
 message:
 
 http://www.cygwin.com/ml/cygwin/2002-04/msg00064.html
 
 I learned the a colon prefix to $MANPATH allows man to search its default
 paths in addition to what is specified in $MANPATH.  The
 /etc/profile.d/openssl.sh script handles this ok.  However, the
 /etc/profile.d/XFree86-man.sh does not handle it the same way.  I had an
 empty $MANPATH (since corrected by a new /etc/profile script).  The
 XFree86-man.sh ran first and found no $MANPATH and thus assigned
 /usr/X11R6/man (no colon prefix) to $MANPATH.  Then openssl.sh appended
 :/usr/ssl/man.  The absence of a leading colon caused man to not find the
 basic pages so that basic stuff like 'man ls' produced 'No manual entry for
 ls'.
 
 I would suggest the XFree86-man.sh script be modified to add a colon prefix
 to $MANPATH to be consistent with the openssl.sh treatment of an empty
 $MANPATH.
 
 My apologies if this should have been posted to the cygwin-xfree ML, but I
 thought it appropriate here because it affects more than X.

You. Man. Are. Genius.

Recently I posted http://article.gmane.org/gmane.os.cygwin/44906 but
found no answer or solution. Suddenly completion started to work again
but on the next day not even calling a single man page was found by
man because of the wrong $MANPATH.

Now I corrected 'export MANPATH=${X11MANPATH}' to 'export
MANPATH=:${X11MANPATH}' in XFree86-man.sh and now everything is
okay.

Thanks, Thorsten


--
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 problem report

2004-03-01 Thread Thorsten Kampe
* Seiji Tokunaga (2004-03-01 21:27 +0100)
 I have trouble getting my cron to work.

Please consider explaining what you mean by this otherwise any answer
to your report won't satisfy you.

 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log

This script (`date`  ${HOME}/foo.log) doesn't even work in a plain
shell so for sure not in cron. Read /var/cron/log, the system and
application entries in the eventviewer and the mail that cron probably
sent you in ~/dead.letter.

Hint: use executables with full path in crontab or set PATH in
crontab. Don't take for granted that the normal environment variables
are set ($HOME) and consider reading the man page of crontab.

Thorsten


--
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: multiple cron cause problem

2004-03-02 Thread Thorsten Kampe
* Michael Chen (2004-03-02 12:08 +0100)
 As many users did, cron starts with bash. (probably in .barshrc)

Sorry? Cron is a normal windows service and a look into your .bashrc
would advise you: grep cron ~/.bashrc. And bash is not the default
shell for cron - if you meant this - but sh: man 5 crontab.

 But we keep open new terminal, because of more jobs or previous termial
 deadlock.
 Thus we started many cron process at different time.
 Will this cause problem?

Cron is not started via bash and it doesn't use a terminal.
 
 I observed that cron procedures remain in the windows NT Task Manager even
 after the terminal finish or be throttled.
 Is it supposed to be?

Sorry, but again: cron has nothing to do with your terminal. It
forks when it executes a new job and terminates afterwards.
 
 It is also observed that cygwin.bat in the distribution, which uses NT
 termial + bash is worse at terminating cron, while xterm+bash is better at
 cleaning up.

Definetely not as cron is a normal windows service and runs in the
background - so no terminal is involved at all (Windows console, rxvt,
xterm).

I think you have a totally wrong or missing impression of what cron is
and what it does. Please read the manpage of cron and crontab and
/usr/share/doc/Cygwin/cron.README

Thorsten


--
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: crontab: no changes made to crontab

2004-03-02 Thread Thorsten Kampe
* Michael Chen (2004-03-02 06:57 +0100)
 Dear all, since the first time using crontab -, I can never change the
 crontab file anymore. crontab -e calls emacs, but cron just discarded any
 new modifications. The emacs saved the crontab.* into /tmp. What's
 wrong? Thanks.

Try using another editor as Emacs is a GUI editor.


--
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: multiple cron cause problem

2004-03-02 Thread Thorsten Kampe
*Please do NOT send private email*

* Michael Chen (2004-03-02 20:12 +0100)
 I read /usr/share/doc/Cygwin/cron.README

I doubt that.

 and see that cron in cygwin is actually a windows 2000 service,
 surprising!

It is not by itself. You have to install it as described in the
readme.

 But does it mean I shoud see cron in the NT Task Manager once
 windows 2000 starts?

If you set the start type of the service to automatically, yes.
Otherwise no.

 I checked carefully, and it is not there.

Either you didn't install it as a services or it isn't run
automatically: read /var/cron/log, the system and application entries
in the eventviewer.

 Without calling it from termail, cron won't do anything on my
 machine.

As you stated it DOESN'T DO ANYTHING EVEN WHEN CALLING IT FROM A
SHELL. What do yo type? - net start cron?

 I editted my crontab file /var/cron/tabs/Administrator to let it
 write date to a log file every minute and nothing happens!

I and others already told you that your command line is totally wrong.
You didn't even bother to test it in a shell. Do you expect cron to
compensate for your inability in testing?!

 By the way, cron man page says that it send output to user. But I
 didn't see 'mail' or 'sendmail' package in Cygwin. Why?

Because you didn't read /usr/share/doc/Cygwin/cron.README. There it
says that Mail is send using /usr/sbin/ssmtp instead of using
sendmail. It does it even if there is no ssmtp by redirecting output
and error messages to ~/dead.letter.


Thorsten


--
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: 256 colors for bash/rxvt-2.7.10-4 ?

2004-03-06 Thread Thorsten Kampe
* Mikka (2004-03-06 14:04 +0100)
 You wrote:
 Set the following values in .Xdefaults.

 Now we have defined 16 Colours out of 256. These 16 colours can now be
 used in rxvt refering to them by name(colorX) or number.
 
 Okay, building Rxvt*color references in .Xdefaults works fine.
 However, I can't find any hint in a documentation or (web) tutorial how
 to point to these values within a prompt definition.
 Let's say, I've got the following prompt:
 
 PS1='\[\033]0;\l \w\007\# [EMAIL PROTECTED] '
 
 That reads:
 
 1 [EMAIL PROTECTED] _
 
 with the current console's name added to the console title (tty0 ~).
 Including the colouring information, my prompt reads
 
 PS1='\[\033]0;\l \w\007\# \[\e[37;[EMAIL PROTECTED];1m\]\w\[\e[0m\] '
 
 The line above colours the [EMAIL PROTECTED] section bright (i.e. bold)
 white, and the path section (~) green. The rest (both line numbering
 and entered text) is standard (white, or rather some sort of gray).
 Not too special, though.
 
 I want the path section to be GreenYellow (#ADFF2F), and the
 [EMAIL PROTECTED] part being rendered OrangeRed (#FF4500).
 In my .Xdefaults I set:
 
 Rxvt*background:#11
 Rxvt*backspacekey:  ^H
 Rxvt*boldFont:  Andale Mono-14
 Rxvt*color0:#11
 Rxvt*color1:GreenYellow
 Rxvt*color2:LightGray
 Rxvt*color3:OrangeRed
 Rxvt*color4:White
 ...
 Rxvt*cursorColor:   GreenYellow
 
 The values GreenYellow and OrangeRed are definitely accepted by
 rxvt, so I assume these settings are valid.
 
 $TERM is set to rxvt (also tried it with cygwin) - dunno whether
 that matters - but how to refer correctly to the .Xdefaults colour
 values?
 
 $color(0), ... $color(15) ?
 $color0, ... $color15 ?
 $Rxvt*color0, ... $Rxvt*color15 ?
 
 Who knows, maybe bash 2.05b.0(1) lacks extended colour prompt support
 after all?

Maybe. But how is bash supposed to know what you defined in .Xdefaults
for rxvt? These are only rxvt settings.
 
 The second thing, I intend to change is the behaviour of the ls output.
 I've alias'd ls to something like:
 
 alias ls='ls --color=auto --show-control-chars'
 
 The --color thing provides a cyan, blue and green output that is not too
 pleasant to read. It should be able somehow to change these default
 colours as well, but how?

man dircolors
man d

Thorsten


--
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 4.1.1-3 on W2000 hangs with command not found

2004-03-08 Thread Thorsten Kampe
* Davide Marchignoli (2004-03-08 11:38 +0100)
 Zsh hangs when running a non-existent command. It usually hangs
 as soon as you give a non existing command, however sometimes
 it works correctly two or three times and then hangs.

What do you mean by non-existant command?
 
 I am running zsh also on Win XP and there it behaves correctly.

Some people were already describing similar things (including me). It
appears to me (running Windows XP) that things like aeiou don't hang
while /bib/aeioiu hang. I have to do unsetopt correct correctall
(both!) to make it go away. On my Gentoo Linux box (same hardware,
same .zshrc) I have no problems and not a single second delay.

If the problem is the same for you I might suggest debugging this with
strace (with all the correct options set and after that unset). I
have no experience with strace and just very limited time this week so
I cannot myself.

Thorsten


--
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 4.1.1-3 on W2000 hangs with command not found

2004-03-08 Thread Thorsten Kampe
* Christopher Faylor (2004-03-08 14:43 +0100)
 On Mon, Mar 08, 2004 at 01:55:31PM +0100, Thorsten Kampe wrote:
* Davide Marchignoli (2004-03-08 11:38 +0100)
Zsh hangs when running a non-existent command.  It usually hangs as
soon as you give a non existing command, however sometimes it works
correctly two or three times and then hangs.

What do you mean by non-existant command?

I am running zsh also on Win XP and there it behaves correctly.

Some people were already describing similar things (including me).
 
 Yes.  This problem was reported within 48 hours after 1.5.7 was released.
 It was reported as a problem which existed in 1.5.6, for which the reporter
 was waiting for a fix to appear even though the problem was not reported.
 
 The problem was fixed within a few hours after being reported and has been
 fixed in snapshots ever since.
 
 So, download a snapshot or wait for 1.5.8.  1.5.8 is due to be released in
 2004.

I'm already running the snapshot from 2004-Mar-05 (and now
downloading the one from 2004-Mar-06) all the 1.5.8 snapshots I
tried didn't fix that.

Thorsten


--
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 4.1.1-3 on W2000 hangs with command not found

2004-03-08 Thread Thorsten Kampe
* Christopher Faylor (2004-03-08 15:05 +0100)
 On Mon, Mar 08, 2004 at 02:56:20PM +0100, Thorsten Kampe wrote:
* Christopher Faylor (2004-03-08 14:43 +0100)
 On Mon, Mar 08, 2004 at 01:55:31PM +0100, Thorsten Kampe wrote:
* Davide Marchignoli (2004-03-08 11:38 +0100)
Zsh hangs when running a non-existent command.  It usually hangs as
soon as you give a non existing command, however sometimes it works
correctly two or three times and then hangs.

What do you mean by non-existant command?

I am running zsh also on Win XP and there it behaves correctly.

Some people were already describing similar things (including me).
 
 Yes.  This problem was reported within 48 hours after 1.5.7 was released.
 It was reported as a problem which existed in 1.5.6, for which the reporter
 was waiting for a fix to appear even though the problem was not reported.
 
 The problem was fixed within a few hours after being reported and has been
 fixed in snapshots ever since.
 
 So, download a snapshot or wait for 1.5.8.  1.5.8 is due to be released in
 2004.

I'm already running the snapshot from 2004-Mar-05 (and now
downloading the one from 2004-Mar-06) all the 1.5.8 snapshots I
tried didn't fix that.
 
 Nope.  You are mistaken.  It works fine.  In fact, on checking the archives
 you even told someone to use the snapshot to fix this problem.

Yeah, that was to someone who had problems 1) sometimes when I start
zsh it hangs, sometimes it starts normally; (2) zsh command-line
editing generally badly messes up the display when long command lines
are being edited

I never had these problems myself so I told him to upgrade instead of
downgrade (what the zsh maintainer advised).
 
 If you truly had a problem I am sure that you would have reported it
 prior to this point rather than implying that it worked.

This is just a tiny problems for me. There was a real problem with zsh
where *completion* took a long time (it tried to do DNS lookup -
according to my Personal Firewall - and timed out when I wasn't online
and no DNS was available). This is gone. The other problem is no
problem for me because I use the completion and therefor the correct
mechanism is /very rarely/ triggered. After that zsh caches the answer
and replies immdiately zsh: no such file or directory. (If I'm so
dumb to try it again.)

But please be aware that there may be different problems. The one I
described is with the correct function of zsh (and I figured that
out just today). Davide Marchignoli's problem seems to be different:

% aoidfjkl# immediately: zsh: command not found: aoidfjklj
% /bin/aoidfjklj  # hangs for about ten seconds until zsh: no such file or directory: 
/bin/aoidfjklj

Thorsten


--
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: emacs / libICE.dll

2004-03-09 Thread Thorsten Kampe
* Oodini (2004-03-09 14:12 +0100)
 I've just installed Cygwin on Windows 2000 to learn Unix stuff, and I 
 don't succeed to run emacs.
 
 Windows looks for the missing dll libICE.dll.

http://www.cygwin.com/packages


--
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 4.1.1-3 on W2000 hangs with command not found

2004-03-11 Thread Thorsten Kampe
* Peter A. Castro (2004-03-08 20:39 +0100)
 On Mon, 8 Mar 2004, Thorsten Kampe wrote:
 Also, for the record, I've just tried the latest snapshot, 20040306, and
 running missing commands do not hang or have any other strange behaviour
 as your describe:
 
 ([EMAIL PROTECTED])[101] ~ % les
 zsh: correct 'les' to 'ls' [nyae]? n
 zsh: command not found: les
 zsh: 1240 exit 127   les
 ([EMAIL PROTECTED])[102] ~ % /bin/les
 zsh: no such file or directory: /bin/les
 zsh: 1245 exit 127   /bin/les
 ([EMAIL PROTECTED])[103] ~ % uname -a
 CYGWIN_NT-4.0 garfunkel 1.5.8s(0.111/4/2) 20040306 23:59:38 i686 unknown unknown 
 Cygwin
 ([EMAIL PROTECTED])[104] ~ % cygcheck -s | grep zsh
 zsh 4.1.1-3
 ([EMAIL PROTECTED])[105] ~ % setopt | grep correct
 correct
 correctall
 ([EMAIL PROTECTED])[106] ~ %

 This is just a tiny problems for me. There was a real problem with zsh
 where *completion* took a long time (it tried to do DNS lookup -
 according to my Personal Firewall - and timed out when I wasn't online
 and no DNS was available). This is gone. The other problem is no
 problem for me because I use the completion and therefor the correct
 mechanism is /very rarely/ triggered. After that zsh caches the answer
 and replies immdiately zsh: no such file or directory. (If I'm so
 dumb to try it again.)
 
 My example above has both correct and correctall on and I don't
 experience any problems no matter how many times I try to run a bad
 command.  This goes for weither zsh tries to correct the command or not.
 
 But please be aware that there may be different problems. The one I
 described is with the correct function of zsh (and I figured that
 out just today). Davide Marchignoli's problem seems to be different:

 % aoidfjkl# immediately: zsh: command not found: aoidfjklj
 % /bin/aoidfjklj  # hangs for about ten seconds until zsh: no such file or 
 directory: /bin/aoidfjklj
 
 Sorry, mine returnes immediately, no delay at all.  And this is on an old
 400MHz PII running under a vmware emulator.  Oh, and I tried this same
 setup, with the latest snapshot on a 1.7Ghz system running MS Windows
 native without any problems either.   I also tried both of these on
 network mounted drives and didn't have any delays or problems.
 
 I feel you should examine your environment thoroughly.  Perhaps you have
 more than one copy of cygwin1.dll in your PATH?  When you last upgraded,
 are you sure you existing all cygwin based processes before starting a
 new shell window?

I did that. My .zshrc is *exactly* the same on this host and on my
Gentoo Linux where everything is fine.

I tried to narrow the problem by deleting

* /etc/zprofile
* /etc/profile.d/zshell.zsh
* ~/.zshenv
* ~/.zprofile
* ~/.zlogout
* ~/.zlogin

and everything in .zshrc except setopt correct correctall. It's
those two options that make zsh hang. I even unset all environment
variables inherited from Windows. No change.

If you have any hint how to find the problem I'd be glad to assist
(strace). By the way - I freshly installed Cygwin on this box and the
Windows installation (Windows XP SP1) is two months old. I deactived
my PF (Kerio - newest version) and even detached from my NetWare. Even
the Novell Client is the latest one. And locate shows only one
cygwin1.dll

Thorsten


--
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: [ANNOUNCEMENT] Updated Cygwin Package: rebase-2.3-1

2004-03-12 Thread Thorsten Kampe
Following up a thread in comp.lang.python...

* Jason Tishler (2004-03-12 17:00 +0100)
 Old News:
 === 
 WARNING
 It is *strongly* recommended that users only use rebaseall unless they
 *really* know what they are doing or are instructed by one of the Cygwin
 developers.
 /WARNING

This warning is in my not native english speaking opinion to be
misinterpreted. I understood it as only when you *really* know what
you're doing, use 'rebaseall' (and in all other cases 'rebase'...)
but you probably meant use only 'rebaseall' (and not rebase)
unless...


Thorsten


--
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: Difference between just having cygwin1.dll and running under cygw in

2004-03-12 Thread Thorsten Kampe
* George Hester (2004-03-13 01:24 +0100)
 This coming from a whipper-snapper I don't expect a response.  But you sure have a 
 famous name.
 Now if I could just get the Korn Shell in cygwin or integrate UWin into cygwin that 
 would be really neat.
 
 George Hester
 __
 Dave Korn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 -Original Message-
 From: cygwin-owner On Behalf Of Larry Hall
 Sent: 11 March 2004 20:28
 
 At 03:17 PM 3/11/2004, you wrote:
 What's the difference between running an executable in the cygwin
 environment and running it in a Win2K DOS shell on the same 
  machine(which obviously has cygwin1.dll)?
 
 As I mentioned in another thread of mine, I have a 
 program(port of objcopy)
 that I've compiled that runs just fine under cygwin, but 
 crashes with a
 stack violation whenever I run it under a DOS window on the 
 same machine! 
 
 There's really no significant difference, assuming your DOS 
 shell can see cygwin1.dll and it's the same one you get when 
 you run under your Cygwin shell (having more than 1 
 cygwin1.dll on your system is a *very* bad idea anyway).  
 Certainly, there can be all kinds of differences in the 
 environment, literally, but it should be pretty obvious if 
 you're dependent on some environment variable or something 
 that's not set for Windows.  Maybe you just need to debug it 
 and see where the problem is and why you get it.  
 Like I said, objcopy that comes with Cygwin's binutils works 
 just fine for me outside of a Cygwin shell so it's not a 
 problem with the tool in general.
 
 Larry
 
   I think you may slightly underestimate the amount of difference it makes.
 For example, it's going to make a big difference to the runtime memory
 layout.  If you run under bash you're going to have a whole load of posix
 environment vars at the very top of your runtime stack.  I could easily
 imagine a stray pointer or stack smashing bug that harmlessly scribbles on
 the environment vars under bash but writes over what is active program stack
 at the same address / offset-from-sp when run from dos.  However, I agree
 with your conclusion: any *correct* program should run equally well under
 either, and I think in this case it's not that running under DOS breaks the
 program, but that it just happens to get lucky and work by chance under
 bash.
 
 My makefile does the same thing as the objcopy
 makefile, but the result of my compilation is something that 
 only works under cygwin.
 
   That's quite an assertion to make!  How did you generate your makefile,
 and how can you be really sure it's doing exactly the same?
 Autoconf-produced makefiles are fairly hairy; if you've hacked up the
 autoconf one, you're probably in the clear, but if you've tried reading the
 autoconf one and duplicating it's effects from scratch, you may easily have
 introduced a discrepancy.  However, that's a side issue; it's unlikely to be
 a compiler option that's causing your problem.
 
   The fact that it's hanging in malloc suggests that it's very likely that
 the root cause of the crash is trashing the heap, most likely by writing
 past the end of a malloc'd block of memory.  Beyond that it's difficult to
 speculate, particularly since we don't really have any idea what sort of
 changes you've made to the code.  You should investigate any of the changes
 you've made that refer to arrays or malloc'd memory, or perhaps use some
 kind of error-checking malloc wrappers - e.g. efence,
 http://perens.com/FreeSoftware/ (ftp site currently down, it seems) or
 http://freshmeat.net/projects/efence/?branch_id=2277release_id=7043 .
 
   Of course it's always possible that it's not the code you've changed that
 is overwriting memory but something elsewhere by means of some indirect and
 unexpected interaction.  Those are the worst kinds of bugs to look for, but
 malloc-wrappers might still help.
 
   How big are the changes you've made to the source?  Minor overhaul or
 radical surgery?
 
 cheers, 
   DaveK
 -- 
 Can't think of a witty .sigline today
 


pdksh


--
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: cygXft-2.dll cannot be found...

2004-03-14 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2004-03-14 14:07 +0100)
 This application has failed to start because cygXft-2.dll was not found.
 Re-installing application may fix this problem.

http://www.cygwin.com/packages/


--
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: cygXft-2.dll cannot be found...

2004-03-14 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2004-03-14 14:33 +0100)
 It's the problem of starting X. I cannot even start X after typing startx. I
 just install the latest package of X.
 
 Jason
 
 * [EMAIL PROTECTED] (2004-03-14 14:07 +0100)
 This application has failed to start because cygXft-2.dll was not
 found. Re-installing application may fix this problem.
 
 http://www.cygwin.com/packages/
 
 --

I know. You said that. Search for the package that contains this dll
and reinstall. Before you surely want to find out if that file exists
on your hard disk: updatedb; locate cygXft-2.dll

Thorsten


--
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: Displaying The Cygwin Version

2004-03-16 Thread Thorsten Kampe
* Crescioli, Phil (2004-03-16 20:51 +0100)
 This is probably already been posted, but I cannot find the answer in
 the users guide, FAQ, or google...
 
 I've got Cygwin installed and working fine on my Win XP PC.
 I simply want to display the version of Cygwin I currently 
 have installed.  How ?

uname -rv


--
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: Windows 2k configuration

2004-03-16 Thread Thorsten Kampe
* Christina Kingsberry (2004-03-16 16:33 +0100)
 Does anyone have any information on configuring
 cygwin/rsyc on a Windows 2k server.  I'm interested in
 knowing about required permissions and other settings
 that need to be configured.

less /usr/share/doc/Cygwin/rsync-2.6.0.README


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

2004-03-16 Thread Thorsten Kampe
* Martin Gainty (2004-03-16 16:24 +0100)
 If you
 chmod 511 /bin/bash.exe and run
 bash.exe
 you will encounter same capabilities as executing
 bash.exe --restricted

Nonsense.

 There is a correlation between the 2 operations but I'm smart enough to say
 I don't understand what the bash binary is doing with --restricted flag.

I think you're smart enough to understand what restricted mode does,
but probably not smart enough to find the information although it's
terribly simple: man bash - RESTRICTED SHELL

Thorsten


--
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: Cant debug a Delphi application with cygwin bash opened

2004-03-16 Thread Thorsten Kampe
* Marco Antonio (2004-03-16 21:26 +0100)
 I am coding an frontend application with Delphi 6 and using Postgre on 
 Cygwin as a backend. The connection is made via dbExpress Driver.
 
 The problem is that i cant compile and run the application directly from the 
 Delphi IDE. It compiles fine but takes too much time to connect to the 
 database.
 
 The most interesting is that when i close the cygwin bash window the 
 application connects and opens immediately.

http://cygwin.com/problems.html


--
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 on Perl (.pl) association

2004-03-16 Thread Thorsten Kampe
* Martin Gainty (2004-03-16 21:56 +0100)
 How does one associate CYGWIN Perl with .pl extensions within CYGWIN
 environment?

Same as in the Windows environment: ftype in connection with assoc
(or more convenient with associate from the ResourceKit).

 When I invoke CYGWIN in order to execute a Perl Script I need to state
  perl whatever.pl
 I would like to place an association for .pl to the Cygwin Perl Interpreter
 so when I invoke
 whatever.pl
 the associated Cygwin Perl interpreter will be invoked to interpret the
 script

You're confusing Windows and Unix semantics. There's never been such a
thing as an association between a file extension and an
application/interpreter in Unix/Cygwin.

You might be looking for a she bang which does something similar.

Thorsten


--
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 on Perl (.pl) association

2004-03-17 Thread Thorsten Kampe
* zzapper (2004-03-17 10:44 +0100)
 On Tue, 16 Mar 2004 23:39:58 +0100,  wrote:
* Martin Gainty (2004-03-16 21:56 +0100)
 How does one associate CYGWIN Perl with .pl extensions within CYGWIN
 environment?

 Same as in the Windows environment: ftype in connection with assoc
 (or more convenient with associate from the ResourceKit).

 On MKS I used to have this in a setup script .profile
 
 (ftype is builtin to Windows Command) 
 
 ftype Perl 'c:/usr/local/bin/perl.exe %1 %*'
 
 The advantage of FTYPE is that it allows you to specify which Perl you
 want used (when you might have several installed, and also to ignore
 the shebang which might be set for a distant server

The /disadvantage/ of ftype is that you cannot use it on its own.
First you have to create an association between the extension and a
file type with assoc and then an association between the file type
and the executable. associate let's you skip the first step.
 
 Better I could use Windows Environment variable PATHEXT
 
echo $PATHEXT
 .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.php;.pl
 
 so that I could call a perl script hello.pl
 
 just with hello
 
 Haven't got this to work with CYG

I don't think this can be done.

Thorsten


--
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: Question on Perl (.pl) association

2004-03-17 Thread Thorsten Kampe
* Martin Gainty (2004-03-17 12:59 +0100)
 I this solution works on windows

 But how do we get .pl association with CYGWIN Perl?

I already answered this question. Let me explain it more simply: it
can't be done with Cygwin; it has to be done in Windows. It won't
benefit you in Cygwin (except for cygstart).

assoc /?
ftype /?
associate /?


--
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: SSHD working only once...

2004-03-18 Thread Thorsten Kampe
* Carlos Moffat (2004-03-18 17:02 +0100)
 I have cygwin (latest distibution) running on Win XP pro. I have 
 installed SSHD using:
 
 ssh-host-config -y
 
 and
 
 CYGWIN=tty ntsec
 
 Now, I can ssh to my machine successfully once, but the second time it 
 just hangs there without ever getting to asking a password.
 
 Any ideas? (If you haven't guessed yet, I am not quite an expert on Cygwin)

Run the server and client in debug mode (-v or -vv)


--
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 on Perl (.pl) association

2004-03-19 Thread Thorsten Kampe
* Igor Pechtchanski (2004-03-17 20:51 +0100)
 Again, since you have no such restrictions, simply change the '#!' line at
 the top of your .pl files to '#!/usr/bin/perl -w' (or add it at the very
 top if it isn't there).  This should be enough to allow you to invoke .pl
 files (or any other files, for that matter) from Cygwin shells using perl
 (after appropriately 'chmod +x'ing them, of course).

Another possibility would be to use a decent shell, hehehe:

,---
| New features between zsh versions 4.0 and 4.2
| -
| 
| Syntax and builtins:
| - Suffix aliases allow the shell to run a command on a file by suffix,
|   e.g `alias -s ps=gv' makes `foo.ps' execute `gv foo.ps'.  Supplied
|   function zsh-mime-setup uses existing mailcap and mime.types files
|   to set up suitable aliases.  Supplied function pick-web-browser is
|   suitable for finding a browser to show .html etc. files by suffix alias.
`---

Thorsten


--
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 on Perl (.pl) association

2004-03-19 Thread Thorsten Kampe
* Martin Gainty (2004-03-19 15:48 +0100)
 I have the greatest respect for the incredible job that the CYGWIN
 maintainers have done with BASH shell.

According to /usr/share/doc/Cygwin/bash-2.05b.README the Cygwin
bash is almost plain vanilla. So the Cygwin maintainers have done a
terrific job with Cygwin but not much with bash. 

 But the last time I used a bash shell on a Unix platform I was able
 to setup the .pl to perl association but I cannot within CYGWIN.

Hear, hear - you never mentioned this. So what did you actually do
under this Unix platform and what were the actual error messages when
you tried the same thing under Cywin?! 

 this is a nice to have feature which I would  prefer to boost to a
 must have feature

Use the new zsh (in bash compatibility mode to make your bash scripts
run) - that's what my posting was about.


--
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: Apache obatined in Cygwin Setup is FOREIGN

2004-03-20 Thread Thorsten Kampe
* George Hester (2004-03-20 05:49 +0100)
 [whatever]

And for christ's sake: have a line break and stop these senseless
bottom full-quotings. You're emails are already unreadable enough.

Thorsten


--
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: Trailing commandline arguments not allowed.

2004-03-21 Thread Thorsten Kampe
* George Hester (2004-03-21 06:42 +0100)
 I tried $cygrunsvr -I Apache Oh forget it.  The problem was my servername.
 
 I cannot have $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe -t auto
 
 It has to be $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto

No.
 
 It was the space in Apache 1.3

You know this ancient saying: Spaces have to be quoted, unless
otherwise stoted...?

Thorsten


--
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: Starting a Win32 app from inside Cygwin

2004-03-21 Thread Thorsten Kampe
* Chris Powell (2004-03-21 03:52 +0100)
 I currently use cygwin in WinXP to display X session from an AIX machine.
 This works very well.  The software on the AIX box can call a word processor
 (Uniplex) on the AIX box to edit text files.  What I'd like to do is instead
 of launching the AIX word processor inside of the X session is launch Word
 on the WinXP machine to edit the file out on an NFS.
 
 Another site is currently doing this, but they are all linux and OpenOffice.
 The script on the AIX box does a rsh back to the linux box and opens OO word
 processing with the text file on an NFS.
 
 It there anyway to do this back to a WinXP box?

MS Word is no X client to my knowledge - although answering the
question in your subject: Starting a Win32 app from inside Cygwin
is no problem at all - neither GUI nor command line (in most cases).

Thorsten


--
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: Bash tries to connect to the internet

2004-03-21 Thread Thorsten Kampe
* Joel (2004-03-21 14:49 +0100)
 Hi, I just downloaded Cygwin yesterday, and Bash tries to connect to
 the internet when I open it. ZoneAlarm stopped it though.

Yes, /great/ piece of software... 

 I talked with the nice people at Perlmonks, who say they have never
 had that happen. So I came here. When I open Bash, I get a message
 from ZoneAlarm asking me if Bash can connect to the internet at
 199.166.219.2. Vim does the same thing, including the IP address. I
 downloaded almost all of my packages from www.get-software.com
 using the setup program before switching to the University of
 Calgary mirror. Did I download hacked copies of the software?

Did you try to find out what 216.75.188.50 is? It's a DNS server
(name server) - probably the one you use for all queries.

Thorsten


--
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: Bash tries to connect to the internet

2004-03-22 Thread Thorsten Kampe
* DePriest, Jason R. (2004-03-22 22:51 +0100)
 Joel wrote:
 Why is it trying to access a DNS anyways? Is there any way to stop it
 from doing this?
 
 What is your bash prompt (PS1) set to?
 If you have '\h' in it, it will try to put your host name there and it
 has to look it up before it can display it.

Yes, sure. That's why the default prompt in bash is [EMAIL PROTECTED] .

Couldn't we just end this thread before it gets totally ridicilous...?

Thorsten


--
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 doesn't recognize my internet connection.

2004-03-22 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2004-03-22 21:07 +0100)
 I am somewhat unfamiliar with linux and needed certain linux capabilities, so 
 I installed cygwin and got many things working well.  The only problem that I 
 cannot seem to find a solution to is getting cygwin to recognize the internet 
 connection that windows xp is connected to.  When I try to use curl, it reacts 
 as if the connection is dead.  I suppose something needs to be done to make 
 cygwin realize what the connection this computer has to the internet.

Same as with all Windows applications in Windows and Linux
applications in Linux: nothing has to be done make them Internet
aware. They just use the connection that your computer has and your
route to the Internet.

Thorsten


--
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: launching a remote webbrowser with cygwin

2004-03-23 Thread Thorsten Kampe
* Chris Bullock (2004-03-23 15:14 +0100)
 Background:
 With all the recent Microsoft virii and code leaks we are slowly blocking 
 Windows based pcs from accessing the Internet.  What we are doing is placing 
 a box running a Linux terminal server client beside every Windows box that 
 needs to access the Internet.  This is beginning to get very cumbersome and a 
 huge headache.
 
 What I desire.  I wish to load a very small portion of Cygwin on each Windows 
 box.  When the user clicks the icon it would then connect to the Linux 
 Terminal Server and launch $browser of choice.  First off is this possible? 
 and if so can someone point me on how to make this happen.  I do not want to 
 have to run the entire terminal client.  Currently, what we have tested is 
 from the cygwin prompt we run 'X --query $LTSP:1' but this gives us the 
 entire terminal server and all I want the users to do is access a webbrowser.

Start X, login to the terminal server via ssh, start the browser with
the DISPLAY variable set to the Cygwin X server. That's it.

All you have to do is to automate this: the ssh-session into the
startup file of your X server or Windowmanager.

None of this is Cygwin specific (except the link to the the .bat to
start the X server)

Thorsten


--
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: Bash hangs with the 20040325 snapshot

2004-03-26 Thread Thorsten Kampe
* Rodrigo Medina (2004-03-26 10:40 +0100)
 I have to report that bash hangs with the 20040325 snapshot.
 
 The rxvt window appears, but the prompt never apprears.

I can confirm that. Same with Windows Console. zsh works okay.

Thorsten


--
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: Bash hangs with the 20040325 snapshot

2004-03-26 Thread Thorsten Kampe
* Corinna Vinschen (2004-03-26 16:08 +0100)
 On Mar 26 14:17, Thorsten Kampe wrote:
 * Rodrigo Medina (2004-03-26 10:40 +0100)
 I have to report that bash hangs with the 20040325 snapshot.
 
 The rxvt window appears, but the prompt never apprears.
 
 I can confirm that. Same with Windows Console. zsh works okay.
 
 What system?  I've tried builds from yesterday and today on XP, but
 with both builds, bash in rxvt works fine.

Windows XP SP 1 - all patches. Cygwin is current as of today.

Thorsten


--
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: [ANNOUNCEMENT] Updated: zsh-4.2.0-1

2004-03-26 Thread Thorsten Kampe
* Peter A. Castro (2004-03-26 16:09 +0100)
 An updated version of zsh (zsh-4.2.0-1) has been released and should be
 at a mirror near you real soon.

Thank you.

Thorsten


--
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: [ANNOUNCEMENT] Updated: zsh-4.2.0-1

2004-03-26 Thread Thorsten Kampe
* Peter A. Castro (2004-03-26 18:10 +0100)
 BTW, I've tried many, many ways to reproduce your original hang
 problem but am still unable to do so.

One last try: I have recently set option autocd[1]. Now when I type
something like adksfaj the delay (~ 10 seconds) is the same like
with the correction mechanism (/skjhf/aksjfdh). It is noticeable
that unlike normal completions I cannot stop the hanging search (or
whatever it is) by [Ctrl]-[C].

In /this case/ I have found the culprit: I have / in my CDPATH[2].
When I remove / it works normally by instantly saying command not
found. Of course this doesn't make sense as there are only nine
directories in / and of course having / in cdpath is okay on my
Linux box.

Maybe this bug (or whatever) is just behaving the same way like
the correction bug but my hope is that it may ring some bell on
your side (or any zsh user's)...

 It is my hope that 1.5.10 will resolve this for you.  But, if not,
 some serious debugging will need to be done on your machine.  Have
 you tried the latest snapshot?

I will try it when it's bash-unbroken ;-) 

Thorsten

[1] If a command is issued that can't be executed as a normal
command, and the command is the name of a directory, perform the cd
command to that directory

[2] cdpath=(.. ~ / /cygdrive/h /cygdrive/g /cygdrive/c)


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



unable to start services with snapshots 20040326 and 20040329

2004-04-01 Thread Thorsten Kampe
The subject says it all. This is a full patched Windows XP SP1 box.
The services in question are cron and ssh. cygrundsrv is shown in
the taskmanager but not the corresponding sshd and cron.

20040325 works.

Thorsten


--
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: Shouldn't we put or [CygXwin] here depending on the question?

2004-04-01 Thread Thorsten Kampe
* David (2004-04-01 18:12 +0100)
 I've been using Outlook Express, and it doesn't seem that I can sort
 mails to different folders.

Use a different mail client.

 I can? If so, would you tell me how?

F1


--
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: [Q] Use of UTF-8 in cygwin bash shell scripts

2004-04-02 Thread Thorsten Kampe
* Arifi Koseoglu (2004-04-02 23:23 +0100)
 I have a question regarding the use of UTF-8 in a cygwin-bash shell
 script under windows XP and 2000 (does the behavior differ between
 2000 and XP ?). 
 
 I have a bash script automatically generated with a Perl program,
 which is supposed to copy files from one disk to another and at the
 same time replace all international characters in the filename and
 path with english counterparts (for example c with cedilla becomes
 c). 
 
 The lines in the shell script are all of the form: 
 
 cp source path with international chars in it target with no
 international chars 
 
 The shell script is generated/saved in UTF-8 encoding. (since it
 has to properly contain the international chars). By the way, with
 international I mean the additional characters in the Turkish
 alphabet - but the same question should apply to all non-english
 alphabets. 
 
 Now, I cannot get the script to work. I can 'ls' the files using 
 
 $ ls source path with international chars in it 
 
 the listing displays the Turkish characters properly, however
 whenever I go ahead to execute the script, bash complains that
 source path with international chars in it cannot be found. 
 
 What am I missing? Does bash not support scripts encoded in UTF-8?

*You* should know that otherwise trying to execute scripts is a waste
of time. Ask Google as this is not Cygwin related. 

 Should I use another Unicode encoding (and how?)

You might do that after you have investigated if bash supports it.

 Or shoud I trash this method and try something else (what?).

Use the ISO charset of your language.

 There are thousands of files to be renamed. 

By using a shell (bash) script this should be a trivial task.


Thorsten


--
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: i am newbie anybody help me installation

2004-04-07 Thread Thorsten Kampe
* kiran kumar (2004-04-07 11:35 +0100)
 hello guys,
   i want g++ compiler exactly as it works
 in linux. what are the packages i have to install? so
 it will work well in windows too.

Setup.exe - Developer


--
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: Environment variables for DOS programs

2004-04-07 Thread Thorsten Kampe
* levent (2004-04-07 21:03 +0100)
  From my Cygwin terminal, I want to call DOS programs  which require
 some environment variables to be set properly (such as the commandline
 utility *link.exe* of Visual Studio) for current session.
 
 Unfortunately, this was not possible by simply setting the variables in
 the shell (I am using tcsh). Link.exe refuses to see the environment
 variables defined in tcsh. Is this the desired behaviour?  Is there
 anyway to make the DOS programs see the environment variables in Cygwin
 shells? Or am I making a fundamental mistake in expecting such a behaviour?

Simply export the variable


--
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: applying command shell properties to cygwin.bat

2004-04-17 Thread Thorsten Kampe
* james pentland (2004-04-13 18:04 +0100)
 when i run the cygwin bash shell on system startup
 from the startup entry in the registry the
 foreground/background color and other properties are
 not applied to the command shell in which bash runs.
 
 in the properties dialogue for the cygwin shell
 shortcut, one can adjust the foreground/background
 color, font characteristics, layout and icon of the
 command shell window in which bash runs.
 the properties dialogue can be entered from the
 command shell window or by right clicking on the
 shortcut.
 
 however, these properties are associated with the
 shortcut, not with the batch file which runs bash.
 
 as a consequence, when invoking bash by running the
 batch file, which is named cygwin.bat and is in a path
 something like n:\cygwin\cygwin.bat, the properties
 are not applied and one ends up with a generic command
 shell window - white text on black background, default
 layout, no icon.
 
 how can one associate the properties with the batch
 file cygwin.bat such that they stay with the command
 shell?

This is not Cygwin related but anyway: Why don't you then edit the
properties of the batch file? Or put a color (color 07 for
instance) statement in the batch file?

If you want to change it for all windows then export your settings and
apply them manually for [HKCU\Console\%%SystemRoot%%_System32_cmd.exe]
or even [HKCU\Console].

I do that with for instance:
reg add HKCU\Console /v WindowSize /t REG_DWORD /d 5177431 /f

A better aproach is not to set to use the Windows Console but rxvt. Or
even better in the Unix environment you use (using the colour escape
sequences or your shell or some of terminal manipulation programs
tput, tset or whatever)

Thorsten


--
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: .logout files?

2004-04-17 Thread Thorsten Kampe
* Corinna Vinschen (2004-04-17 09:17 +0100)
 On Apr 16 21:35, Christopher Spears wrote:
 Hi!  I can't seem to find a .logout file.  I found
 
 The reason might be that there is none.

Aah, an answer in the true spirit of cgf ;-)

Thorsten


--
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: Uninstall packages/dependecies

2004-04-17 Thread Thorsten Kampe
* Larry Hall (2004-04-08 23:22 +0100)
 At 03:48 PM 4/8/2004, you wrote:
I'm curious if there is a way to force the setup.exe to disable
automatic dependecies and automatic package upgrade/selection.  It
makes it quite inconvient when trying to uninstall many packages from
the system (whole categories), but when clicking on a few stray ones
(to set to skip/uninstall) it automatically checks a ton more.  
 
 Do you have a specific example of this?

Try to uninstall any two packages where one depends on the other one,
for instance bash and cygwin. Choose to uninstall Cygwin in Setup.exe
and then try to choose to uninstall bash[1]. It first selects
reinstall and this turns keep for Cygwin on again. Now imagine
Cygwin wouldn't be placed underneath bash but some place where you
can't see it.

It's a design bug of Setup.exe...

Thorsten

[1] Okay, this doesn't make sense but it was the only example where I
knew the dependency


--
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: gentoo portage and cygwin

2004-04-19 Thread Thorsten Kampe
* Sven Köhler (2004-04-19 07:58 +0100)
 has anybody ever tried to port the gentoo-portage to cygwin? not that i 
 expect many of the gentoo-ebuilds to compile, but the cygwin-people 
 could maintain their own portage. the gentoo-portage also supports 
 binary packages so that you don't have to compile everything yourself.

* portage-cygwin
  
http://sourceforge.net/project/showfiles.php?group_id=27249package_id=19019release_id=199935

* Gentoo/Cygwin
  https://sourceforge.net/project/showfiles.php?group_id=87984package_id=91835

The first one is available through setup.exe the latter one has its
own Gentoo mailing list (http://www.gentoo.org/main/en/lists.xml)

Thorsten


--
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: [ANNOUNCEMENT] 1.5.24 unable to access files via root / (forward slash)

2007-02-20 Thread Thorsten Kampe
* Jeff2007 (Tue, 20 Feb 2007 07:22:54 -0800 (PST))
 Just to conclude my query, in the file usr/etc/profile I've added the line:
 PATH=
 
 Above my other PATH variables. When I run cygcheck again, all of the
 pre-existing Windows Path environment variables have gone, which seems to be
 what I needed to happen.

No. You were advised to clean up your Windows paths - which are a mess. 
You've just cleaned up by putting the dirt under the carpet.

Do not modify /etc/profile unless you know what you're doing. In this 
case it's obvious you're not.

Thorsten


--
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: Setting up a ssh service

2007-02-25 Thread Thorsten Kampe
* Gregg Levine (Sat, 24 Feb 2007 21:48:21 -0500)
 Obviously it should be part of the base documents, and I know I have
 read them. I'll do more of that before I ask a question that is more
 of a case of RTMF.

I definitely wouldn't recommend to read the manual fu

Thorsten


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

2007-03-02 Thread Thorsten Kampe
* Brian Dessent (Fri, 02 Mar 2007 11:11:54 -0800)
 Vinod Gupta wrote:
 Cygwin was a slow by a factor of 3x. Is that normal?
 
 Yes.

Actually no. The standard approximate guess is a factor of two which 
corresponds to Vinod's testings.


--
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: One happy screen user

2007-03-02 Thread Thorsten Kampe
* Frank Fesevur (Fri, 02 Mar 2007 00:32:28 +0100)
 I am using the screen test package Andrew Schulman mentioned here some 2 
 weeks ago. And so far it works great for me. 
 http://cygwin.com/ml/cygwin/2007-02/msg00446.html
 
 Andrew, thanks for your work. Again, I'm not experiencing any problems 
 with this build. Please consider trying to make it an official cygwin 
 package.

But only after he resolved the issue I reported ;) :

http://cygwin.com/ml/cygwin/2007-02/msg00465.html


--
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: Most recent update broke BZR (?)

2007-03-16 Thread Thorsten Kampe
* Jeff Dooley (Fri, 16 Mar 2007 11:03:31 -0700)
 bzr: ERROR: Couldn't import bzrlib and dependencies.
 Please check bzrlib is on your PYTHONPATH.
 
 Traceback (most recent call last):
   File /usr/bin/bzr, line 48, in module
 import bzrlib
 ImportError: No module named bzrlib
 
 
 I tried reinstalling bzr and the problem persists. Any help would be
 appreciated. Thanks!

Well, is it there or not? Which python are you using? Is bzr in site-
packages?


--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Thorsten Kampe
* Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400)
 Actually, this information is incorrect.
 
 Windows XP stores the first username you choose and will associate your 
 current username to it regardless of what you change it to. Cygwin 
 stores nothing, it is asking Windows what your username is and getting a 
 response of what Windows tells it.

Cygwin asks Windows at first install about the user names and creates 
/etc/passwd. The problem is (or can be) that this list never gets updated 
even if the user names change or new user are added.

As Keith wrote:
Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid.

The secret is to run

mkpasswd -l -c  /etc/passwd
and
mkgroup -l -c  /etc/group

Also you have to run this if you're in a domain (because Cygwin retrieves 
only the local user names, not the domain names).


Thorsten


--
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: slow bash spawn

2007-03-18 Thread Thorsten Kampe
* Marc Compere (Sun, 18 Mar 2007 13:27:31 + (UTC))
 The recent setup.exe update has caused bash.exe to have startup times approx. 
 10x longer than before.  sh.exe starts pretty quickly but bash.exe via 
 cygwin.bat takes ~30 seconds to start.  Took just a couple of seconds before. 
  
 Cpu is nowhere near pinned, hovering around 3% or 5%.
 
 Each bash process spawn from within bash takes a long time as well 
 making ./configure and make take a lot longer than before.
 
 Similar problem here: http://www.nabble.com/Slow-compile-issue-with-cygwin-
 make-since-v1.5.17-t3235008.html
 
 Interestingly enough, sh.exe spawns relatively quickly.

Now, that's really interesting as bash and sh are exactly the same 
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: rxvt + backtab

2007-03-21 Thread Thorsten Kampe
* Chris Sutcliffe (Tue, 20 Mar 2007 22:18:30 -0400)
 Is it possible to configure rxvt to recognize backtab (shift-tab) as
 being different from tab?

No, it's not possible. Rxvt either recognises the difference or not.

Thorsten


--
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: Calling Windows progs from cygwin command prompt?

2007-03-26 Thread Thorsten Kampe
* Gustavo Seabra (Mon, 26 Mar 2007 00:42:02 -0400)
 It's probably a long shot, but... Is there a way to call windows 
 programs from inside a Cygwin shell?

Yes.
 
 Specifically, I'd like to be able to open the Windows version of VMD 
 from the Cygwin command line, like typing:
 
 $ vmd

Yes, like in Windows: either just VMD (if VMD is in the path) or 
/cygdrive/c/path_to_vmd/VMD
 
 Ideally, that would open VMD at the directory I'm visiting in the shell, 
 just like it works in Linux. Is it possible?

As I said: absolutely no problem

T.


--
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: scp doesn't copy - neither returns an error message

2007-03-29 Thread Thorsten Kampe
* Thomas Wiedmann (Thu, 29 Mar 2007 08:37:49 +0200)
  Search the package list for the 'rebase' package.
 
 Meanwhile I found and downloaded the package rebase-2.4-1.tar.bz2, 
 decompressed it and saved the files in the relevant subdirectories of 
 C:\Programme\OpenSSH.

Seems like you neither used Setup.exe nor put the files in the correct 
folder.

 Trying to run rebaseall I've got a message like Entrypoint not found ... 
 (in German: Einstiegspunkt nicht gefunden ...).

You're snipping the DLL in which it was not found
 
 Looks, that the correct installation for resolving my original scp problem 
 is rather complicated.
 
 What to do else to make scp run (and rebase and - what else is required 
 ...)? Please in detailed description - to avoid misunderstandings.

Okay, it won't get any simpler: delete everything you've setup so far, 
delete the Cygwin registry entries and run Setup again. Choose OpenSSH 
and be happy.

Cygwin is an environment and you can't just download single packages and 
expect them to magically work...


Thorsten


--
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: Escape colour codes

2007-04-03 Thread Thorsten Kampe
* Thorsten Kampe (Mon, 19 Mar 2007 11:44:30 -)
 I'm having a problem with colour escape codes for prompts in different 
 applications and terminals. Basically it is like this.
 
 lftp and yafc show a wrong prompt in the following terminals: cmd, 4nt, 
 console and far manager. Basically each coloured part of the prompt is 
 surrounded by two funny faces - the first is white and the second has 
 the desired colour.
 
 Let's say my prompt is [EMAIL PROTECTED]:directory where directory is 
 cyan. 
 Then the prompt looks like this[1]:
 [EMAIL PROTECTED]:[FW][FC]directory[FC][FW]
 
 The interesting thing is that the coloured prompts /do/ work in bash, zsh 
 and screen[2] with cmd, 4nt, console and FAR manager.
 
 Also the coloured prompts from lftp and yafc show correctly in rxvt. They 
 also show correctly in Linux and Konsole so the syntax of the coloured 
 prompt is correct.

Well, I never got no answer so I had to solve this myself: IPython has 
the same problem and the reason is that the prompts are wrapped in 
\001 \002 pairs so readline can properly know the length of each line 
and can wrap lines accordingly.

Obvioulsy all Windows terminals can't interpret those non-visible 
characters (or they don't ignore them like they should or readline 
doesn't eat them like it should).

Where is the culprit here? Cygwin readline not correctly interacting 
with non Cygwin terminals? Windows terminals not understanding common 
readline(?) escape characters?

Is there a way to solve the issue?

Patching Windows cmd is out of question so either readline had to be 
patched (if involved) or all the applications using those \001 (^A) 
start non-visible characters, \002 (^B) end non-visible characters.


Thorsten


--
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: Escape colour codes

2007-04-04 Thread Thorsten Kampe
* Matthew Woehlke (Tue, 03 Apr 2007 16:55:45 -0500)
 Thorsten Kampe wrote:
  lftp and yafc show a wrong prompt in the following terminals: cmd, 4nt, 
  console and far manager. Basically each coloured part of the prompt is 
  surrounded by two funny faces - the first is white and the second has 
  the desired colour.
 
 I don't know what these are. Are they non-Cygwin applications that are 
 looking at the environment variable 'PS1'?

No, these are Cygwin applications using Cygwin readline and allowing 
you to define your own application specific prompt (similar to the PS1 
prompt syntax used in bash and zsh).

 Cygwin apps (e.g. 'printf') should cope with escapes correctly even
 in Windows consoles

That's exactly the point. They actually do cope with the escapes - 
just not with the \001 and \002 used by readline to calculate the 
length of the line.

 (otherwise even bash would not work).

Yes, bash is the exception. Maybe bash doesn't use \001/\002?
 
  Obvioulsy all Windows terminals can't interpret those non-visible 
  characters (or they don't ignore them like they should or readline 
  doesn't eat them like it should).
  
  Where is the culprit here? Cygwin readline not correctly interacting 
  with non Cygwin terminals? Windows terminals not understanding common 
  readline(?) escape characters?
 
 Windows consoles don't understand escapes, period. Also AFAIK nothing 
 except readline understands \[ and \]. But Cygwin understands escapes so 
 Cygwin applications should work even in a Windows console.

Okay, so it's obviously a readline (or Cygwin) bug.

I think it's a readline thing (as rxvt doesn't have the problem) - the 
question is just where to submit a bug report? To the Cygwin readline 
maintainer or upstream?


Thorsten


--
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: Escape colour codes

2007-04-04 Thread Thorsten Kampe
* Eric Blake (Wed, 04 Apr 2007 07:17:22 -0600)
 According to Thorsten Kampe on 4/4/2007 1:38 AM:
  That's exactly the point. They actually do cope with the escapes - 
  just not with the \001 and \002 used by readline to calculate the 
  length of the line.
  
  (otherwise even bash would not work).
  
  Yes, bash is the exception. Maybe bash doesn't use \001/\002?
 
 I need a simple test case.

It's easy to show that one Cygwin application (lftp) has a problem 
with its prompt but it's rather lenghty to show that not lftp is the 
culprit but readline making output to Windows Terminals (Cmd, 4NT, 
Console, FAR manager, Poderosa)

1. Install lftp, start cygwin.bat

2. Start lftp. Type
set cmd:prompt \[\e[1;36m\]\[\e[m\] 
...you will see that the instead of a light cyan   prompt you will 
get   surrounded by white/cyan-cyan/white Funny Faces (control 
characters).
Conclusion: there is something wrong with lftp or readline or the 
Terminal.

3. Run lftp from rxvt: you see that the prompt displays fine
Conclusion: there is nothing wrong with lftp.

4. Read Matthew Woehlke's statement Windows consoles don't understand 
escapes, period.
Conclusion: there is nothing wrong with the Windows Terminal, readline 
might have a bug.

--

5. install yafc (http://yafc.sourceforge.net/) - another popular Linux 
FTP client (from source because there is no package yet)

6. Insert
prompt1 %{\e[1;36m%}%{\e[m%} 
into your yafcrc and start yafc

7. You will see exactly the same as in 2. with lftp
Conclusion: there is nothing wrong with yafc, but with readline or Cmd

8. Repeat 3. with yafc and see the same result
Conclusion: there is nothing wrong but readline might have a bug.

--

9. Install Python and IPython (http://ipython.scipy.org/moin/)
set
prompt_in1 '\C_White[\#\C_White]\C_LightCyan '
prompt_out '\C_White[\N\C_White]'
in your ipythonrc and start IPython. Type 1 [Enter]
you will see exactly the same as in 2. And 7. for the out prompt

10. Repeat step 3. with IPython: you will see exactly the same as in 
3. and 8. 

11. Install Windows Python and pyreadline (Python readline for 
Windows) and use the same IPython from the Cygwin installation. Repeat 
step 3.: the prompt displays fine
Conclusion: pyreadline doesn't make the Windows Terminal show Control 
characters

12. Remove the \001/\002 constructs in line 88 and 89 from 
ColorANSI.py in Cygwin IPython 

from
Normal = '\001\033[0m\002'   # Reset normal coloring
_base  = '\001\033[%sm\002'  # Template for all other colors

to

Normal = '\033[0m'   # Reset normal coloring
_base  = '\033[%sm'  # Template for all other colors

See that Cygwin IPython with Windows terminal now displays correctly

--

13. Recompile yafc, comment out lines 167 and 172 in prompt.c

case '{': /* begin non-printable character string */
#ifdef HAVE_LIBREADLINE
//  ins = \001\001; /* \001 + 
RL_PROMPT_START_IGNORE */
#endif
break;
case '}': /* end non-printable character string */
#ifdef HAVE_LIBREADLINE
//  ins = \001\002; /* \001 + RL_PROMPT_END_IGNORE */
#endif

Now see that yafc does not show the Control characters as Funny 
Faces anymore.

--

I tried to modify the lftp source, too, but my C knowledge was not 
sufficient

   char StartIgn[3], EndIgn[3];
   /* bash adds the extra \001 too, don't know why */
   StartIgn[0] = '\001';
   StartIgn[1] = RL_PROMPT_START_IGNORE;
   StartIgn[2] = 0;
   EndIgn[0] = '\001';
   EndIgn[1] = RL_PROMPT_END_IGNORE;
   EndIgn[2] = 0;


Thorsten


--
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: Escape colour codes

2007-04-05 Thread Thorsten Kampe
* Eric Blake (Wed, 4 Apr 2007 19:50:24 + (UTC))
 Thorsten Kampe thorsten at thorstenkampe.de writes:
  9. Install Python and IPython (http://ipython.scipy.org/moin/)
  set
  prompt_in1 '\C_White[\#\C_White]\C_LightCyan '
  prompt_out '\C_White[\N\C_White]'
  in your ipythonrc and start IPython. Type 1 [Enter]
 
 The bug is in IPython.
 
  12. Remove the \001/\002 constructs in line 88 and 89 from 
  ColorANSI.py in Cygwin IPython 
  
  from
  Normal = '\001\033[0m\002'   # Reset normal coloring
  _base  = '\001\033[%sm\002'  # Template for all other colors
  
  to
  
  Normal = '\033[0m'   # Reset normal coloring
  _base  = '\033[%sm'  # Template for all other colors
 
 I'm not sure if this is correct.  If you pass invisible characters to 
 readline 
 without marking them as such, using \1 and \2, then readline messes up the 
 display width.

The from is the original code, the to is my modification to show 
that omitting the \001/\002 constructs will make IPython not show the 
colour escape codes. Of course this wasn't meant as a solution because 
the escapes are there for a reason (as you correctly pointed out). 
Simply removing them will just introduce a new kind of problem.

Thorsten


--
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: bash: tar: command not found

2007-04-12 Thread Thorsten Kampe
* Dave Korn (Thu, 12 Apr 2007 16:26:57 +0100)
 On 12 April 2007 16:19, Cheney, Christian wrote:
  Don't extract things using non-Cygwin tools unless you really know what
  you're doing (or have been told to do so).  You can make a real mess doing
  this.
  I would've used CYGWIN, but, unfortunately, tar didn't work ;)
 
   You've destroyed your installation.
 
   See, we told you it was bad.
 
   Specifically, you've gone and created a real /usr/bin directory, when
 normally it is only a mount point that mirrors /bin.  That's because winzip
 doesn't know about cygwin mountpoints.  If it had been untarred by an earlier
 cygwin tar, or by setup.exe which *does* respect cygwin mountpoints, it would
 have ended up in the right place: /bin, and been *visible* in /usr/bin too.
 
   This means that tar.exe has been unpacked into C:\cygwin\usr\bin.  That's
 why setup thinks it's installed.  But you can't find it in your $PATH or
 anything, because when cygwin goes to look in /usr/bin (which is where tar.exe
 has been put by winzip), it actually looks in your /bin dir.  And doesn't find
 it.
 
   That's why setup thinks it's installed but cygcheck reports Not Found:
 tar.
 
   The fix would be to go into your C:\cygwin\usr directory, using a DOS shell
 or windows explorer, and delete the bin dir.

\cygwin\usr\bin and \cygwin\usr\lib are /real/ directories created by 
the initial Cygwin installation routine. He shouldn't delete those 
directories - just keep them empty...

Thorsten


--
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 globs using curly brackets and ^

2007-04-19 Thread Thorsten Kampe
* Jens Rasmussen (Thu, 19 Apr 2007 15:34:17 +0200 (CEST))
 I'm having a problem with globs using curly brackets and ^.
 I've searched the web+forum with no luck, so I'm sorry if an answer 
 aleardy exists.

The answer is in the bash manual page. What has that got to do with 
Cygwin?!
 
 I've tried the commands on a linux environment and they worked fine + I've 
 read elsewhere that they should work in cygwin.
 So I assume that my config is wrong. I'm using bash 3.2.15(13)-release 
 (i686-pc-cygwin) and I've just updated all packages.
 
 THE PROBLEM (using ls for illustration):
 
 $ ls
 Desktop.ini  docoptimering  test.txt
 bin  music  spaceninja
 
 FOLLOWING WORKS:
 
 $ ls -d {Desk*,doc*}
 Desktop.ini  doc

ls -d Desk* doc*
 
 BUT: (I assume that the following is because it normally makes no sense)
 
 $ ls -d {Desk*}
 ls: cannot access {Desk*}: No such file or directory

ls -d Desk*
 
 AND: (my actual problem)
 
 $ ls ^doc
 ls: cannot access ^doc: No such file or directory

^ is only used in character ranges ([^a-z])
 
 $ ls -d ^{Desk*,doc*}
 ls: cannot access ^Desk*: No such file or directory
 ls: cannot access ^doc*: No such file or directory
 
 - And yes, I'm a Linux/UNIX/Cygwin newb!

This has nothing to do with Linux nor UNIX nor Cygwin:

$ shopt -s extglob
$ echo !(Desk*|doc*)


Thorsten


--
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: Mapping windows drives in cygwin?

2007-04-19 Thread Thorsten Kampe
* Kevin Markle (Thu, 19 Apr 2007 16:07:16 -0400)
 Possibly a dumb question but I have tried a lot of different quoting
 methods and can't seem to get it to work? How do I quote back slashes in
 Cygwin? 

You quote them with '' and you escape them with \. What has that got 
to do with Cygwin?

Thorsten


--
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: Install problem on XP SP2

2007-04-20 Thread Thorsten Kampe
* Morgan Gangwere (Thu, 19 Apr 2007 18:30:00 -0600)
 to DaveK: i once had the username Sys Admin under windows before i
 installed the cygwin stuff, and after, any script/app that used the
 username in a path with ls or bash or some other place without
 properly quoting it would fail.

That's expected behaviour. Exactly the same thing would happen under 
Linux or any other OS under the sun. The antidote is to fix the 
scripts and to omit spaces in user names.

T.


--
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: Newbie question on current version running established perl program

2007-04-25 Thread Thorsten Kampe
* Jennifer Young (Wed, 25 Apr 2007 11:37:13 -0700 (PDT))
 Very new user installing cygwin for the first time on
 new pc.  Trying to run perl program that has been used
 a number of times (probably not the problem)
 
 Followed all the instructions on install and all
 instructions in faq and user docs that could assist.
 
 Installed the base and all the packages with 'perl' in
 the name plus a bunch of other ones.
 
 to run my program, I was instructed to use command:
 
 $ perl preprocesstest.pl -o buffer -n 2 -t 00:00:000
 -l 300
 
 (-o = output, -n = number in test, -t = start time, -l
 = length of time of test)
 
 system returns:
 
 bash perl: command not found

Bash cannot find perl. That's pretty clear, isn't it? Either there is 
not perl or it is not where bash is searching it. Search for perl.exe 
with your favourite search program. It should be below C:\cygwin and 
verify that the path to perl.exe (if there is one) is in your shell 
(echo $PATH).

If there is no Perl, try reinstalling. If there is a perl.exe then 
specify the full path to the executable or adjust your path.


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



<    1   2   3   4   5   6   7   8   >