Re: 1.7] BUG - GREP slows to a crawl with large number of matches on a single file
Jim Reisert wrote: >On Fri, Nov 6, 2009 at 7:12 AM, Cooper, Karl (US SSA) > wrote: > >> Corinna Vinschen wrote: >>> Or try LANG=C.ASCII since LANG=C will still return UTF-8 as charset >>> when calling nl_langinfo(CHARSET). >> >> Yes, this solves it: >> >> $ time LC_ALL=C.ASCII grep dog testfile | wc >> 10 90 450 >> >> real0m0.359s >> user0m0.279s >> sys 0m0.232s > > > I just tried this on my system, I routinely grep groups of files > containing 100K lines. I was *astounded* how fast "grep" is after > setting LC_ALL=C.ASCII ! The second run of grep is usually much faster due to disk buffering. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: ssh hanging on some connections
> Richard Foulk wrote: > > Aloha, > > > > Has anyone figured out why ssh is hanging sometimes? Saw it mentioned > > in some back archives, but no answers. > > > > Just installed the latest Cygwin today and now I've got the ssh hang > > problem when I access a particular Linux box over the Internet. > > > > It connects okay, though much slower than another Linux box here. Works > > okay for a few characters, then hangs. The local loop is still listening > > though, and can exit with the usual `~.'. > > > > Connects to local Linux boxes just fine, no hangs. > > > > (OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007) > > Have you ruled out problems with the remote Linux box? > > -- > Larry Hall http://www.rfk.com > RFK Partners, Inc. (508) 893-9779 - RFK Office > 216 Dalton Rd. (508) 893-9889 - FAX > Holliston, MA 01746 > Yes. The Linux box hasn't changed in a while and the Cygwin box was just recently upgraded. And the Linux box talks all day long with other Linux boxes with no problem. Richard -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ssh hanging on some connections
Aloha, Has anyone figured out why ssh is hanging sometimes? Saw it mentioned in some back archives, but no answers. Just installed the latest Cygwin today and now I've got the ssh hang problem when I access a particular Linux box over the Internet. It connects okay, though much slower than another Linux box here. Works okay for a few characters, then hangs. The local loop is still listening though, and can exit with the usual `~.'. Connects to local Linux boxes just fine, no hangs. (OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007) Richard -- 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/
cleanup after failed setup?
Aloha, Periodically, when I try to update Cygwin with setup.exe the process hangs and requires a `cancel' to stop. Often after this setup crashes on subsequent runs after all the various startup questions and leaves nothing in setup.log or setup.log.full to debug with. Is there a way to fix this without a complete uninstall? (setup.exe version 2.573.2.2 and quite a few previous. A number of different machines running XP and Win2k.) Thanks, Richard -- 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/
using regtool to modify remote registries?
Can someone point me to documentation or examples of using regtool to modify remote user registries? The man pages and other documentation don't quite explain things. The get and set commands seem likely, but don't work by themselves. The load, unload and save commands seem likely, but the documentation on them is cryptic and terse. Plenty of searching with google didn't help much either ... Thanks, Richard -- 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/
ping returns success on failure
Ping returns zero (0) after a successful response from a remote host. It returns one (1) if it's called with a unknown domain name -- a failure. Unfortunately, it returns zero if the remote host exists but doesn't respond. This seems like incorrect behavior to me and doesn't agree with ping on Linux. This assumes ping is being directed not to loop forever (ping host 1 1 1). Richard -- 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/
Updating cygwin and X
What is the proper way to install everything and then update it from time to time? The setup.exe program says it's to be used for installs and updates but only seems to know how to install, reinstall or uninstall. Nothing specific to updates, unless I missed it. Problem is that every few `install's, setup hoses X so it won't run. Is there an easy fix for this? Or best not to update? Thanks Richard -- 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/
library paths
Running cygwin on a number of diverse machines, accessability of cygwin1.dll and others can be a problem. We use perl a lot and are looking into building a standard routine for the beginning of each script that will add to the path where necessary. And perhaps even remove from the path if two or more instances of the key libraries are found. Has anyone done something like this? Any suggestions? Thanks Richard -- 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/
superfluous dos box from ssh
Aloha, I don't shut my machine down every day, so cruft tends to accumulate over time. Today, as I make a remote ssh connection from an xterm I get an empty DOS box window on the screen for the duration of the connection. If I close that window the ssh connection is shut down. In the past I've restarted Cygwin to clean this up. Is there a way to quell this behavior by less extreme measures? Thanks Richard -- 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 windows from cygwin in ssh
> >Why when I'm asking about this probably new feature of cygwin sshd, all > >list become silent? :) Nobody remembers what changes were in cygwin sshd > >since 01.03.2005? :) Or this information is about to be secret and I > >have to understand it from sources only? > > It's much simpler than that: We just don't like you. > > cgf > > This would be funny if this list wasn't so surly at times. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cygwin as X terminal(s) ?
Aloha, As someone pointed out you can use Cygwin with X as an X terminal. For remote admin of a linux/unix box that's pretty handy. By invoking this command from Cygwin before starting X: x -broadcast you get a window that contains the whole remote desktop. Is there a way to create multiple separate such windows/desktops on one Cygwin system? That would be mighty handy for admining multiple machines. Thanks Richard -- 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/
running cygwin from file server
Aloha, I've installed Cygwin on a file server common to a large number of clients. This allows various tools and scripts to be run on any of the clients without cluttering them with their own installations. Occasionally it would be nice to obtain a quick interactive shell environment on one of the clients, including having /tmp, /etc and others in place on the server partition. Preferrably without leaving a lasting trace on the client. Perhaps by invoking a single batch file from the server partition. Is there a quick, easy, or already done, way of doing this? Thanks Richard -- 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/
Windows popup/message box?
Aloha, Looking for a simple way to popup a message box on Windows via a Perl script on a system with Cygwin. Looking for portability, light weight, foolproof. The `net send' option doesn't seem very reliable or portable. Thanks! Richard -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How can I copy the configuration from one PC to another?
> Hi! > > I think that several people have this problem: If you get a new PC you > have to manually switch on all programs that you want or need. > Is it possible to copy the configuration from one PC to another and if, > how? This isn't necessarily a Cygwin question. But it's a very important question with only one reasonable answer, in my opinion. If you want to move all software from one computer to another then check out Acronis True Image with the Universal Restore option. It will restore a Ghost-like backup to just about any other PC, automatically handling the change of devices. I have nothing to do with Acronis other than being a satified customer. Richard -- 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: query of installed apps on remote Winows
Dave <[EMAIL PROTECTED]> wrote: > Richard Foulk wrote: > > Anyone know how the control-panel->Add/Remove-Programs facility works? > > Not particularly cygwin specific, and comprehensively covered at > Microsofts site. Anyway, here's some basic info. > > Each program needing an uninstall item has a key in: > /HKLM/Software/Microsoft/Windows/CurrentVersion/Uninstall > > See > http://windowssdk.msdn.microsoft.com/en-us/library/ms709926.aspx > http://support.microsoft.com/kb/247501 > > > Is this something that might be supported by existing cygwin tools? > > Personally, I'd leave installing/uninstalling of non-cygwin apps to > windows. Can you imagine the queries coming to this list? > - I couldn't uninstall notepad! > - Executing random uninstaller broke my system! Why did cygwin allow that? > > > Dave. I think you missed my point. We're automating administration of large numbers (hundreds) of workstations. Windows can't handle most of this stuff. But with Cygwin we're finding ways. It's cheap, fast, powerful, flexible, extensible. The mentality that keeps coming back to the limited set of Windows tools for administration is a very constricting and costly one. Thanks for the uninstall lead. That's the key. Looking good. Regtool can accomplish the same things as expensive 3rd-party Windows tools, with a lot less grief. (And without the straightjacket.) Not expecting this to become a mainstream part of this list, just asking for leads and experiences of others. Cygwin is the key. (My query was not for an uninstall. If we're going to blame a development environment for all the problems it *might* cause in the future we're in big trouble.) This keeps getting better and better. Thanks! Richard -- 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/
query of installed apps on remote Winows
Aloha, Didn't get much response on my last query of this topic. But the discussion of regtool has made me wonder ... regtool can access registries of remote machines. So it seems there must be an `easy' way of accessing the list of `currently installed' programs. Anyone know how the control-panel->Add/Remove-Programs facility works? Is this something that might be supported by existing cygwin tools? And further: accessible remotely? We're using cygwin for a growing number of remote admin tasks on a large network of Windows machines. Always looking for more ways to make operations scriptable/batchable. (We've even managed to use cygwin to accomplish mass remote installs of some software packages.) Thanks in advance for any insights into this or other remote admin possibilities! Richard -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup.exe roadblocks
> Hash: SHA1 > > According to Richard Foulk on 7/5/2006 5:16 PM: > > > > My apologies for the substandard report. I forgot to take notes the > > last time it happened. :-( Now I remember ... it's the message that > > warns about files having changed -- so you need to reboot or things > > won't work right. > > > > But this stops the download until you dismiss the popup. :-( > > The solution is simple. Ensure that no cygwin processes are running > before you start setup.exe, then no cygwin files will be in use and > setup.exe will have no reason to popup a box. > > - -- > Life is short - so eat dessert first! > > Eric Blake [EMAIL PROTECTED] Right you are. Sadly, that can mean an unnecessarily long time without use of Cygwin. :-( -- 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 Digest 5 Jul 2006 17:15:27 -0000 Issue 5039
> > Subject: setup.exe roadblocks > > > > Aloha, > > > > Setup has the annoying habit of pausing a download/install to deliver > > information that isn't necessary until the run is complete. > > > > This often makes the install take much longer. Would be nice if you > > could walk away and come back later to a completed install -- this has > > become unlikely on subsequent runs that add more packages. > > > > Richard > > -- > > I've been using setup for years and I cannot remember having the > experience that you describe. Perhaps you could give more detail. > > Though one common suggestion with setup problems is to try another > mirror. I've no idea whether that would work but it doesn't cost much. > > Another possibility is to download and install in two separate steps. I > don't remember the circumstance but I vaguely recall needing to do that > some years ago. > > - Barry > My apologies for the substandard report. I forgot to take notes the last time it happened. :-( Now I remember ... it's the message that warns about files having changed -- so you need to reboot or things won't work right. But this stops the download until you dismiss the popup. :-( Richard -- 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/
setup.exe roadblocks
Aloha, Setup has the annoying habit of pausing a download/install to deliver information that isn't necessary until the run is complete. This often makes the install take much longer. Would be nice if you could walk away and come back later to a completed install -- this has become unlikely on subsequent runs that add more packages. Richard -- 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: Access to Network Drive under ssh
> David Greene wrote: > > mwoehlke wrote: > >> You need to first do: > >> net use /delete h: > >> > >> ...so that you don't get prompted > > > > Now I get this, which is what happened before I started > > sshd as dag. Except I can still cd to //samba-drive/dag: > > > > $ net use H: \\samba-drive\dag > > System error 67 has occurred. > > > > The network name cannot be found. > > Are you on a 64-bit Windows by any chance? > If not, I won't be able to tell you why 'net' is being brain-dead, other > than "hmm, it does that sometimes; good luck!". > I've written my own mount command for Cygwin in Perl. One thing to be aware of is that drive letters aren't necessary with Cygwin. You can't say: `cd \\xyz\c$' with Windows cmd.exe. You *can* say things like: `cd //xyz/c\$' in Cygwin. This cleans up many things. If you have the right permissions `net use' isn't necessary! A wrapper for `net use' in Perl is pretty easy to do, including all the password stuff. Those drive letters just get in the way. Don't use them. Richard -- 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: Installed Applications?
> On Sat, 17 Jun 2006, Richard Foulk wrote: > > > Aloha, > > > > I'm looking for a good way to determine the software packages installed > > on a machine. > > > > We're hoping to do this remotely on a network of clients by mounting a > > client's drive and rummaging around. > > > > Is there an easy/reliable way to do this with Cygwin? > > If you've set up sshd on the remote machine, 'ssh MACHINE "cygcheck -cd"' > ought to do it. Otherwise, looking at the drive is probably not going to > get you anything reliably (in a way that's guaranteed to always work). > For a non-portable hack using the current settings, look at the source of > the Cygwin setup program. > > Incidentally, most software leaves traces in the registry, at well-known > keys, so the easiest way to check for it is look in the registry (as it > may actually be installed anywhere). The same is the case with Cygwin > (look for "HK(LM|CU)/Software/Cygnus Solutions/Cygwin" -- even though the > mount information might be moved out at some point, the key itself will > probably stay around). Though how you intend to browse the registry on a > mounted drive is not very clear. > HTH, > Igor > -- Thanks very much for the response. This is a large network of clients. We're hoping not to have to install more software on all the clients to monitor them. Cygwin is a tool on our administrative machines. (Which is serving us well in this capacity so far.) Richard -- 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/
Installed Applications?
Aloha, I'm looking for a good way to determine the software packages installed on a machine. We're hoping to do this remotely on a network of clients by mounting a client's drive and rummaging around. Is there an easy/reliable way to do this with Cygwin? Thanks! Richard -- 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/
mount permissions?
Aloha, Linux mount(1) supports something like this: smbmount //host/share /mnt -o username name%password This lets you specify the Windows user and password for the mount. Is there any way to do this with Cygwin's mount? Thanks Richard -- 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: mount never fails ... sorta
> Richard Foulk wrote: > > Give mount(1) nonexistent hosts or directories and it will complain, > > but it still populates the mount table as if it succeeded. > > > > It also always returns zero, for success or failure. > > Cygwin's mount is a different bird than on Unix. It really is just a mapping > table of POSIX names to DOS or UNC-style paths. It is not required that the > POSIX path exist for things to work. But since most people coming from a UNIX > background expect that it does and it certainly helps things like shell > path completion if the paths do already exist, you get a warning to let you > know about this difference. > I guess I should have said mount's behavior is wrong and broken. It knows when there's an error it just does the wrong things. 1. mount reports the error to stderr, but not via the return code. 2. mount knows about the error but signals success anyway -- by listing a (non-existent) mount within the mount table. Sure Cygwin's mount is different than Unix's. That's what Cygwin is all about, hiding those differences. Cygwin's mount fails at that. Registering a mount that doesn't exist is quite broken. Richard -- 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/
setup.exe
Cygwin-X is a liberating tool. Is there a way to use setup.exe remotely, via X, so it fits into the larger scheme of things? Or is there some other tool that does the same thing via X or command line? Thanks Richard -- 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: RPM's (was Re: unix 'at' command implementation)
-- 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/
mount never fails ... sorta
Give mount(1) nonexistent hosts or directories and it will complain, but it still populates the mount table as if it succeeded. It also always returns zero, for success or failure. Richard -- 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/
mv does copy instead of rename
In an Active Directory environment Windows Explorer was refusing to rename a directory, presumably because the directory was open by another process. On trying mv under Cygwin to rename the directory, mv seemed to just hang. It was a large directory and mv was actually copying the files to the new named directory (on the same partition.) Does this seem like appropriate behaviour? It was certainly unexpected. I'm pretty sure mv is never supposed to do this on Unix. Richard -- 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/