grep treating my text files as binary!
Binary file /c/intranet/note/note.html matches file note.html note.html: HTML document, Non-ISO extended-ASCII text, with CRLF line terminators I know I can iconv them but why is this suddenly happening I'm unaware of changing any of my settings?? (behaves same with zsh bash) -- zzapper https://twitter.com/dailyzshtip --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- 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: grep treating my text files as binary!
Eric Blake ebl...@redhat.com wrote in news:549b4258.5050...@redhat.com: You upgraded grep. This is an intentional change in behavior in the newest grep. Work around it by using 'grep -a' or 'LC_ALL=C grep'. Thanks Eric, just surprised not to see more people bleating about this - it resisted my Googling skills! Merry Xmas -- zzapper https://twitter.com/dailyzshtip --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- 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
/usr/share/locale/af
Hi Managed to totally screw up my Cygwin by trying to reinstall the base utilities in setup. . Setup kept complaining that /usr/share/locale/af was being shared or locked , ... exit all cygwin etc, reboot required etc ... no luck.. wouldn't even let me do a fresh install into a new directory. In the end manually created the directory af in /usr/share/locale also /usr/share/locale/af/LC_MESSAGES and magically my Cygwin was all bright and shiny again. Don't know if this was a one off , or a chestnut, or if this posting might help someone! -- zzapper http://zzapper.co.uk/ Technical Tips -- 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
rcp wont allow wildcards
Hi I'm using cygwin:rcp to retrieve files from a remote linux server I can retrieve single files just fine e.g. rcp root@111.111.111.111:/var/html/www/scripts/backup.php . but rcp root@111.111.111.111:/var/html/www/scripts/*.php . reports no Matches I guess it's a setting on the remote server in .rhosts etc please advise -- zzapper http://zzapper.co.uk/ Technical Tips -- 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: scp wont allow wildcards
rcp root@111.111.111.111:/var/html/www/scripts/*.php . reports no Matches I guess it's a setting on the remote server in .rhosts etc please advise drat I meant scp -- zzapper http://zzapper.co.uk/ Technical Tips -- 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: scp wont allow wildcards
Corinna Vinschen wrote in news:20111011100850.ga27...@calimero.vinschen.de: drat I meant scp Doesn't matter, it's a PEBKAC. The *local* shell tries to expand the * since you gforgot to quote. Try scp root@111.111.111.111:'/var/html/www/scripts/*.php' . Corinna Thanks , sorted. (Problem Exists Between Keyboard And Chair) I would rather classify my bungle as looking for a complicated reason rather than a simple one!!) -- zzapper http://zzapper.co.uk/ Technical Tips -- 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: [ANNOUNCEMENT] Updated: zsh-4.3.9-1
Peter A. Castro wrote in An updated version of zsh (zsh-4.3.9-1) has been released and should be at a mirror near you real soon. This is an upstream release. Thanks Peter. I just needed to do a rebaseall gvim /usr/share/doc/Cygwin/rebase*.readme -- zzapper http://www.successtheory.com/tips/vimtips.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: [ANNOUNCEMENT] Updated: sgrep 1.94a-2 -- Search indexed text regions like SGML,XML and HTML files
Hey I needed sgrep all my life, is it recent? some simple examples sgrep -i '(h1 .. /h1)' index.php sgrep -i '(fred .. joe)' essay.txt It gets really useful when you stream it sgrep -i '(fred .. joe)' essay.txt | egrep -i 'keyword' -- zzapper http://www.successtheory.com/tips/vimtips.html http://www.successtheory.com/tips/zshtips.html http://www.successtheory.com/tips/cygwintips.php (in progress) -- 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/
Curl is returning nothing on de-Vista-ted
Hi Curl is returning nothing on de-Vista-ted. It's ok on my XP PC Whatever I type curl just returns instantly to the prompt No error message, no help. $ cygcheck -c curl Cygwin Package Information Package VersionStatus curl 7.16.3-1 OK -- zzapper http://www.successtheory.com/tips/zshtips.html http://www.successtheory.com/tips/cygwintips.php (in progress) -- 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: Curl is returning nothing on de-Vista-ted
Corinna Vinschen wrote in news:[EMAIL PROTECTED]: You're probably missing a DLL needed by curl. Run cygcheck /bin/curl.exe and see what it prints. Corinna Thanks that was it Corinna zlib.dll had done a bunk. I just reinstalled zlib from setup.exe and that did the trick!! Have a great day!! Still hating Vista -- zzapper http://www.successtheory.com/tips/vimtips.html http://www.successtheory.com/tips/zshtips.html http://www.successtheory.com/tips/cygwintips.php (in progress) -- 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] New package: pdftk-1.41.1-1 -- PDF utility
Corinna Vinschen wrote in news:[EMAIL PROTECTED]: On Oct 29 13:09, zzapper wrote: Dave Korn [EMAIL PROTECTED] wrote in news:02b901c81990$6b6e60c0 Any chance you can stop quoting raw email addresses? http://cygwin.com/acronyms/#PCYMTNQREAIYR Corinna Corinna, Sorry didn't realise Whoops, was using the default config of Xnews, just found out what to modify, so looking above it's now fixed -- zzapper http://www.rayninfo.co.uk/vimtips.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: [ANNOUNCEMENT] New package: pdftk-1.41.1-1 -- PDF utility
Dave Korn [EMAIL PROTECTED] wrote in news:02b901c81990$6b6e60c0 [EMAIL PROTECTED]: On 28 October 2007 09:05, zzapper wrote: Ignored by Vista (does anything work on Vista?) ie pdftk --help just returns w/o any message or error echo $? $ pdftk --help $ echo $? 53 -- zzapper http://www.rayninfo.co.uk/vimtips.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: [ANNOUNCEMENT] New package: pdftk-1.41.1-1 -- PDF utility
zzapper [EMAIL PROTECTED] wrote in news:Xns99D6F1AFF9372zzappergmailcom@ 80.91.229.13: David Rothenberger [EMAIL PROTECTED] wrote in news:announce.4721FA64.90004 @acm.org: Appears to work fine on XP Ignored by Vista (does anything work on Vista?) ie pdftk --help just returns w/o any message or error -- Dave Aloe Vera Blog http:/aloeveraseeds.co.uk/blog/ -- 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] New package: pdftk-1.41.1-1 -- PDF utility
David Rothenberger [EMAIL PROTECTED] wrote in news:announce.4721FA64.90004 @acm.org: A new package, pdftk-1.41-1, is now available. DESCRIPTION: If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: * Merge PDF Documents * Split PDF Pages into a New Document * Rotate PDF Pages or Documents * Decrypt Input as Necessary (Password Required) Pdftk allows you to manipulate PDF easily and freely. It does not require Acrobat. Cool! Thanks -- zzapper http://www.rayninfo.co.uk/vimtips.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: What I didn't know about ${PACKAGE}
Dave Korn [EMAIL PROTECTED] wrote in news:037701c7f320$a111a660 [EMAIL PROTECTED]: On 08 September 2007 17:00, zzapper wrote: I should have read /usr/share/doc/Cygwin/${PACKAGE}-${VER}.README That's good generic advice! The starting point for cygwin doc man cygwin which points you to man intro which suggests less /usr/share/doc/Cygwin/cron.README (which will not work because of the version number) so use less /usr/share/doc/Cygwin/cron* -- zzapper http://www.rayninfo.co.uk/vimtips.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: [ANNOUNCEMENT] Updated: zsh-4.3.4-1
Peter A. Castro [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Thu, 6 Sep 2007, zzapper wrote: An updated version of zsh (zsh-4.3.4-1) has been released and should be at a mirror near you real soon. Sussed, I had a problem with crypt so when I ran rebaseall it complained about one of the crypt dll's. What I didn't know was that rebaseall then gives up! So I uninstalled crypt deleted the dlls and zsh is running fine Phew Sorry for the false alarm -- 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/
What I didn't know about rebaseall
Hi Just learnt painfully that if rebaseall finds a problem with a DLL it aborts. You have to resolve the dll problem even if you aren't actually interested in that package. I should have read /usr/share/doc/Cygwin/rebase-2.4.3.README -- zzapper http://www.rayninfo.co.uk/vimtips.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: [ANNOUNCEMENT] Updated: zsh-4.3.4-1
An updated version of zsh (zsh-4.3.4-1) has been released and should be at a mirror near you real soon. Peter, (you may have already got this) I'm getting the following errors (this is actually for 4.3.2 which I tried withot success to roll back to) 3 [main] zsh 5904 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap C:\cygwin\lib\zsh\4.3.2\zsh\complete.dll to same address as parent(0x35) != 0x39 I've tried uninstall/reinstall, rebaseall, restarts etc. If anyone has no problems with 4.3.4, pls let me know -- zzapper http://www.rayninfo.co.uk/vimtips.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/
Running DOS window as administrator (Vista)
Hi, Thought I'd read somewhere that there was a Control-key sequence to raise a Vista DOS window to administrator???!? Alternatively is there a cyg command to run as administrator? (sorry if this a chestnut) (I am De-Vista-ted) -- zzapper http://www.rayninfo.co.uk/vimtips.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: Vim copy on select doesn't run
Jose Luis [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Hi, When I select a text on a vim edited file with the mouse, the text isn't copy automatically. On the shell window this run fine. Jose Luis I think you want copy visual area to paste buffer :set go+=a -- zzapper http://www.rayninfo.co.uk/vimtips.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: w3m on Vista crashing (Ok on XP)
Bob Heckel [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: * On Sun, Mar 18, 2007 at 11:09:16AM +, zzapper wrote: when I try to use w3m on Vista (Ok on XP) I'm getting the dreaded Your program has stopped working screen. In fact I cannot even do w3m --version Tried Googling for any previous posts I'm the Cygwin maintainer for w3m but I'm not sure how to help because I don't have access to a box or VM with Vista installed. For what it's worth, the problem may be in either w3m or libgc. Bob Hi Sorry for very late reply, but I guess you have fixed it as it's now working Thanks -- zzapper http://www.rayninfo.co.uk/vimtips.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/
w3m on Vista crashing (Ok on XP)
Hi when I try to use w3m on Vista (Ok on XP) I'm getting the dreaded Your program has stopped working screen. In fact I cannot even do w3m --version Tried Googling for any previous posts -- zzapper http://www.rayninfo.co.uk/vimtips.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: cygwin on Vista
Christopher Faylor [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Wed, Mar 14, 2007 at 10:37:58PM +0100, Dirk Kapusta wrote: Does the latest cygwin dll (1.5.24-2) work on Windows Vista (32 bit)? I use development tools from Altera which installs cygwin for the gnutools and their cross compiler. The version of the cygwin1.dll that is installed with their development tools is Product Version 1.3.23, Build Date 2003-03-27 18:48. I used this so far on Windows 2000. After installing the development tools on Vista I get the following error message when opening the bash shell of the SDK: However, yes, Cygwin works on Vista. If you want answers about how to get Altera working, however, don't ask us. Ask Altera. cgf Yeah Cygwin works fine on Vista, it's just Windows that doesn't work well on Vista ... sigh -- zzapper Success for Techies http://SuccessTheory.com/tips/ vim, zsh success tips -- 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: Accessing remote PC (ssh?)
Dave Korn [EMAIL PROTECTED] wrote in news:010701c76710$ecf36420 [EMAIL PROTECTED]: You already answered your own question. Set up sshd. It's the Cygwin way. :-) It's the posing of the question that often finds the solution! Just set it up reasonably painlessly You have to have a Windows password I used http://pigtail.net/LRP/printsrv/cygwin-sshd.html as FAQ but there is also the official /usr/share/doc/Cygwin/openssh.README -- zzapper http://SuccessTheory.com/tips/ vim, zsh success tips -- 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: Accessing remote PC (ssh?)
zzapper [EMAIL PROTECTED] wrote in news:Xns98F49BF615AA2zzappergmailcom@ 80.91.229.5: I used http://pigtail.net/LRP/printsrv/cygwin-sshd.html as FAQ # basic steps setup a windows password (if you have none) mkpasswd -cl /etc/passwd mkgroup --local /etc/group ssh-host-config (answer various questions, I specified same password as windows) net start sshd # remote PC ssh [EMAIL PROTECTED] -- zzapper http://SuccessTheory.com/tips/ vim, zsh success tips -- 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: when to use a ln or a mount
Brian Dessent [EMAIL PROTECTED] wrote in news:45F5A072.4D263AA0 @dessent.net: zzapper wrote: In my confused mind ln and mount seem to achieve the same thing. In my case I want to have an easy to type path(s) to my old pc so I typed:- mount -f -u -b //dell25/c/ /o but I also tested ln -s //dell25/c/ /old In the Cygwin context does one method have any advatanges over the over? Thanks the fog is starting to clear a ln (link) is basically from x to y whereas a mount is anywhere to y (although you can fudge a ln to look like a mount if you create it in a root directory) BTW for those who've never used either With the above mount I can transfer files from my old PC by cp /o/downloads/*.zip c:/zips -- zzapper http://SuccessTheory.com/tips/ vim, zsh success tips -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
How to list/detect any non-cygwin apps in /bin
My Cygwin installation is at least 4 years old and I will soon move to a new PC and a fresh install. How can I list/detect any non-cygwin apps that I may have added to /bin etc -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to list/detect any non-cygwin apps in /bin
Tim Prince [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I may not be catching your intent; why not sort by .dll dependencies? I want to find out what non-cygwin apps I will have to manually install on my new PC why not sort by .dll dependencies How? -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to list/detect any non-cygwin apps in /bin
Dave Korn [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: (cd / ls -1 usr/bin/* ) a.txt gunzip -c /etc/setup/*.lst.gz | grep '^usr/bin/.' b.txt cat a.txt b.txt | sort | uniq -u ... although this will also find anything that was created by a postinstall script as well: shortcuts in particular. (There may be other false pos/neg-atives, I haven't been thorough...) cheers, DaveK DaveK Thanks I was too shy to ask for a turnkey solution! -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: Complete Vi documentation?
Steven Buroff [EMAIL PROTECTED] wrote in news:003b01c73276$6f116850 [EMAIL PROTECTED]: Where can I find the complete vi(m) documentation? The man page has practically nothing. It doesn't describe the editing commands or the :set options, only the command line options. Doing a set all? lists the options but I really need a description of each one. Thanks. Steve http://vimdoc.sourceforge.net or from within vim :help set -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: Complete Vi documentation?
zzapper [EMAIL PROTECTED] wrote in news:Xns98B1B75E41678zzappergmailcom@ 80.91.229.5: Steven Buroff [EMAIL PROTECTED] wrote in news:003b01c73276$6f116850 [EMAIL PROTECTED]: Where can I find the complete vi(m) documentation? The man page has practically nothing. It doesn't describe the editing commands or the :set options, only the command line options. Doing a set all? lists the options but I really need a description of each one. Thanks. Steve http://vimdoc.sourceforge.net or from within vim :help set or better :help option-list find a specific option :helpgrep ignorecase :helpgrep set.*ignorecase -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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/
Opening a file with a Windows App which is not in Windows File Association
I usually open my images with the wonderful irfanview http://www.irfanview.net/ so cygstart logo.jpg does the job Occasionally I want to use Adobe Photoshop elements, like many Windows Apps it wants the FULL path to the document and obviously in DOS format. The following does the trick, and may be of interest to others function pse() { # name : pse # description : Open image with Adobe Photoshop elements # : (cannot use cygstart as not in Windows File Association) c:/Program\ Files/Adobe/Photoshop\ Elements\ 2/PhotoshopElements.exe $(cygpath -w $PWD/$1) } -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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-email utility clipping attached zips
René Berber [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: zzapper wrote: I'm using the following to send attachments from the cli, works fine except for word Docs etc but zip files loose a few bytes eg -rwxr-xr-x 1 davidr None 161792 Dec 2 12:47 ../aaa/am4mar.doc (RECEIVED) -rwxrwxrwx+ 1 davidr None 161792 Feb 14 2006 am4mar.doc otherwise? Yes, it works fine but I've never sent zip or doc files. Just ran a test, no problem with zip file (unzip -t ... No errors detected in compressed data of...) BTW your subject is probably not attracting many replies, it's not a Cygwin utility, its a package, http://email.cleancode.org/, like any other package. rene, thanks for replying, did you check that file size was exactly the same as unzip is clever enough to copy with a few errors? regards subject, email is so common i wanted to find some way to get any subject to standout, didnt realise it was a package though! I have emailed the author but no reply as yet. I better persue his website! Emailing attachments from the command line will be such useful thing for -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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-email utility clipping attached zips
René Berber [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: But your problem sounds more like one of DOS type mount, or something (bash/tcsh/etc.) mangling the file -- as in stripping \r from binary files. Rene Please award yourself one gold star! I'd messed around with the mounts recently, have now reverted it to binmode, drat! Thanks -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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-email utility clipping attached zips
zzapper [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Hi I'm using the following to send attachments from the cli, works fine except for word Docs etc but zip files loose a few bytes eg -rwxr-xr-x 1 davidr None 161792 Dec 2 12:47 ../aaa/am4mar.doc (RECEIVED) -rwxrwxrwx+ 1 davidr None 161792 Feb 14 2006 am4mar.doc (SENT) -rwxr-xr-x 1 davidr None 596312 Dec 2 12:44 ../aaa/xnews.ZIP (RECEIVED FILE BAD) -rwxrwxrwx+ 1 davidr None 596319 Dec 1 17:48 xnews.ZIP (SENT FILE) email -b -n DJR BACKUP -f [EMAIL PROTECTED] -s BACKUP: [EMAIL PROTECTED] -- attach xnews.zip Is anyone else using the email utility to send attachments, successfully or otherwise? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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-email utility clipping attached zips
Hi I'm using the following to send attachments from the cli, works fine except for word Docs etc but zip files loose a few bytes eg -rwxr-xr-x 1 davidr None 161792 Dec 2 12:47 ../aaa/am4mar.doc (RECEIVED) -rwxrwxrwx+ 1 davidr None 161792 Feb 14 2006 am4mar.doc (SENT) -rwxr-xr-x 1 davidr None 596312 Dec 2 12:44 ../aaa/xnews.ZIP (RECEIVED FILE BAD) -rwxrwxrwx+ 1 davidr None 596319 Dec 1 17:48 xnews.ZIP (SENT FILE) email -b -n DJR BACKUP -f [EMAIL PROTECTED] -s BACKUP: [EMAIL PROTECTED] -- attach xnews.zip Que? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: In scripts suddenly must use perl.exe rather than perl
Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: c:/usr/local/bin/perl.exe Blush red In c:/usr/local/bin/ I found a file named perl size 0 which I deleted and my problem was fixed. Spooky thing this file was dated June 20 2003 (thanks for nudging me in the right direction) -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: In scripts suddenly must use perl.exe rather than perl
zzapper [EMAIL PROTECTED] wrote in news:Xns97FC5C24F2B31zzappergmailcom@ 80.91.229.5: Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: c:/usr/local/bin/perl.exe Blush red In c:/usr/local/bin/ I found a file named perl size 0 which I deleted and my problem was fixed. Spooky thing this file was dated June 20 2003 (thanks for nudging me in the right direction) Only thing I can think of is that somehow on my system Cygwin suddenly looked for before .exe ?? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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/
In scripts suddenly must use perl.exe rather than perl
Hi, I have a few (ancient) shell scripts which call perl scripts (which perform MySql queries), since a few days these have stopped working (may have been since recent coreutils update) c:/usr/local/bin/perl sdbk.pl $* (hard path to activestate perl) to get them working again I have to change perl to perl.exe c:/usr/local/bin/perl.exe sdbk.pl $* Havn't been lurking here recently but is this a known problem or brain- failure on my part? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: In scripts suddenly must use perl.exe rather than perl
Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Sun, Jul 09, 2006 at 12:23:24PM +, zzapper wrote: Hi, I have a few (ancient) shell scripts which call perl scripts (which perform MySql queries), since a few days these have stopped working (may have been since recent coreutils update) What does stopped working mean? YST I just get no output from the perl (doesn't produce any error) c:/usr/local/bin/perl sdbk.pl $* (hard path to activestate perl) to get them working again I have to change perl to perl.exe c:/usr/local/bin/perl.exe sdbk.pl $* What happens when you try running them directly from a shell prompt (using the same shell as your shell script)? It's just the same cygcheck output? Do you want all? cygcheck -s Cygwin Configuration Diagnostics Current System Time: Sun Jul 09 23:37:42 2006 Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2 Path: C:\Cygwin\usr\local\bin C:\Cygwin\bin C:\Cygwin\bin C:\Cygwin\usr\X11R6\bin c:\program files\imagemagick-6.0.4-q16 c:\texmf\miktex\bin c:\usr\local\bin\ c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\vim\vim70 c:\program files\Common Files\Roxio Shared\DLLShared c:\program files\Common Files\GTK\2.0\bin c:\program files\QuickTime\QTSystem\ c:\mysql41\bin c:\bat C:\Cygwin\usr\ucb C:\Cygwin\bin C:\Cygwin\usr\etc C:\Cygwin\usr\local\sbin C:\Cygwin\home\davidr\ . C:\Cygwin\lib\lapack Output from C:\Cygwin\bin\id.exe (nontsec) UID: 1006(davidr) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) Output from C:\Cygwin\bin\id.exe (ntsec) UID: 1006(davidr) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS HOME = '/home/davidr/' PWD = '/usr/local/bin' MAKE_MODE = 'unix' USER = 'davidr' Use '-r' to scan registry a: fd N/AN/A c: hd NTFS 57184Mb 95% CP CS UN PA FC dell25 d: cd UDF 2227Mb 100%CS UN DVD_VIDEO_RECORDER e: fd N/AN/A z: net FAT 12953Mb 69% CPUN c: /cuser binmode c:\Program Files\SQLyog311 /sqlyog2 user binmode C:\Cygwin / system binmode c:\program files/progfilessystem binmode c:\program files\SQLyog Enterprise /sqlyog system binmode c:\Program Files\SQLyog311 /sqlyog3 system binmode C:\Cygwin/bin /usr/bin system binmode C:\Cygwin/lib /usr/lib system binmode C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode . /cygdrive system binmode,cygdrive Found: C:\Cygwin\bin\awk.exe Found: C:\Cygwin\bin\bash.exe Found: C:\Cygwin\bin\cat.exe Found: C:\Cygwin\bin\cp.exe Found: C:\Cygwin\bin\cpp.exe Found: C:\Cygwin\bin\crontab.exe Found: C:\Cygwin\bin\find.exe Found: C:\Cygwin\bin\gcc.exe Found: C:\Cygwin\bin\gdb.exe Found: C:\Cygwin\bin\grep.exe Found: C:\Cygwin\bin\kill.exe Found: C:\Cygwin\bin\ld.exe Found: C:\Cygwin\bin\ls.exe Found: C:\Cygwin\bin\make.exe Found: C:\Cygwin\bin\mv.exe Found: C:\Cygwin\bin\patch.exe Found: C:\Cygwin\bin\perl.exe Found: c:\usr\local\bin\perl.exe Found: C:\Cygwin\bin\rm.exe Found: C:\Cygwin\bin\sed.exe Found: C:\Cygwin\bin\ssh.exe Not Found: sh Found: C:\Cygwin\bin\tar.exe Found: C:\Cygwin\bin\test.exe Not Found: vi Found: C:\Cygwin\bin\vim.exe Found: c:\vim\vim70\vim.exe 802k 2003/09/15 C:\Cygwin\bin\cygaspell-15.dll 56k 2005/07/09 C:\Cygwin\bin\cygbz2-1.dll 54k 2002/01/27 C:\Cygwin\bin\cygbz21.0.dll 7k 2005/11/20 C:\Cygwin\bin\cygcharset-1.dll 16k 2005/10/11 C:\Cygwin\bin\cygcompface-0.dll 7k 2003/10/19 C:\Cygwin\bin\cygcrypt-0.dll 1108k 2006/06/01 C:\Cygwin\bin\cygcrypto-0.9.7.dll 1050k 2006/06/01 C:\Cygwin\bin\cygcrypto-0.9.8.dll 645k 2003/04/11 C:\Cygwin\bin\cygcrypto.dll 194k 2006/06/12 C:\Cygwin\bin\cygcurl-3.dll 22k 2004/02/10 C:\Cygwin\bin\cygcygipc-2.dll 380k 2002/07/24 C:\Cygwin\bin\cygdb-3.1.dll 831k 2003/09/20 C:\Cygwin\bin\cygdb-4.1.dll 895k 2004/04/28 C:\Cygwin\bin\cygdb-4.2.dll 965k 2005/05/14 C:\Cygwin\bin\cygdb-4.3.dll 326k 2002/06/26 C:\Cygwin\bin\cygdb2.dll 487k 2002/07/24 C:\Cygwin\bin\cygdb_cxx-3.1.dll 1080k 2003/09/20 C:\Cygwin\bin\cygdb_cxx-4.1.dll 1156k 2004/04/28 C:\Cygwin\bin\cygdb_cxx-4.2.dll 1240k 2005/05/14 C:\Cygwin\bin\cygdb_cxx-4.3.dll 9k 2004/10/24 C:\Cygwin\bin\cygdlloader-6.dll 174k 2004/10/14 C:\Cygwin\bin\cygexpat-0.dll 72k 2005/12/10 C:\Cygwin\bin\cygexslt-0.dll 129k 2004/03/11 C:\Cygwin\bin\cygfontconfig-1.dll 40k 2006/03/24 C:\Cygwin\bin\cygform-8.dll
RE: In scripts suddenly must use perl.exe rather than perl
David Christensen [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: zzapper wrote: c:/usr/local/bin/perl sdbk.pl $* (hard path to activestate perl) It was my experience that mixing Cygwin and ActiveState Perl was a recipe for frustration. Why can't you just use Cygwin Perl? Ideally I would be 100% Cygwin But ASP has a very good and simple to use PPM Perl Package Manager. I use ASP for mysql (perlDBI) and for certain Windows Extensions David -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: Suggestion: add setup.exe version number to Cygwin home page
Dave Korn [EMAIL PROTECTED] wrote in news:00be01c6945d$00463bb0 [EMAIL PROTECTED]: pushd /dev/null /tmp wget 2/dev/null `cat /etc/setup/last-mirror`/setup.bz2 ( bunzip2 -c setup.bz2 | grep setup-version | cut -f2 -d' ' ) popd /dev/null How this works AFAICT The meat is here wget `cat /etc/setup/last-mirror`/setup.bz2 ( bunzip2 -c setup.bz2 | grep setup-version | cut -f2 -d' ' ) pushd # save current directory /dev/null # suppress output from pushd /tmp # move to /tmp 2/dev/null# suppresses a lot of wget's noise popd /dev/null# return to original directory , suppressing noise -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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/
ssmtp apparently generating random email address?
I run various jobs from cron and then use :- /usr/sbin/ssmtp to mail the results back to me. Every few days I get a mail back from some distant mail server compaining the destination email address does not exist. The email address however is one I don't recognise at all, the email address has however a valid domain otherwise they wouldn't bounce back. I would guess that I am sometimes sending a broken mail header which picks up some default random. But can anyone suggest where I start looking/ what is going wrong? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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/
Resizing images from CLI
From the talk NG I got this info for CLI image manipulation requires ImageMagick installed and in path # from imageMagick convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif lsimg abbeyparkarch.gif s_abbeyparkarch.gif What I'd like now is to resize an image but preserve it's aspect ratio how do? -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: Resizing images from CLI
Reid Thompson [EMAIL PROTECTED] wrote in news:445206FF.80109 @ateb.com: zzapper wrote: From the talk NG I got this info for CLI image manipulation requires ImageMagick installed and in path # from imageMagick convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif lsimg abbeyparkarch.gif s_abbeyparkarch.gif What I'd like now is to resize an image but preserve it's aspect ratio how do? see the imageMagick homepage read the convert man page http://www.imagemagick.org/script/convert.php In fact convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif automatically respects ratio, so only the y dimension is guaranteed convert -resize 80 abbeyparkarch.gif s_abbeyparkarch.gif respects ratio width 80 convert -resize x40 abbeyparkarch.gif s_abbeyparkarch.gif respects ratio height 40 -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: Resizing images from CLI
zzapper [EMAIL PROTECTED] wrote in news:Xns97B38CA43A097zzappergmailcom@ 80.91.229.5: Reid Thompson [EMAIL PROTECTED] wrote in news:445206FF.80109 @ateb.com: zzapper wrote: http://www.imagemagick.org/script/convert.php In fact convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif automatically respects ratio, so only the y dimension is guaranteed convert -resize 80 abbeyparkarch.gif s_abbeyparkarch.gif respects ratio width 80 convert -resize x40 abbeyparkarch.gif s_abbeyparkarch.gif respects ratio height 40 BTW lsimg.exe is actually my own renaming of :- identify abbeyparkarch.gif -- http://successtheory.com/tips/ Vim, Zsh, MySQL Tips -- 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: apache2-2.2.0-1
Max Bowsher [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: The Apache HTTPD version 2.2.0-1 packages, previously released with testing status, are now promoted to the current distribution. IMPORTANT UPDATE NOTE Existing version 2.0 config files are MOSTLY compatible with 2.2, but WILL require at least one change: Several modules have changed name, so the LoadModule statements will need updating. The easiest way to do this is to replace the existing LoadModule statements with the ones in /etc/apache2/original/httpd.conf. Apache 2.2 has a significantly redesigned default configuration: it has been greatly simplified by removing all but the most essential configuration settings. A set of example configuration settings for more advanced features is present in the /etc/apache2/extra/ directory. Furthermore, the naming scheme of the pristine default configuration files has changed: Instead of /etc/apache2/httpd-std.conf, there is now /etc/apache2/original/httpd.conf, and similarly for other files. === Hi, Are people actually moving to Apache 2.x yet?, I was scared off in the early days by talk that it didn't yet support PHP etc. -- zzapper http://successtheory.com/tips/ 100 FREE Success and Self-Improvement Tips -- 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: Where is the Help Guide
#A few more help items man intro (good starting point) man cygcheck man cygpath man cygstart http://cygwin.com/cygwin-ug-net/using-utils.html # System specific less /usr/share/doc/Cygwin/cron.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/
Cygwin: Where is the Help Guide
Cygwin: Where is the Help Guide Where you should start http://cygwin.com/cygwin-ug-net/ (User Guide/FAQ) What's included in Cygwin eg grep,grace,guile,gvim http://cygwin.com/packages/ This (searchable) newsgroup on the web http://news.gmane.org/gmane.os.cygwin/ command line help man zsh info zsh pinfo zsh whatis zsh where zsh General help on *nix tools grep,find,sed etc http://www.gnu.org/manual/ The Cygwin specific tools that help you marry *nix and windows http://cygwin.com/packages/cygutils What else? -- 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/
The Beauty of Cygstart
Hi, Cygstart is one of the marvels of Cygwin as it helps bridge Windows apps and *nix. Specifically Cygstart understands Windows File Associations (amongst other things) So you can type say cygstart finances.doc And this will open the file in MSWord or whatever I use the following typing saving function function cs() {cygstart *$1*} cs fin As often the file I want is the most recent this function is also useful function csn() {cygstart $(/bin/ls -t *.* | head -1)} zzapper -- http://successtheory.com/ 100 FREE Success and Self-Improvement Tips -- 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: The Beauty of Cygstart
zzapper [EMAIL PROTECTED] wrote in news:Xns979065E51F443zzappergmailcom@ 80.91.229.5: Whoops forget the vital (launch in own process) function cs() {cygstart *$1* } function csn() {cygstart $(/bin/ls -t *.* | head -1) } function csl() { cygstart.exe *$(history -1 | sed s/.* //g)* } zzapper -- 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: The Beauty of Cygstart
Igor Peshansky [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Fri, 24 Mar 2006, zzapper wrote: zzapper [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Even it if's your own, http://cygwin.com/acronyms/#PCYMTNQREAIYR. Whoops forget the vital (launch in own process) function cs() {cygstart *$1* } function csn() {cygstart $(/bin/ls -t *.* | head -1) } function csl() { cygstart.exe *$(history -1 | sed s/.* //g)* } The isn't needed for cygstart, as it simply tells the shell to execute the proper association and exits. The only point at which backgrounding would help is the short time it takes for the shell to figure out what the association is (nearly instantaneous on my machine). Drat!! Igor, Its funny how easy it is to panic when posting to a newsgroup, i've never NEEDED the myself, but some reason when I did a quick test the application hung and I jumped to wrong conclusion! Dave -- http://successtheory.com/ 100 FREE Success and Self-Improvement Tips -- 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/
Wordnet : A Dictionary/Thesaurus Tool
Hi Wordnet is another Gem on CygWin which I've only just discovered:- It is a combination of dictionary and thesaurus (and more) Check in setup Text Tools to see if you've enabled its install. wn man wn The online interface is very useful at http://wordnet.princeton.edu/perl/webwn The wiki article is also useful http://en.wikipedia.org/wiki/Wordnet The simplest use AFAIK (is overview) For the word well wn well -over -- zzapper Success for Techies http://SuccessTheory.com/ vim, zsh success tips -- 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: Wordnet : A Dictionary/Thesaurus Tool
Dr. Volker Zell [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: wn well -over Or use wnb well to get a Tk based browser Ciao Volker wnb success Volker I like that, Thanks very much, great tool when you're writing documentation -- zzapper Success for Techies http://SuccessTheory.com/ vim, zsh success tips -- 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/
gurl (call browser and it an URL)
Hi gurl www.cygwin.com or just gurl if url already in paste buffer gurl function gurl() { # Go to URL # description : Open URL in browser if no parameter use paste buffer if [ $# -gt 0 ] then url=$1 else url=$(getclip) fi if [[ $url = www* ]] then # add http:// prefix if required url=http://${url}; fi # c:/progra~1/opera75/opera.exe $url c:/Program\ Files/internet\ explorer/iexplore $url } # I sent this before but didn't ever see it arrive? -- zzapper Success for Techies http://SuccessTheory.com/ vim, zsh success tips -- 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/
Had to do my first rebaseall
Hi, Had to do my first rebaseall when for no apparent reason my zsh failed (dll going potty) . Trouble is when my shell fails I'm kinda stuck as so much of my knowledge depends on it. Luckiliy I googled a cygwin posting where a Cygwin maintainer was fragging some guy for not realising he needed to do a rebasell Tip You need to rebaseall from an ash shell with everything shutdown including CRON! How come I've cygwined 4 so long without needing rebaseall -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
First Ever rebaseall
Hi, Had to do my first rebaseall when for no apparent reason my zsh failed (dll going potty) . Trouble is when my shell fails I'm kinda stuck as so much of my knowledge depends on it. Luckiliy I googled a cygwin posting where a Cygwin maintainer was fragging some guy for not realising he needed to do a rebasell Tip You need to rebaseall from an ash shell with everything shutdown including CRON! How come I've cygwined 4 so long without needing rebaseall ??? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: orpie 1.4.3-1
On Wed, 18 Jan 2006 13:55:47 -0500, wrote: A new version of the orpie package is available in the Cygwin distribution. Some info:- http://freshmeat.net/projects/orpie About: Orpie is a fullscreen RPN calculator for the console. Its operation is similar to that of modern HP calculators, but data entry has been optimized for efficiency on a PC keyboard. Features include extensive scientific calculator functionality, units support, base conversions, command completion, configurable keybindings, and a visible interactive stack Orpie is listed in the Maths Section of your Cygwin Setup -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cd to directory in paste buffer : shell function
Hi, I often want to cd to a (DOS) path that I've copied from some Windows App. The following function (put in one of your startup files .bashrc .profile etc) saves a few clicks and is forward or backslash proof function cdp() { # cdp(aste) # description : Cd to path in paste buffer: convert from DOS if required # set -x getclip echo '' getclip|sed 's#\\#\/#g'|putclip cd $(getclip) } I can already see a few improvements, and it would also be nice to have a check that paste buffer actually contains a path -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cd to directory in paste buffer : shell function
On Fri, 13 Jan 2006 10:28:45 -0800, wrote: On 1/13/06, zzapper [EMAIL PROTECTED] wrote: I often want to cd to a (DOS) path that I've copied from some Windows App. The cygpath program will do the slash conversion for you: cdclipboard() { unixpath=`cygpath -f /dev/clipboard`; if [ -d $unixpath ]; then cd $unixpath fi } echo that's cute -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cd to directory in paste buffer : shell function
On Fri, 13 Jan 2006 14:02:40 -0500, wrote: On Fri, Jan 13, 2006 at 01:51:11PM -0500, Igor Peshansky wrote: On Fri, 13 Jan 2006, zzapper wrote: Hi, I often want to cd to a (DOS) path that I've copied from some Windows sh proof function cdp() { # cdp(aste) # description : Cd to path in paste buffer: convert from DOS if required # set -x getclip echo '' getclip|sed 's#\\#\/#g'|putclip cd $(getclip) } How about simply cd $(cygpath -f - /dev/clipboard) DIR=$(cygpath -f - /dev/clipboard) [ -d $DIR ] cd $DIR Or, even: cdclip() { cd $(cygpath -f - /dev/clipboard) 2/dev/null || : } Funny thing my little script which I've gradually developed for months solved a problem that's niggled me for years then I post it up here and see it variously improved in minutes. Aren't Newsgroups wonderful (also found a solution to how to repair my VW Golf today (not in Cygwin) elsewhere -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
*nix fun/oddball utilities Merry Xmas
Hi, Thanx to all those involved with Cygwin another brilliant year Some lesser known utilities to play around with after your Xmas party instead of ruining the code you've developing all year! fortune wtf imho ddate factor 32 -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: newbie question chdir
On Mon, 19 Dec 2005 15:48:32 +1030, wrote: Hi. Christopher Faylor wrote: On Mon, Dec 19, 2005 at 02:48:53PM +1030, Luke Vanderfluit wrote: I will study the documentation but meanwhile might need some quick help here and there. Help starts here http://cygwin.com/cygwin-ug-net/ You can always do say cd c:/temp I also have a mount to do cd /c/temp -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: zsh-4.2.6-1
On Sat, 10 Dec 2005 10:40:49 -0500 (EST), wrote: On Sat, 10 Dec 2005, zzapper wrote: Hi, From out of no-where I am now getting the listing of the prototypes of all my scripts when I launch a new shell and more worryingly the tab completion of file names has stopped working eg ls fredTAB? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: zsh-4.2.6-1
On Thu, 8 Dec 2005 16:28:04 -0800 (PST), wrote: On Thu, 8 Dec 2005, zzapper wrote: On Thu, 8 Dec 2005 09:55:51 -0800 (PST), wrote: Fresh from the oven, an updated version of zsh (zsh-4.2.6-1) has been freshly baked and should be at a mirror near you real soon. Hi Peter, I'm getting a few warning messages .zshenv:38: compinit: function definition file not found colors: function definition file not found Can you send me that section of your .zshenv file so I can see what it's complaining about? It was compinit -i what was guilty have removed it -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: zsh-4.2.6-1
On Thu, 8 Dec 2005 16:28:04 -0800 (PST), wrote: On Thu, 8 Dec 2005, zzapper wrote: On Thu, 8 Dec 2005 09:55:51 -0800 (PST), wrote: Fresh from the oven, an updated version of zsh (zsh-4.2.6-1) has been freshly baked and should be at a mirror near you real soon. Hi Peter, I'm getting a few warning messages .zshenv:38: compinit: function definition file not found colors: function definition file not found Can you send me that section of your .zshenv file so I can see what it's complaining about? Peter, As you suggested, an uninstalof zsh l followed by install cleared the problem. I would guess that when one runs setup.exe and the shell itself is being updated zsh bash etc it would be best to close all running shells? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: zsh-4.2.6-1
On Sat, 10 Dec 2005 10:40:49 -0500 (EST), wrote: On Sat, 10 Dec 2005, zzapper wrote: As you suggested, an uninstalof zsh l followed by install cleared the problem. I would guess that when one runs setup.exe and the shell itself is being updated zsh bash etc it would be best to close all running shells? Yes, that would be good, since Windows cannot replace in-use files immediately. Either that or reboot as setup indubitably asked you to. Igor I did do the reset but I've been a bit jinxed with my zsh updates, so next time I will belt and brace as the saying goes. -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: apr(-util) 0.9.7-1
On Mon, 14 Nov 2005 21:01:43 +, wrote: zzapper wrote: On Sun, 13 Nov 2005 16:16:58 +, wrote: APR and APR-util, portability and miscellaneous utility libraries, have been updated in the Cygwin net distribution to version 0.9.7-1. Gosh this was hard to Google I think it's sdesc: Additional utility library for use with the Apache Portable Runtime (development/documentation package) ldesc: The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. I have no idea what you are trying to say, zzapper. Max, I was just trying to find some doc on APR, as I didn't even know what it was. -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: apr(-util) 0.9.7-1
On Sun, 13 Nov 2005 16:16:58 +, wrote: APR and APR-util, portability and miscellaneous utility libraries, have been updated in the Cygwin net distribution to version 0.9.7-1. Gosh this was hard to Google I think it's sdesc: Additional utility library for use with the Apache Portable Runtime (development/documentation package) ldesc: The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Winzip Zip
On Wed, 9 Nov 2005 11:02:12 +0800, wrote: On 11/7/05, zzapper [EMAIL PROTECTED] wrote: Hi, Everyone knows the very useful Winzip, however some pretty clever automatic stuff can be done using CygWins zip # zip a webroot but only html or php files zip.exe -r web.zip c:/intranet/web/ -i *.php *.htm* # zip a list of files where list.txt contains one file name per line zip all.zip -@ list.txt find . -name *.[ch] -print | zip source -@ Now you can start using the above for a regular backup if you link them to a cron nice tips! used to use zip for backups a long time ago... then tar.gz... now i use rsync. best, Some examples please -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Winzip Zip
Hi, Everyone knows the very useful Winzip, however some pretty clever automatic stuff can be done using CygWins zip # zip a webroot but only html or php files zip.exe -r web.zip c:/intranet/web/ -i *.php *.htm* # zip a list of files where list.txt contains one file name per line zip all.zip -@ list.txt find . -name *.[ch] -print | zip source -@ Now you can start using the above for a regular backup if you link them to a cron -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: CYGWIN Intsallation-VIM
On Fri, 28 Oct 2005 09:08:10 -0400, wrote: Original Message From: S.Sunil Kumar [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 8:32 AM To: CYGWIN@CYGWIN.COM Subject: CYGWIN Intsallation-VIM Hi, I have checked the following links. http://cygwin.com/faq/faq.setup.html#faq.setup.what-packages http://cygwin.com/packages/ http://cygwin.com/packages/vim/ I can see the file lists only and not the EXE File. If possible I would like to know where I can get the packge and how to install it in XP Platform. Regards Sunil run setup.exe, and select vim from the editors choices. or, download the sources from vim.org and compile it yourself reid Sunil, VI(M) is absolutely a standard part of Cygwin, along with unix2dos etc. However when you installed with setup you may not have selected them (not sure how that could happen), rerun install and stop at the product select/deselect window If you've got broadband I'd recommend full install -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required
On Sun, 23 Oct 2005 17:26:50 -0700, wrote: zzapper wrote: Sometimes it can be hard, especially when you are dealing with both Cygwin and non-Cygwin programs, because the quoting rules differ. But it is always possible, and I can't believe that there exists a situation where you are actually forced to use the short filename. If you have one, post it. Brian See script below sja.exe is actually in program files, my kludge below was to use a mount (rather than the short name) (sja.exe is SQLYOG Job Agent) dirbackup=c:/backup/dosh/ eval filedate=$(date.exe '+%d%b%y') ls -l c:/backup/dosh/doshautoexport.sql sjaprog=/sqlyog/sja.exe sjascript=c:/cygwin/usr/local/bin/sql/dosh-batch.xml sjarun=$sjaprog $sjascript; $sjarun -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required
On Mon, 24 Oct 2005 12:09:41 +0100, wrote: One question.. When you were trying with spaces.. Did you try escaping the \ ? (as in Program\\ Files) I've found this to be necessary at times, though I can't remember an instance at the moment. Does the command run from the console if you start it using the standard path? #yes# Chris Will have a go at the 'Program\\ Files' method -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required
On Mon, 24 Oct 2005 04:28:37 -0700, wrote: Whatever I try I get /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe: No such file or directory But a ls is just dandy ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe -rwx--+ 1 davidr None 1220608 Oct 5 09:45 /cygdrive/c/Program Files/SQLyog Enterprise/sja.exe Short Name method or a mount to a directory are also dandy -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required
On Mon, 24 Oct 2005 13:02:31 +0100, wrote: zzapper wrote: On Mon, 24 Oct 2005 04:28:37 -0700, wrote: Whatever I try I get /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe: No such file or directory But a ls is just dandy ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe -rwx--+ 1 davidr None 1220608 Oct 5 09:45 /cygdrive/c/Program Files/SQLyog Enterprise/sja.exe Short Name method or a mount to a directory are also dandy What happens when you run the program yourself, from a cygwin console? $ /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe SQLyog Job Agent Version 4.2 Copyright (c) Webyog Softworks Pvt. Ltd.. All Rights Reserved. I'm affeared this is going to turn out to be something dumb!! -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required - jraynersqlzip (0/1)
On Mon, 24 Oct 2005 13:49:45 +0100, wrote: Please attach the script in question verbatim (ie don't edit it) so that we can have a look and see what's going on. :) Obviously, if there are passwords, or server names, or ip address, you can mask those.. Just don't change the script itself. Chris see attached I don't think the app sja.exe is significant -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required - jraynersqlzip (1/1)
begin 644 jraynersqlzip M(R$O8FEN+V)A[EMAIL PROTECTED]B,@:G)A6YEG-Q;'II`T*(R!D97-CFEP=EO;B`Z M()A8VMU!-7-Q;!UVEN9R!S:F$N97AE#0HC(1A=4@,C%-87(P-0T* M(R!V,2XP#0ID:7)B86-K=7`](F,Z+V)A8VMU]F87)MR\B#0IE=F%L(9I M;5D871E/20H9%T92YE4@)RLE95B)7DG*0T*;',@+6P@)1IF)A8VMU M]JF%Y;F5RV-H961U;5D+G-Q;`T*#0IS:F%PF]G/2(OW%L6]G+W-J M82YE4B#0IS:F%PF]G/2)C.B]PF]GF%^,2]36Q9;V=^,B]S:F$N97AE M(@T*VIA')O9STB+V-Y9V1R:79E+V,O4')O9W)A;[EMAIL PROTECTED],O4U%,6]G M7!%;G1EG!R:7-E+W-J82YE4B#0IS:F%S8W)I'0](F,Z+V-Y9W=I;B]U MW(O;]C86PO8FEN+W-Q;]JF%Y;F5R+GAM;(-B(DVIA')O9R(@(B1S M:F%S8W)I'0B#0H-FQS(UL(1D:7)B86-K=7`O#0IC`D9ER8F%C:W5P M+VIR87EN97)S8VAE9'5L960NW%L(1D:7)B86-K=7`O:G)A6YEB1F:6QE M9%T92YS6P-FQS(UL(1D:7)B86-K=7`O:G)A6YEB1F:6QE9%T92YS $6P-BYS ` end -- 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: When are Windows Short Path Names required
On Sat, 22 Oct 2005 20:46:04 +0100, wrote: Hi $ cygpath -d c:/Program\ Files/Internet\ Explorer c:\PROGRA~1\INTERN~1 I've just had another case where the I had to use the short form, is the short form the real name? Hi just solved my problem:- sjaprog='/cygdrive/c/Program Files/SQLyog Enterprise/sja.exe' sjascript=c:/cygwin/usr/local/bin/sql/jrayner.xml $sjaprog $sjascript By using no backslashing at all, but surely that's what I would have tried in the first place? Drat Sorry for wasting your grey emininences -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: When are Windows Short Path Names required
On Sat, 22 Oct 2005 20:46:04 +0100, wrote: Hi $ cygpath -d c:/Program\ Files/Internet\ Explorer c:\PROGRA~1\INTERN~1 I've just had another case where the I had to use the short form, is the short form the real name? I think I've may be mislead you, I think my problem was more that when theres an interaction between *nix scripts environment. Sometimes even quoting doesn't seem to carry the correct path info thru to the final WinApp , so you have to move the app to non-space path location or use the short name above. -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
When are Windows Short Path Names required
Hi $ cygpath -d c:/Program\ Files/Internet\ Explorer c:\PROGRA~1\INTERN~1 I've just had another case where the I had to use the short form, is the short form the real name? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Running Win32 apps in program files from a script
Hi What ever I did, my script/app got upset by the spaces in path 'program files' etc I ended up using a mount c:\program files\SQLyog Enterprise on /sqlyog type system (binmode) Then could use /sqlyog/sja.exe That works just fine. Was that the best way? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: whois-4.7.8-1
On Wed, 28 Sep 2005 10:03:03 +0200, wrote: Version 4.7.8-1 of whois has been uploaded. Whois is a client for the whois directory service. It allows you to retrieve information on domains name, IP addresses, and more. If you're not sure what version do you have you can use the following command: % cygcheck -c whois Cygwin Package Information Package VersionStatus whois4.7.8-1OK FYI I have cygcheck -c whois Cygwin Package Information Package VersionStatus whois4.6.14-1 OK -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rm problem: Directory not empty
On Tue, 13 Sep 2005 11:03:30 +0100, wrote: Off-thread? Deleting undeletable Nul files There is a form of MSDOS DEL where you must enter the full path DEL \\.\c:\somedir\nul or use delinvfile.exe (google for this utility) -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
xargs still nok?
Hi, GNU xargs version 4.2.25 or more likely am I misusing xargs? $ ls *.cfm */*.cfm */*/*.cfm */*/*/*.cfm | xargs grep -i host bash: /usr/bin/ls: Argument list too long -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: xargs still nok?
On Thu, 08 Sep 2005 14:01:31 +0200, wrote: Corinna Vinschen wrote: On Sep 8 10:26, zzapper wrote: Hi, GNU xargs version 4.2.25 or more likely am I misusing xargs? $ ls *.cfm */*.cfm */*/*.cfm */*/*/*.cfm | xargs grep -i host bash: /usr/bin/ls: Argument list too long ^ Nothing to do with xargs. Use find instead of ls/w wildcards. yes, you should rather write $ find . -name *.cfm -print0 | xargs -0 grep -i host Is Xargs still reqd for find . -name '*.cfm' -exec grep -i {} \; -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: xargs still nok?
On Thu, 08 Sep 2005 14:50:38 +, wrote: thnx everybody for xargs tutorial (bit of a strange beast xargs!). Here's the crux of the matter ISFAIUI if you want to pipe the o/p of find then xargs will 'regulate' the flow of filenames if you use the -exec method that is inherently on a per file basis so does not require xargs but with a speed penalty for a large number of files -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: xargs still nok?
On Thu, 08 Sep 2005 15:38:24 +, wrote: thnx everybody for xargs tutorial (bit of a strange beast xargs!). Here's the crux of the matter ISFAIUI if you want to pipe the o/p of find then xargs will 'regulate' the flow of filenames if you use the -exec method that is inherently on a per file basis so does not require xargs but with a speed penalty for a large number of files You missed a point - the relatively new POSIX-mandated find `-exec utility {} +' form does the same thing as basic xargs, and with one less process, so it is even faster than piping find to xargs. Ah twigged, the + says batch So really it's Argh no more Xargs !! -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
egrep disappeared?
Hi, Since last downloads (basefiles?) egrep has disappeared. egrep is just an alias or link to grep.exe of course. I have added my own alias as a work around. -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: mirror site
On Mon, 11 Jul 2005 23:36:24 -0400, wrote: The last paragraph on that page states If a site is listed here that seems to be out-of-date for some period of time, that could mean that there is a problem. Contact sourcemaster at this site to report this potential problem. sourcemaster is also the place to send requests to be added to this list. See the last sentence. Thank you David. If I could give out a gold star, I would do so! :-) This is not to denigrate Rong-En Fan. It's just a compliment to David. It saved me the need to make the same point. :-) Increasingly we skim read on the Internet, the last sentence of the above page is a good example of how an important piece of info is skim-hidden, ideally would be a separate paragraph -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: egrep disappeared?
On Tue, 12 Jul 2005 04:53:43 -0700, wrote: zzapper wrote: Since last downloads (basefiles?) egrep has disappeared. egrep is just an alias or link to grep.exe of course. I have added my own alias as a work around. Looks fine to me: http://cygwin.com/packages/grep/grep-2.5-1. Brian Funny thing which finds egrep in /usr/bin /bin etc they are also in my path. bash: /usr/bin/egrep: /bin/sh: bad interpreter: No such file or directory -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: egrep disappeared?
On Tue, 12 Jul 2005 14:17:02 +0100, wrote: Funny thing which finds egrep in /usr/bin /bin etc they are also in my path. bash: /usr/bin/egrep: /bin/sh: bad interpreter: No such file or directory Well, there's your answer - it's /bin/sh which you have missing, not egrep. In Cygwin egrep is a shell script rather than a symlink. I believe there was a window during the recent changeover of /bin/sh from ash to bash where the update could cause /bin/sh to be deleted. Just copy /usr/bin/bash to /usr/bin/sh and all should be well. -- Cliff Cliff, thnx that solved it!! Was it most likely just a glitch on my update? -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: egrep disappeared?
On Tue, 12 Jul 2005 14:37:19 +0100, wrote: zzapper wrote: On Tue, 12 Jul 2005 14:17:02 +0100, wrote: Funny thing which finds egrep in /usr/bin /bin etc they are also in my path. bash: /usr/bin/egrep: /bin/sh: bad interpreter: No such file or directory Well, there's your answer - it's /bin/sh which you have missing, not egrep. In Cygwin egrep is a shell script rather than a symlink. I believe there was a window during the recent changeover of /bin/sh from ash to bash where the update could cause /bin/sh to be deleted. Just copy /usr/bin/bash to /usr/bin/sh and all should be well. -- Cliff Cliff, thnx that solved it!! Was it most likely just a glitch on my update? Yes - a short-lived bug in the postinstall scripts. See: http://sourceware.org/ml/cygwin/2005-07/msg00224.html -- Cliff I updated yesterday 11th July, so is just that the fix hadn't got to the mirrors? -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: launch windows program from shell according to its extension
On Wed, 08 Jun 2005 09:23:53 -0400, wrote: At 03:45 AM 6/8/2005, you wrote: Hello, I have largely replaced usage of windows explorer with a cygwin shell. One thing is cumbersome however: when I encounter, say, a .doc file in a directory, it would be nice that I could launch this file with the program associated under windows. Is this possible, for example via a utility program kind of launch file.doc? Sure. Use 'cygstart'. script to launch most recent file #!/bin/bash # csn # description : launch most recent file (head) # set -x cygstart $(l\s -t * | head -1) Jump back into explorer in CURRENT directory wexp () { XPATH=$(cygpath -w ${PWD}) explorer $XPATH } man cygstart man cygpath -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: launch windows program from shell according to its extension
On Wed, 8 Jun 2005 10:59:27 -0400 (EDT), wrote: #!/bin/bash # csn # description : launch most recent file (head) # set -x cygstart $(l\s -t * | head -1) Make that 'cygstart $(/bin/ls -t | head -1)' (add quotes, otherwise filenames with spaces will not work). Slightly improved to ignore directories (and assuming that Windows files always have an extension) cygstart $(/bin/ls -t *.* | head -1) Jump back into explorer in CURRENT directory wexp () { XPATH=$(cygpath -w ${PWD}) explorer $XPATH } You could've used $(cygpath -aw .). And you need to quote $XPATH (i.e., use 'explorer $XPATH'), for the same reasons (spaces). Besides, how about simply 'cygstart .'? Yep! good. man cygstart man cygpath -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: distcc-2.18.3-1
On Tue, 31 May 2005 15:59:33 -0700, wrote: The distcc-2.18.3-1 package has been updated in the Cygwin distribution. distcc: a fast, free distributed C/C++ compiler distcc is a program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network. distcc should always generate the same results as a local build, is simple to install and use, and is usually much faster than a local compile. http://distcc.samba.org/ -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: sharutils-4.3.80-1
On Mon, 30 May 2005 13:40:59 +0200, wrote: I've just updated the version of sharutils to 4.3.80-1. This is an official upstream release. The Cygwin version has just a tiny configure tweak. sharutils pass all (three) tests in the testsuite. GNU shar makes so-called shell archives out of many files, preparing them for transmission by electronic mail services. A shell archive is a collection of files that can be unpacked by /bin/sh. A wide range of features provide extensive flexibility in manufacturing shars and in specifying shar smartness. For example, shar may compress files, uuencode binary files, split long files and construct multi-part mailings, ensure correct unsharing order, and provide simplistic checksums. http://www.gnu.org/software/sharutils/sharutils.html SHAR SHell ARchiver -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: binutils-20050520-1
On Wed, 25 May 2005 07:40:17 +0200 (CEST), wrote: I've made a new version of binutils available for installation. This version is a refresh from CVS on sources.redhat.com. For a brief description of this package, and a listing of the files it contains, see http://cygwin.com/packages/binutils . CF usr/bin/addr2line.exe addr2line - convert addresses into file names and line numbers usr/bin/ar.exe Archive Tool usr/bin/as.exe AS - the portable GNU assembler usr/bin/c++filt.exe usr/bin/dlltool.exe usr/bin/dllwrap.exe usr/bin/gprof.exe gprof - display call graph profile data usr/bin/ld.exeld - Using LD, the GNU linker usr/bin/nm.exe nm - list symbols from object files usr/bin/objcopy.exe usr/bin/objdump.exe usr/bin/ranlib.exe usr/bin/readelf.exe usr/bin/size.exe size - list section sizes and total size. usr/bin/strings.exe strings - print the strings of printable characters in files. (Really Useful for guessing what a program does) usr/bin/strip.exe strip - Discard symbols from object files usr/bin/windres.exe windres - manipulate Windows resources -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: Mutt-1.4.2.1i-1
On Wed, 25 May 2005 10:55:08 +0200 (CEST), wrote: I have updated the version of mutt on cygwin.com to 1.4.2.1i-1. The Mutt E-Mail Client All mail clients suck. This one just sucks less. -me, circa 1995 http://www.mutt.org/ -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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: What tools does Cygwin contain? ( pinky)
Drat, I meant to add and most interestingly: http://cygwin.com/packages/cygutils/ Which contains for instance msgtool, namei, ipck semtool which I'd never heard of -- zzapper vim -c :%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg? http://www.rayninfo.co.uk/tips/ vim, zsh success tips -- 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/