[ot] Permissions issue

2009-06-29 Thread Jason Pyeron
On the local disk, C:\Documents and Settings\All Users\workspace\nitams\x.txt In wordpad I choose save and I get access denied. In nano I choose save and it saves. In explorer I can rename it In bash I can rename it /cygdrive/c/Documents and Settings/All Users/workspace/nitams $ cacls x.txt C:\

Re: Vim.exe of gVim can't display in Cygwin (Vista)

2009-06-29 Thread Larry Hall (Cygwin)
On 06/29/2009, tsunhin wong wrote: 904k 2002/10/14 C:\Lens\Bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2002/10/13 23:15 Delete this old copy of 'cygwin1.dll' and try again. -- Larry Hall http://www.rfk.com RFK Partners, Inc.

Re: ssh-host-config on Win2k3

2009-06-29 Thread Huang Bambo
Have you installed the packages needed? 2009/6/30 Zachary Dean > > Hello, > > I am having trouble geting the ssh host to start on windows server 2003, it > tells me that > the command 'ssh-host-config' is not found. I am also unable to start > 'ssh-user-config'. > I have 'ssh-host-config -y' an

Re: Vim.exe of gVim can't display in Cygwin (Vista)

2009-06-29 Thread tsunhin wong
Another program that use console output SBCL.exe display correctly in both cmd.exe and bash.exe I have no idea why vim.exe cannot work on this Vista cygwin setting. I'm including my cygcheck.out, I hope someone can really help, thank in advance! - J Cygwin Configuration Diagnostics Current Syste

Re: Another lftp issue

2009-06-29 Thread Chris Sutcliffe
>> But my version does dump core on 'cls -ltr'. > > Actually it seems to be just 'cls -l' that causes the fault. Odd, with 3.7.14 running on Cygwin 1.7.0-50 compiled via gcc-4 works fine for me (both 'cls -ltr' and 'cls -l'). I've tried with both ftp and sftp connections. Chris -- Chris Sutcli

Re: [ANNOUNCEMENT] [1.7] Updated setup-1.7.exe (version 2.637)

2009-06-29 Thread Chris Sutcliffe
> It still says version 2.634 I suspect you have something cached somewhere. I just downloaded the latest setup-1.7.exe and the first page states its version as 2.637. Chris -- Chris Sutcliffe http://emergedesktop.org -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: [ANNOUNCEMENT] [1.7] Updated setup-1.7.exe (version 2.637)

2009-06-29 Thread Jim Reisert AD1C
It still says version 2.634 On Mon, Jun 29, 2009 at 4:56 PM, Christopher Faylor wrote: > I just uploaded a new setup-1.7.exe (version 2.637) to > http://cygwin.com/setup-1.7.exe.  It contains the following changes and > bug fixes: > > - Avoid setting HOME to /tmp since it causes new home director

Re: [1.7] HOME directory is always /tmp

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 05:05:56PM -0600, Jim Reisert AD1C wrote: >Thanks, but I need setup-1.7.exe. The version I just downloaded was >still 2.634. 1) You don't need a new version of setup-1.7 to fix your home directory. Just edit /etc/passwd. 2) The version on the web site really is 2.637.

Re: [1.7] HOME directory is always /tmp

2009-06-29 Thread Jim Reisert AD1C
Thanks, but I need setup-1.7.exe. The version I just downloaded was still 2.634. - Jim On Mon, Jun 29, 2009 at 4:59 PM, Christopher Faylor wrote: > On Mon, Jun 29, 2009 at 03:48:42PM -0600, Jim Reisert AD1C wrote: >>I downloaded setup-1.7.exe this morning from the Cygwin.com web site. >>It says

Re: [1.7] HOME directory is always /tmp

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 03:48:42PM -0600, Jim Reisert AD1C wrote: >I downloaded setup-1.7.exe this morning from the Cygwin.com web site. >It says version 2.6.3.4. The file details are: > >-rwx--+ 1 reisert Domain Users 545792 Jun 29 13:22 setup-1.7.exe > >It appears to be the same file that I

[ANNOUNCEMENT] [1.7] Updated setup-1.7.exe (version 2.637)

2009-06-29 Thread Christopher Faylor
I just uploaded a new setup-1.7.exe (version 2.637) to http://cygwin.com/setup-1.7.exe. It contains the following changes and bug fixes: - Avoid setting HOME to /tmp since it causes new home directories to be set to /tmp. (Corinna Vinschen) - Change package search option to be case-insensitive

Re: Bug: /registry file system doesn't return len of default value of keys

2009-06-29 Thread Linda Walsh
Corinna Vinschen wrote: On Jun 28 20:25, Linda Walsh wrote: Known bug? Is it in the queue to be fixed someday? :-) Works in Cygwin 1.7 Hmmm...its still in testing? How stable is it? Am I going to inflict, upon myself, more pain than I gain? :-) And BTW, what happen

Re: gvim crashes immediately

2009-06-29 Thread Linda Walsh
Buchbinder, Barry (NIH/NIAID) [E] wrote: Linda Walsh sent the following at Monday, June 29, 2009 2:12 AM Any reason not to run the Win32-Gvim native client Linda (or anyone who has an answer): Do you have any suggestions for commands that should be put in _vimrc so using cygwin is trans

Re: [1.7] HOME directory is always /tmp

2009-06-29 Thread Jim Reisert AD1C
I downloaded setup-1.7.exe this morning from the Cygwin.com web site. It says version 2.6.3.4. The file details are: -rwx--+ 1 reisert Domain Users 545792 Jun 29 13:22 setup-1.7.exe It appears to be the same file that I downloaded on 6/25. - Jim On Mon, Jun 29, 2009 at 3:20 PM, Jim Reiser

Re: [1.7] HOME directory is always /tmp

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 03:20:38PM -0600, Jim Reisert AD1C wrote: >I had been running 1.7 in my \cygwin-1.7 directory. > >I decided to clean up this morning and created a \cygwin directory >using setup-1.7.exe to re-load all my stuff (gcc, emacs, X server, >etc.). I renamed the old 1.7 directory t

[1.7] HOME directory is always /tmp

2009-06-29 Thread Jim Reisert AD1C
I had been running 1.7 in my \cygwin-1.7 directory. I decided to clean up this morning and created a \cygwin directory using setup-1.7.exe to re-load all my stuff (gcc, emacs, X server, etc.). I renamed the old 1.7 directory to cygwin-1.7.old so it wouldn't be "in the way". Everything is working

Re: Another lftp issue

2009-06-29 Thread Andrew Schulman
> But my version does dump core on 'cls -ltr'. Actually it seems to be just 'cls -l' that causes the fault. I just reported this upstream, but now I've also just tried it on my Debian box and I can't reproduce it there. So it seems like maybe a Cygwin bug. I'll try to track it down further. A.

Re: Cygwin OpenSSH and Windows 7 RC

2009-06-29 Thread Larry Hall (Cygwin)
Matthias Meyer wrote: David Christensen wrote: Matthias Meyer wrote: If I rebase within Windows7 I can not use this programs and librarys within other versions of Windows, right? Are you trying to share one Cygwin installation between multiple operation system installations (e.g. over a netwo

RE: Cygwin OpenSSH and Windows 7 RC

2009-06-29 Thread Matthias Meyer
Karl M wrote: > Hi... > > Are you also providing the source code for the Cygwin pckages that you > distribute this way, and for your programs that are linked with Cygwin? > > Thanks, > > ...Karl No, should/must I do? I provide the cygwin GPL (as well as rsync GPL and ssh GPL). I didn't link

Re: Another lftp issue

2009-06-29 Thread Andrew Schulman
> > After making an sftp connection via lftp, doing a 'cls -ltr' causes a > > core dump. I've compiled lftp 3.7.14 using Cygwin 1.7.0-50 using > > gcc-4 / g++-4 and it doesn't cause the same core dump. > > > > Perhaps a new version of lftp (at least for 1.7.0) is in order? > > Thanks for the rep

RE: Cygwin OpenSSH and Windows 7 RC

2009-06-29 Thread Karl M
> From: matthias meyer > Subject: RE: Cygwin OpenSSH and Windows 7 RC > Date: Mon, 29 Jun 2009 21:53:34 +0200 > > > No, thats not what I am doing. > I install cygwin in XP and build a new setup.exe (with Inno Setup) bundled > with own programs. > This setup.exe is installable and run well within X

ssh-host-config on Win2k3

2009-06-29 Thread Zachary Dean
Hello, I am having trouble geting the ssh host to start on windows server 2003, it tells me that the command 'ssh-host-config' is not found. I am also unable to start 'ssh-user-config'. I have 'ssh-host-config -y' and it still does not work. Thanks, Zack -- Problem reports: http://cygw

RE: Cygwin OpenSSH and Windows 7 RC

2009-06-29 Thread Matthias Meyer
David Christensen wrote: > Matthias Meyer wrote: >> If I rebase within Windows7 I can not use this programs and librarys >> within other versions of Windows, right? > > Are you trying to share one Cygwin installation between multiple > operation system installations (e.g. over a network, dual boo

Re: Vim.exe of gVim can't display in Cygwin (Vista)

2009-06-29 Thread tsunhin wong
One more thing to note: when I type "vim" in a cmd.exe console - vim works well in the console mode - J On Mon, Jun 29, 2009 at 2:17 AM, tsunhin wong wrote: > Hi all, > > I am trying to run vim inside my cygwin shell in Vista > I've done it successfully in XP with the following settings: > > - gV

Re: Call for TESTING (was Re: [1.7.0-50] scp progress counter flies through first 175 MB or so)

2009-06-29 Thread Warren Young
I scp'd a 1.6 GB file back and forth to a Linux server over GigE to a fast new RAID-10. I tested 1.7.0-50 and 20090629. Results: On a 32-bit XP box, 1.7.0-50 gives about 15 MByte/sec for both upload and download. (This box can't really hit GigE speeds due to crappy cabling

mkshortcut --allusers --smprograms

2009-06-29 Thread Andy Koppe
Shortcuts created by postinstall scripts using mkshortcut --allusers --smprograms aren't readable for ordinary users, so all they get to see in the start menu is a white dummy icon that doesn't do anything. This affects both MinTTY and rxvt, at least with Cygwin 1.7 on Windows 7. I guess the script

Re: Problem with single quotes

2009-06-29 Thread grvs
Thanks Eric for your reply. Yeah you are right, I am actually new to shell scripting and I downloaded cygwin only to learn shell scripting. And this script was one of the assignment question of the book I am reading to learn shell scripting. Actually now it may seem funny but I mistakenly used si

Re: Grief: installing OpenSSH on Cygwin / WindowsServer2003

2009-06-29 Thread Larry Hall (Cygwin)
Chap Harrison wrote: Hi, I followed directions (/usr/share/doc/Cygwin/openssh.README) as best I could, helped out by a couple of other web sources along the way. I know almost nothing about Windows administration. Trying to connect with PuTTY gives a "server unexpectedly closed connectin"

Re: Vim.exe of gVim can't display in Cygwin (Vista)

2009-06-29 Thread Larry Hall (Cygwin)
tsunhin wong wrote: Hi all, I am trying to run vim inside my cygwin shell in Vista I've done it successfully in XP with the following settings: - gVim 7.2 installed with vim.exe - set PATH in environmental variables to include C:\Program files\Vim\vim72 - set .vimrc to point to _vimrc - ln -s v

RE: gvim crashes immediately

2009-06-29 Thread Buchbinder, Barry (NIH/NIAID) [E]
Linda Walsh sent the following at Monday, June 29, 2009 2:12 AM > Any reason not to run the Win32-Gvim native client? Linda (or anyone who has an answer): Do you have any suggestions for commands that should be put in _vimrc so using cygwin is transparent? I am especially concerned with th

Re: 1.7 ssh/rsync consuming all cpu on x64 Vista

2009-06-29 Thread Jonathan
On 6/29/2009 11:44 AM, Chris Sutcliffe wrote: >>> Maybe you want to give the latest Cygwin snapshot from >>> http://cygwin.com/snapshots/ a try. >> $ uname -a >> CYGWIN_NT-6.0-WOW64 SAGER9262 1.7.0s(0.210/5/3) 20090628 15:28:41 i686 >> Cygwin > >

Re: Call for TESTING (was Re: [1.7.0-50] scp progress counter flies through first 175 MB or so)

2009-06-29 Thread Chris Sutcliffe
> The snapshot will be available at http://cygwin.com/snapshots/ with today's > (2009-06-29) date. I have tested with a 695 MB file and validated that scp and lftp work as expected with a constant throughput. Chris -- Chris Sutcliffe http://emergedesktop.org -- Problem reports: http://cy

Re: 1.7 ssh/rsync consuming all cpu on x64 Vista

2009-06-29 Thread Chris Sutcliffe
>> Maybe you want to give the latest Cygwin snapshot from >> http://cygwin.com/snapshots/ a try. > > $ uname -a > CYGWIN_NT-6.0-WOW64 SAGER9262 1.7.0s(0.210/5/3) 20090628 15:28:41 i686 > Cygwin You need to try with the 20090629 snapshot: $ uname -a CYGWIN_NT-5.1 EUS

Re: 1.7 ssh/rsync consuming all cpu on x64 Vista

2009-06-29 Thread Jonathan
On 6/29/2009 6:02 AM, Corinna Vinschen wrote: On Jun 26 22:02, Jonathan wrote: I've noticed that most of the time when doing an rsync tranfser over ssh from my laptop to my server both ssh and rsync will max out a processor core each and the transfer rate, even on a gigabit LAN, is only about 25

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Corinna Vinschen
On Jun 29 10:42, Christopher Faylor wrote: > On Mon, Jun 29, 2009 at 04:38:40PM +0200, Corinna Vinschen wrote: > >On Jun 29 10:23, Christopher Faylor wrote: > >> On Mon, Jun 29, 2009 at 11:53:22AM +0200, Corinna Vinschen wrote: > >> >On Jun 29 11:28, Corinna Vinschen wrote: > >> >>On Jun 28 15:31,

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 04:38:40PM +0200, Corinna Vinschen wrote: >On Jun 29 10:23, Christopher Faylor wrote: >> On Mon, Jun 29, 2009 at 11:53:22AM +0200, Corinna Vinschen wrote: >> >On Jun 29 11:28, Corinna Vinschen wrote: >> >>On Jun 28 15:31, Christopher Faylor wrote: >> >>>Btw, Corinna, were yo

Call for TESTING (was Re: [1.7.0-50] scp progress counter flies through first 175 MB or so)

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 10:23:48AM -0400, Christopher Faylor wrote: >On Mon, Jun 29, 2009 at 11:53:22AM +0200, Corinna Vinschen wrote: >>On Jun 29 11:28, Corinna Vinschen wrote: >>>On Jun 28 15:31, Christopher Faylor wrote: Btw, Corinna, were you proposing turning the "FIXME" code in peek_pipe

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Corinna Vinschen
On Jun 29 10:23, Christopher Faylor wrote: > On Mon, Jun 29, 2009 at 11:53:22AM +0200, Corinna Vinschen wrote: > >On Jun 29 11:28, Corinna Vinschen wrote: > >>On Jun 28 15:31, Christopher Faylor wrote: > >>>Btw, Corinna, were you proposing turning the "FIXME" code in peek_pipe > >>>back on? > >>[..

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Christopher Faylor
On Mon, Jun 29, 2009 at 11:53:22AM +0200, Corinna Vinschen wrote: >On Jun 29 11:28, Corinna Vinschen wrote: >>On Jun 28 15:31, Christopher Faylor wrote: >>>Btw, Corinna, were you proposing turning the "FIXME" code in peek_pipe >>>back on? >> >>I'm a bit wary to do that, but... >> >>>I don't think I

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
* Andy Koppe (Mon, 29 Jun 2009 09:43:44 +0100) > 2009/6/29 Dave Tang: > > So I've changed my home directory to /home/d.tang in my passwd file. I > > copied the .bashrc into my new home directory. > > > > But when I restart cygwin, it still doesn't load the .bashrc. > > Bash on Cygwin is normally i

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 18:43:44 +1000, Andy Koppe wrote: 2009/6/29 Dave Tang: So I've changed my home directory to /home/d.tang in my passwd file. I copied the .bashrc into my new home directory. But when I restart cygwin, it still doesn't load the .bashrc. Bash on Cygwin is normally invoked

Re: Problem with single quotes

2009-06-29 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to grvs on 6/29/2009 1:00 AM: > Hi all > I am new in cygwin as well as linux and I am trying to learn shell scripting > I tried to write following script which doesn't give me appropriate result. Your question is not cygwin-specific. You wo

Re: 1.7 ssh/rsync consuming all cpu on x64 Vista

2009-06-29 Thread Corinna Vinschen
On Jun 26 22:02, Jonathan wrote: > I've noticed that most of the time when doing an rsync tranfser over ssh > from my laptop to my server both ssh and rsync will max out a processor > core each and the transfer rate, even on a gigabit LAN, is only about > 250KB/s. I'm getting a 6 Gigs/s rate

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Corinna Vinschen
On Jun 29 11:28, Corinna Vinschen wrote: > On Jun 28 15:31, Christopher Faylor wrote: > > Btw, Corinna, were you proposing turning the "FIXME" code in peek_pipe > > back on? > > I'm a bit wary to do that, but... > > > I don't think I ever saw it fail myself after my last round > > of tweaks but

Re: Possible Bug or limitation in Cygwin 1.7 and Rsync and file number limit

2009-06-29 Thread Corinna Vinschen
On Jun 26 23:42, Lists wrote: >> On Jun 19 15:55, Lists wrote: >>> >> Works fine for me under the latest Cygwin 1.7.0-50 using your perl >> script and your rsync options. I tend to agree to Larry's assumption >> that some 3PP is interferring. > > Sorry to just now be replying but I have been out

Re: Bug: /registry file system doesn't return len of default value of keys

2009-06-29 Thread Corinna Vinschen
On Jun 28 20:25, Linda Walsh wrote: > Hi all, > > I've run into some weird behavior from the file-utils (grep, file) but I > believe they may all be caused by the same root problem. > > The /prog/registry filesystem doesn't return the length of the 'default' > value (often a string). > > > Under /p

Re: Running 1.5 and 1.7 sshd in parallel

2009-06-29 Thread Corinna Vinschen
On Jun 28 14:11, Spiro Trikaliotis wrote: > Hello, > > * On Sun, Jun 28, 2009 at 12:31:09PM +0200 Corinna Vinschen wrote: > > On Jun 26 22:25, Federico Hernandez wrote: > > > THX for the fast answer. That is exactly what I tried. > > > > > > 1.5 on port 22 > > > 1.7 on port > > > > > > but

Re: [1.7.0-50] scp progress counter flies through first 175 MB or so

2009-06-29 Thread Corinna Vinschen
On Jun 28 15:31, Christopher Faylor wrote: > On Thu, Jun 25, 2009 at 10:50:05AM -0400, Christopher Faylor wrote: > >On Thu, Jun 25, 2009 at 04:36:51PM +0200, Corinna Vinschen wrote: > >>Looks like scp now stumbles over the pipe select() implementation. > > > >Yes. Grumble. That's a bad interactio

Re: .bashrc

2009-06-29 Thread Andy Koppe
2009/6/29 Dave Tang: > So I've changed my home directory to /home/d.tang in my passwd file. I > copied the .bashrc into my new home directory. > > But when I restart cygwin, it still doesn't load the .bashrc. Bash on Cygwin is normally invoked as a login shell, in which case it doesn't source .bas

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 17:41:08 +1000, Thorsten Kampe wrote: * Dave Tang (Mon, 29 Jun 2009 17:34:44 +1000) Dave, don't send emails to my private email address. Keep the Reply-to to the list. Sorry about that, will remember that. Have a look at /etc/passwd how HOME is set. Check if that fi

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
* Dave Tang (Mon, 29 Jun 2009 17:34:44 +1000) Dave, don't send emails to my private email address. Keep the Reply-to to the list. > > Doesn't really matter. The important thing is your home directory. Set > > it to /home/d.tang > > > > T. > > Thanks for the quick reply. > > So I've changed m

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 17:21:21 +1000, Thorsten Kampe wrote: * Dave Tang (Mon, 29 Jun 2009 17:11:26 +1000) >> Do you spot anything funny going on? > > Your prompt and your home directory. Looks like you're not using bash > (but zsh maybe) and not using the defaults. Ah sorry for the confusion,

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
* Dave Tang (Mon, 29 Jun 2009 17:11:26 +1000) > >> Do you spot anything funny going on? > > > > Your prompt and your home directory. Looks like you're not using bash > > (but zsh maybe) and not using the defaults. > > Ah sorry for the confusion, I had modified my PS1 settings (which I could > se

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 16:52:25 +1000, Thorsten Kampe wrote: * Dave Tang (Mon, 29 Jun 2009 16:21:04 +1000) %whoami d.tang %echo $HOME /cygdrive/c/Documents and Settings/d.tang %cat /etc/passwd d.tang:unused_by_nt/2000/xp:11418:10545:d.tang,U-IMBPC\d.tang,S-1-5-21-2360347544-2198861549-3143054

Problem with single quotes

2009-06-29 Thread grvs
Hi all I am new in cygwin as well as linux and I am trying to learn shell scripting I tried to write following script which doesn't give me appropriate result. x=3 y='[ $x -eq 10 ]' z='[ $x -lt 10 ]' echo x=&x y=$y z=$z and the output is: x=5 y=[ $x -eq 10 ] z=[ $x -lt 10 ] I expected x=5 y=0 z