Re: No xauth program

2010-09-02 Thread Jon TURNEY
On 01/09/2010 20:29, Scott T. Marshall wrote: when I connect using ssh -Yv localhost the last few lines of output are: debug1: Entering interactive session. debug1: No xauth program. Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requesting X11 forwarding

Re: No xauth program

2010-09-02 Thread Scott T. Marshall
Thanks for the suggestion Jon. I don't know exactly what I should ask xauth to do or what syntax is requires (the man page was not completely clear to me), but what I can say is that if I try to execute xauth in an xterm, it gives no errors. I can also say that when I ssh to other linux

Re: No xauth program

2010-09-02 Thread Jon TURNEY
On 9/2/2010 11:11 AM, Jon TURNEY wrote: On 01/09/2010 20:29, Scott T. Marshall wrote: when I connect using ssh -Yv localhost the last few lines of output are: debug1: Entering interactive session. debug1: No xauth program. Warning: No xauth data; using fake authentication data for X11

Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Matthias Andree
Am 02.09.2010, 04:30 Uhr, schrieb Mark Callow: Hi Andrey, Did you tried to *uninstall* bash-completion? I have now. Surprisingly (to me) it worked. The time-to-prompt has dropped to ~5 seconds on one of the machines and ~8 seconds on the other. Both are still too long but a vast

Re: chere not working with zsh version 4.3.10 but worked for 4.3.9

2010-09-02 Thread Csaba Raduly
Hi Reckoner, Does not work is insufficient information about your problem. How did it work before? What happens now? Did you get an error message? If yes, what was it? You should follow the procedure described in: Problem reports:       http://cygwin.com/problems.html Also, you may want to

simulating console input

2010-09-02 Thread Peter Münster
Hello, I would like to run a Dos program, that needs keyboard input (just one Y), automatically via make in an ssh-session. How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a dos-console. TIA for any help! Peter -- Contact

Re: difference running from cmd vs. bash?

2010-09-02 Thread Csaba Raduly
On Thu, Sep 2, 2010 at 2:14 AM, Linda Walsh wrote: In Bash: winmgmt /verifyrepository WMI repository verification failed Error code:  0x8007007E That is the COM error code for The specified module could not be found. Perhaps bash has altered the PATH. Do you get the same error when

Re: simulating console input

2010-09-02 Thread Andrey Repin
Greetings, Peter Munster! I would like to run a Dos program, that needs keyboard input (just one Y), automatically via make in an ssh-session. How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a dos-console. If the program

Re: can't compile setup.exe

2010-09-02 Thread Jon TURNEY
On 02/09/2010 06:42, Andy Koppe wrote: On 2 September 2010 05:18, Vasya Pupkin wrote: I'm trying to compile setup.exe from source code I got from CVS. Great! For some reason, I am getting an error: propsheet.cc: In member function `bool PropSheet::SetActivePage(int)': propsheet.cc:444:

Re: simulating console input

2010-09-02 Thread Bengt-Arne Fjellner
On 2010-09-02 9:47 AM, Peter Münster wrote: Hello, I would like to run a Dos program, that needs keyboard input (just one Y), automatically via make in an ssh-session. How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a

Re: can't compile setup.exe

2010-09-02 Thread Chris Sutcliffe
On 2 September 2010 09:38, Jon TURNEY wrote: This was broken by the recent w32api-3.15 update, which seems to have made those PropSheet macros C++ aware, so the global scoping operator is no longer needed. Patch attached to fix it, but I couldn't work out how to also get it to build with

Re: scp and cygwin randomly and automatically converts text files from utf-8 to windows encoding (cp1251)

2010-09-02 Thread rPman
I found the reason - it is the combination Far2 and plug-in Call Command. I use this plugin for run commands to synchronize the current list of editable files to the server with ssh, it is clear that both rsync and scp to copy files already modified encoding. While running from command plug-in

Re: can't compile setup.exe

2010-09-02 Thread Eric Blake
On 09/02/2010 07:38 AM, Jon TURNEY wrote: This was broken by the recent w32api-3.15 update, which seems to have made those PropSheet macros C++ aware, so the global scoping operator is no longer needed. Patch attached to fix it, but I couldn't work out how to also get it to build with

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 12:49 AM, Vasya Pupkin wrote: No, it wasn't a mess of my own making. I did not ever touch permissions, and it was a clean install. I don't know where these permissions came from, but ls -l displayed something like that for most files: I read Andy's comment to mean that the mess of

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Vasya Pupkin
If you read again very carefully, you will see that I modified permissions AFTER I noticed they were messed up. Ok? In my case, these additional permissions were allowing everyone to modify files. Not harmful at all, indeed. I do not remember all the details, I remember these permissions were

Re: simulating console input

2010-09-02 Thread Larry Hall (Cygwin)
On 9/2/2010 3:47 AM, Peter Münster wrote: Hello, I would like to run a Dos program, that needs keyboard input (just one Y), automatically via make in an ssh-session. How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a dos-console.

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 10:05 AM, Vasya Pupkin wrote: If you read again very carefully, you will see that I modified permissions AFTER I noticed they were messed up. Ok? I tried to point out that your definition of messed up is the opposite of Andy's. To you, the default permissions provided by setup.exe

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Vasya Pupkin
On Thu, Sep 2, 2010 at 8:25 PM, Jeremy Bopp jer...@bopp.net wrote: Your answer was simply an assertion that there possibly was and may still be something wrong with the permissions handling under Cygwin, but that you also haven't confirmed that recently.  The details really would be helpful

Windows-style pathname does not work as command - why?

2010-09-02 Thread Daniel Barclay
I don't quite understand this behavior: $ ls C:\\tools\\emacs-23.2\\bin\\runemacs.exe C:\tools\emacs-23.2\bin\runemacs.exe $ C:\\tools\\emacs-23.2\\bin\\runemacs.exe bash: C:\tools\emacs-23.2\bin\runemacs.exe: command not found In particular, why is it that bash does not understand that Windows

Re: Windows-style pathname does not work as command - why?

2010-09-02 Thread Eric Blake
On 09/02/2010 11:45 AM, Daniel Barclay wrote: I don't quite understand this behavior: $ ls C:\\tools\\emacs-23.2\\bin\\runemacs.exe C:\tools\emacs-23.2\bin\runemacs.exe $ C:\\tools\\emacs-23.2\\bin\\runemacs.exe bash: C:\tools\emacs-23.2\bin\runemacs.exe: command not found In particular, why

re: Windows-style pathname does not work as command - why?

2010-09-02 Thread neal s
I suggest for your convenience, you try making a symbolic link  ... Perhaps something like ... $ ln -s /cygdrive/c/tools/emacs-23.2/bin/runemacs.exe /usr/local/bin/runemacs Then open up a fresh shell and see if 'runemacs' now works for you. (the shell you made the symbolic link in, will likely

How to get a script file to use bash and ssh

2010-09-02 Thread PaulHR
I want to create script files that are not bound to my user id. I want to create over 20 different scripts files, one for each server I manage. I have uploaded keys to each server. So all I should have to is enter is the ssh command I have put in a file called MyOpenUp.bat the

Re: How to get a script file to use bash and ssh

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 2:10 PM, PaulHR wrote: I want to create script files that are not bound to my user id. I want to create over 20 different scripts files, one for each server I manage. I have uploaded keys to each server. So all I should have to is enter is the ssh command I have put

.exe magic in Cygwin

2010-09-02 Thread Al
Hello, I would like to estimate theexpenses to port general linux sources to Cygwin. I did look into Cygwins patch for coreutils. It has 1231 lines of diff code. A lot of the stuff is related to the .exe magic done by cygwin. Do I have to implement that magic in this extend into every

Re: How to get a script file to use bash and ssh

2010-09-02 Thread PaulHR
Yes, that is correct. Jeremy Bopp-3 wrote: On 9/2/2010 2:10 PM, PaulHR wrote: I want to create script files that are not bound to my user id. I want to create over 20 different scripts files, one for each server I manage. I have uploaded keys to each server. So all I should have to

Re: How to get a script file to use bash and ssh

2010-09-02 Thread Heath Kehoe
On 9/2/2010 2:10 PM, PaulHR wrote: I want to create script files that are not bound to my user id. I want to create over 20 different scripts files, one for each server I manage. I have uploaded keys to each server. So all I should have to is enter is the ssh command I have put in a

Re: .exe magic in Cygwin

2010-09-02 Thread Eric Blake
On 09/02/2010 01:25 PM, Al wrote: Hello, I would like to estimate theexpenses to port general linux sources to Cygwin. I did look into Cygwins patch for coreutils. It has 1231 lines of diff code. A lot of the stuff is related to the .exe magic done by cygwin. Do I have to implement that

Re: How to get a script file to use bash and ssh

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 2:36 PM, Heath Kehoe wrote: On 9/2/2010 2:10 PM, PaulHR wrote: That's all more complicated than it needs to be. Just make windows shortcuts to c:\cygwin\bin\ssh.exe, where Start in: is set to c:\cygwin\bin, and modify Target: to contain C:\cygwin\bin\ssh.exe usern...@hostname

Re: .exe magic in Cygwin

2010-09-02 Thread Al
Coreutils tends to be an exception, because it is so core to the system.  Other tools that I also maintain, like m4 or findutils, port with 0 patches. Thank you. That gives me back some optimism. I first compiled coreutils without the cygwin patch. It did compile but afterwards the

Re: .exe magic in Cygwin

2010-09-02 Thread Eric Blake
On 09/02/2010 02:06 PM, Al wrote: I first compiled coreutils without the cygwin patch. It did compile but afterwards the compilation of findutils, etc. was broken. For example configure.status of wget was truncated at the top and out of order at the bottom. That stopped all further efforts of

Re: How to get a script file to use bash and ssh

2010-09-02 Thread Andy Koppe
On 2 September 2010 20:52, Jeremy Bopp wrote: That's all more complicated than it needs to be. Just make windows shortcuts to c:\cygwin\bin\ssh.exe, where Start in: is set to c:\cygwin\bin, and modify Target: to contain C:\cygwin\bin\ssh.exe usern...@hostname (without the quotes of course).

Re: How to get a script file to use bash and ssh

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 3:31 PM, Andy Koppe wrote: On 2 September 2010 20:52, Jeremy Bopp wrote: That's all more complicated than it needs to be. Just make windows shortcuts to c:\cygwin\bin\ssh.exe, where Start in: is set to c:\cygwin\bin, and modify Target: to contain C:\cygwin\bin\ssh.exe

Re: .exe magic in Cygwin

2010-09-02 Thread Al
Sounds like you didn't run autoreconf (which would have been done automatically via the supported mechanism). Right. I applied it the traditional way. setup.exe to download the sources and several prerequisite tools (cygport, autoconf, ...), then using 'cygport coreutils-8.5-1 prep make'.  

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Andy Koppe
On 2 September 2010 16:05, Vasya Pupkin wrote: In my case, these additional permissions were allowing everyone to modify files. Not harmful at all, indeed. I do not remember all the details, I remember these permissions were everywhere. So I just replaced everything with proper permissions and

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Charles Wilson
On 9/2/2010 4:49 PM, Andy Koppe wrote: How did you find the problematic permissions? By looking at the security tab of the file properties? Remember that the security tab has the very bad habit of re-ordering the ACLs -- but the effect of ACLs is order dependent. Hence, just looking at the

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Vasya Pupkin
On Fri, Sep 3, 2010 at 12:49 AM, Andy Koppe andy.ko...@gmail.com wrote: How did you find the problematic permissions? By looking at the security tab of the file properties? Did you confirm that users really were able to modify files they weren't supposed to? Could the offending privileges have

Re: simulating console input

2010-09-02 Thread RISINGP1
On 9/2/2010 3:47 AM, Peter Münster wrote: Hello, I would like to run a Dos program, that needs keyboard input (just one Y), automatically via make in an ssh-session. How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a

Re: Windows-style pathname does not work as command - why?

2010-09-02 Thread Christopher Faylor
On Thu, Sep 02, 2010 at 12:13:12PM -0600, Eric Blake wrote: On 09/02/2010 11:45 AM, Daniel Barclay wrote: I don't quite understand this behavior: $ ls C:\\tools\\emacs-23.2\\bin\\runemacs.exe C:\tools\emacs-23.2\bin\runemacs.exe $ C:\\tools\\emacs-23.2\\bin\\runemacs.exe bash:

Re: simulating console input

2010-09-02 Thread Eric Blake
On 09/02/2010 03:17 PM, risin...@nationwide.com wrote: How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... Would an inline document work? DosProgram.exe! Y ! No. Bash uses a pipe under the hood for here-docs, so it is no different than the already-established

Re: .exe magic in Cygwin

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 3:44 PM, Al wrote: setup.exe to download the sources and several prerequisite tools (cygport, autoconf, ...), then using 'cygport coreutils-8.5-1 prep make'. Other ways work, but I won't support them on this list. See also As a want to come a hybrid of Cygwin and Gentoos Emerge

Inability to delete *or rename* CWD of any program driving me nuts

2010-09-02 Thread Daniel Colascione
I keep bumping into Cygwin's new inability rename or delete directories that are the CWD of any program. In particular, Emacs will often start background processes like aspell in whatever directory happens to be the default-directory for the current buffer. That program hangs around even after I

export DISPLAY={localWorkstationIP} in mintty

2010-09-02 Thread PaulHR
Is there anyway to get the IP address from the local workstation, running mintty, and putting the local workstation IP address into the export DISPLAY command running on a different mintty shell, running on a server e.g. export DISPLAY={localWorkstationIP} Or, is there a way to get the local

Re: export DISPLAY={localWorkstationIP} in mintty

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 4:34 PM, PaulHR wrote: Is there anyway to get the IP address from the local workstation, running mintty, and putting the local workstation IP address into the export DISPLAY command running on a different mintty shell, running on a server e.g. export

setup.exe version 2.721 crashes when performing a reinstall

2010-09-02 Thread KJ
When I try to use reinstall the setup.exe crashes on Windows XP as well as on Windows 7. The report below is from a crash on Windows 7. Has someone else experienced the same problem? TIA KJ Version=1 EventType=APPCRASH EventTime=129279109701574905 ReportType=2 Consent=1

Re: Fwd: Windows File permissions are not being inherited - Cygwin 1.7 - Windows 7

2010-09-02 Thread Vasya Pupkin
There we go, a proper patch. It adds two command line parameters: -f --no-acl-files -F --no-acl-dirs I could not figure if that's possible to share single variable between two source files, so I just used two variables. At least it works as intended and covers every situation. On Thu, Sep 2,

Re: export DISPLAY={localWorkstationIP} in mintty

2010-09-02 Thread PaulHR
I got the standard error. Error: Can't open display: I made sure xWin Server was running Did a -vvv on the ssh and saw nothing for X11 What else can I look at? -- View this message in context:

How does one change the default shell?

2010-09-02 Thread RISINGP1
I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able to find in bash - at least not yet. So to expedite script writing, I use the ksh language and features Every time that I write a

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
On 09/02/2010 04:29 PM, risin...@nationwide.com wrote: I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able to find in bash - at least not yet. So to expedite script writing, I use the

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
On 09/02/2010 04:29 PM, risin...@nationwide.com wrote: I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able to find in bash - at least not yet. So to expedite script writing, I use the

Re: export DISPLAY={localWorkstationIP} in mintty

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 5:12 PM, PaulHR wrote: I got the standard error. Error: Can't open display: I made sure xWin Server was running Did a -vvv on the ssh and saw nothing for X11 What else can I look at? It would be really helpful if you included a little context from earlier bits of the

Re: [ANNOUNCEMENT] Updated: OpenSSH-5.6p1-1

2010-09-02 Thread Jon TURNEY
On 23/08/2010 16:15, Corinna Vinschen wrote: I've just updated the Cygwin version of OpenSSH to 5.6p1-1. This is a new major upstream release. The Cygwin release is created from the vanilla sources. It looks like this update has reverted the default XAuthLocation from /usr/bin/xauth to

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
On 09/02/2010 04:29 PM, risin...@nationwide.com wrote: I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able to find in bash - at least not yet. So to expedite script writing, I use

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
On 09/02/2010 04:49 PM, risin...@nationwide.com wrote: write a script, I have to remember to put in the shebang line (#!/bin/pdksh) or half the time my scripts won't work. Is there a way to change the default shell for cygwin? I checked the user guide and the FAQ, but no joy there. I tried

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
[ACK! I just realized I was continuing my usurping of the thread. Sorry.] On 09/02/2010 04:29 PM, risin...@nationwide.com wrote: I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
Ah, so you mean how to change /bin/sh to be pdksh instead of bash. Simple: cp /bin/{pdk,}sh But be prepared to redo that every time you upgrade bash via setup.exe, and don't come crying to the list if things break that were expecting bash when they got pdksh. Thanks. I was

Re: The un-notified update of gcc4-4.3.4-3 cause setup failed(build date 2009-12-11 to 2010-08-15, caused file size mismatch)

2010-09-02 Thread Dave Korn
On 02/09/2010 05:32, LiuYan 刘研 wrote: Today I try to setup cygwin on a new server, it keeps failed with a cyggcc_s-1.dll is missed error in the last post-install phase. I'm sorry it caused you a problem, I'm afraid setup.exe was smarter than I am and it spotted the difference when I hoped it

Re: .exe magic in Cygwin

2010-09-02 Thread Dave Korn
On 02/09/2010 21:44, Al wrote: Sounds like you didn't run autoreconf (which would have been done automatically via the supported mechanism). Right. I applied it the traditional way. Ah, you have to understand this about cygport patches: they only contain patches for the source files, not

RE: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set

2010-09-02 Thread John Carey
On Aug 12 01:11, Corinna Vinschen wrote: On Aug 12 06:54, Andy Koppe wrote: On 11 August 2010 20:55, John Carey wrote: So is your idea that if SetCurrentDirectory() fails because of path length or permissions, then Cygwin would just accept the failure and keep an internal record the

Re: .exe magic in Cygwin

2010-09-02 Thread Charles Wilson
On 9/2/2010 7:46 PM, Dave Korn wrote: I did once try running cygport on a linux box (with a cross-compiler). I don't remember exactly what went wrong, it didn't work directly out of the box, but it shouldn't be hard to fix. It's only the most recent release of cygport (0.10.0) that has

Re: export DISPLAY={localWorkstationIP} in mintty

2010-09-02 Thread Andrew DeFaria
On 09/02/2010 03:37 PM, Jeremy Bopp wrote: On 9/2/2010 5:12 PM, PaulHR wrote: I got the standard error. Error: Can't open display: I made sure xWin Server was running Did a -vvv on the ssh and saw nothing for X11 What else can I look at? It would be really helpful if you included a

Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Reid Thompson
On 9/1/2010 8:35 AM, Andrey Repin wrote: + Did you tried to *uninstall* bash-completion? What changed such that bash-completion, which previously worked fine, no longer does? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/

Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Larry Hall (Cygwin)
On 9/2/2010 11:03 PM, Reid Thompson wrote: On 9/1/2010 8:35 AM, Andrey Repin wrote: + Did you tried to *uninstall* bash-completion? What changed such that bash-completion, which previously worked fine, no longer does? Upstream changes. They're working on fixes. See recent email archives

Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Reid Thompson
On 9/2/2010 11:03 PM, Reid Thompson wrote: On 9/1/2010 8:35 AM, Andrey Repin wrote: + Did you tried to *uninstall* bash-completion? What changed such that bash-completion, which previously worked fine, no longer does? The biggest change i've seen is in the slowdown of ./configure and make

Re: The un-notified update of gcc4-4.3.4-3 cause setup failed(build date 2009-12-11 to 2010-08-15, caused file size mismatch)

2010-09-02 Thread LiuYan 刘研
Thank you Davek. Sorry for my poor English and poor expression. You're right, I'm installing cygwin to a new server from local package cache on my PC via net share. It's ok to avoid redownload existing files. Maybe it's better to shown the 'file size mismatch' message or other error messages

Re: How does one change the default shell?

2010-09-02 Thread Andy Koppe
On 2 September 2010 23:49, RISINGP1 wrote: My cygwin.bat: @echo off C: chdir C:\cygwin\bin REM bash --login -i REM pdksh -l -i start mintty -p 70,0 -t Console -e - Btw, you don't need cygwin.bat to start mintty; you can just put those parameters into a shortcut (or copy the one in the