Instructions to rebuild gcc-mingw?
I've been attempting to rebuild gcc-mingw, without much luck. The build scripts in the source tarball only assemble the package from a prebuilt tarball of a mingw gcc install. I've been unable to find a way to rebuild this encapsulated tarball. All my attempts have failed due to parts of Cygwin contaminating the configure tests for the mingw setup. Can anyone provide a functional build script for this? Thanks, Max.
Re: Instructions to rebuild gcc-mingw?
On Sun, Jun 22, 2003 at 03:55:44PM +0100, Max Bowsher wrote: I've been attempting to rebuild gcc-mingw, without much luck. The build scripts in the source tarball only assemble the package from a prebuilt tarball of a mingw gcc install. Correct. The intent is to repackage gcc from mingw to be used for cygwin. The binaries are built by Danny Smith. I just repackage them. I include the source to be compatible with the GPL but if you want to rebuild completely from scratch you'll have to figure out how to do that. It's really not an issue for gcc-mingw or cygwin-apps. cgf
Re: Instructions to rebuild gcc-mingw?
Christopher Faylor wrote: On Sun, Jun 22, 2003 at 03:55:44PM +0100, Max Bowsher wrote: I've been attempting to rebuild gcc-mingw, without much luck. The build scripts in the source tarball only assemble the package from a prebuilt tarball of a mingw gcc install. Correct. The intent is to repackage gcc from mingw to be used for cygwin. The binaries are built by Danny Smith. I just repackage them. I include the source to be compatible with the GPL but if you want to rebuild completely from scratch you'll have to figure out how to do that. It's really not an issue for gcc-mingw or cygwin-apps. Aha. Well, at least I now know where to pursue this. Thanks, Max.
[Patch] Eliminate redundant conditional
2003-06-22 Max Bowsher [EMAIL PROTECTED] * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional. Index: rfc1738.cc === RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/rfc1738.cc,v retrieving revision 2.4 diff -u -p -r2.4 rfc1738.cc --- rfc1738.cc 1 May 2002 11:13:16 - 2.4 +++ rfc1738.cc 22 Jun 2003 19:14:38 - @@ -129,8 +129,7 @@ rfc1738_do_escape (const char *url, int do_escape = 1; } /* RFC 1738 says any non-US-ASCII are encoded */ - if (((unsigned char) *p = (unsigned char) 0x80) - ((unsigned char) *p = (unsigned char) 0xFF)) + if ((unsigned char) *p = (unsigned char) 0x80) { do_escape = 1; } The expression ((unsigned char) *p = (unsigned char) 0xFF)) is always true. (Found by gcc-3.3) Max.
[Patch] Don't specify -Wmissing-declarations when compiling a C++ file
2003-06-22 Max Bowsher [EMAIL PROTECTED] * Makefile.am (AM_CXXFLAGS): Remove -Wmissing-declarations, which is a C-only warning. Index: Makefile.am === RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/Makefile.am,v retrieving revision 2.29 diff -u -p -r2.29 Makefile.am --- Makefile.am 29 Mar 2003 10:15:57 - 2.29 +++ Makefile.am 22 Jun 2003 19:47:39 - @@ -25,10 +25,9 @@ SUBDIRS = bz2lib zlib libgetopt++ @RSYNC ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* ##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith -AM_CFLAGS = -Werror -Wall -Wpointer-arith \ - -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ - -Wmissing-declarations -Wcomments -AM_CXXFLAGS = $(AM_CFLAGS) +AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \ + -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes +AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations WINDRES := @WINDRES@ Max.
Re: [Patch] Eliminate redundant conditional
Max Bowsher wrote: The expression ((unsigned char) *p = (unsigned char) 0xFF)) is always true. (Found by gcc-3.3) Sure - please do. (I hadn't had time to propogate the squid fix across :}). Rob
Re: [Patch] Don't specify -Wmissing-declarations when compiling aC++ file
Max Bowsher wrote: 2003-06-22 Max Bowsher [EMAIL PROTECTED] * Makefile.am (AM_CXXFLAGS): Remove -Wmissing-declarations, which is a C-only warning. Please check in. Rob
Re: [Patch] Don't specify -Wmissing-declarations when compiling a C++ file
Robert Collins wrote: Max Bowsher wrote: 2003-06-22 Max Bowsher [EMAIL PROTECTED] * Makefile.am (AM_CXXFLAGS): Remove -Wmissing-declarations, which is a C-only warning. Please check in. The change makes a nearby comment much less obvious. OK to check in with the following additional change? -##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith +## We would like to use -Winline, but some STL code causes this warning. Max. Full patch: Index: ChangeLog === RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/ChangeLog,v retrieving revision 2.361 diff -u -p -r2.361 ChangeLog --- ChangeLog 5 Jun 2003 15:35:51 - 2.361 +++ ChangeLog 22 Jun 2003 20:50:41 - @@ -1,3 +1,8 @@ +2003-06-22 Max Bowsher [EMAIL PROTECTED] + + * Makefile.am (AM_CXXFLAGS): Remove -Wmissing-declarations, which is a + C-only warning. + 2003-06-05 Gary R. Van Sickle [EMAIL PROTECTED] * window.h (SETUP_WINDOW_H): Rename multi-include guard. Index: Makefile.am === RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/Makefile.am,v retrieving revision 2.29 diff -u -p -r2.29 Makefile.am --- Makefile.am 29 Mar 2003 10:15:57 - 2.29 +++ Makefile.am 22 Jun 2003 20:06:01 - @@ -24,11 +24,10 @@ SUBDIRS = bz2lib zlib libgetopt++ @RSYNC ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* -AM_CFLAGS = -Werror -Wall -Wpointer-arith \ - -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ - -Wmissing-declarations -Wcomments -AM_CXXFLAGS = $(AM_CFLAGS) -##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith +## We would like to use -Winline, but some STL code causes this warning. +AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \ + -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes +AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations WINDRES := @WINDRES@
Re: [Patch] Don't specify -Wmissing-declarations when compiling aC++ file
Yes, in fact, you could add -Winline to the CFLAGS section again, as the C code won't hit the STL issue. Rob
Re: Setup.exe: Font issue
Ping? This is trivial in complexity, so shouldn't require a long review. It is just: -FONT 8, MS Sans Serif +FONT 8, MS Shell Dlg all through res.rc. I've tested it, it works. OK to apply? Max. Max Bowsher wrote: Reawakening discussion on this patch. Thread start: http://sources.redhat.com/ml/cygwin-apps/2003-05/msg00177.html This appears to help the strange DPI issue. Though Gary had some concerns that it wasn't the ultimate fix, it does seem to fix the issue. If we get this committed, I'll redo the snapshot, and we will have an URL to point people with this problem to. Max. Benjamin Riefenstahl wrote: Hi, I always used to have problems with the package selection page in setup.exe (on W2K, using a custom screen resolution of 144 dpi). The package list never showed the vertical scrollbar. In the current version the mouse wheel didn't work either (another patch coming), so I couldn't scroll the list at all. I tracked this down now to a font issue. Turns out that the main window of the PropertySheet wizard uses the font alias MS Shell Dlg as its base font (as seen in the DLGTEMPLATE passed to PSCB_PRECREATE). The individual pages use the font alias MS Sans Serif as set in the resource file. With larger screen resolutions, this results in widely different ideas about the size of the dialog units that are used to measure dialogs and controls. The result is that the vertical scrollbar of the list was outside of the clipping region that the main window had set up. The simplest fix was to change the font in the resource file (patch attached). This is certainly better than the current situation, but I am not sure this is the best solution, as I am not sure that it is documented and garanteed that the wizard will use this specific font alias. Ideally we want either set the font for the main window to MS Sans Serif at an apropriate time (i.e. before dialog units are converted to pixel units), or in some other way synchronize the font for the individual sheets with the main window at runtime. I have not found a simple way to do this yet, though. If there is interest I can at least provide the code that I used to check the font that the main window is using and to write that to the log file. so long, benny 2003-05-19 Benjamin Riefenstahl [EMAIL PROTECTED] * res.rc (all dialogs): Change font from MS Sans Serif to MS Shell Dlg.
Re: Setup.exe: Font issue
Max Bowsher wrote: Ping? This is trivial in complexity, so shouldn't require a long review. It is just: -FONT 8, MS Sans Serif +FONT 8, MS Shell Dlg all through res.rc. I've tested it, it works. OK to apply? I'm still a little leery, as the already pointed out limitations - are there machines with vector instead of bitmaps Dlg fonts. Does it interact (worsely) with large/small font settings. And so on. What would be greate, would be knowing how to get in 'under the hood' and actually override MS's behaviour here, so we can do the right thing always. That said, I don'thave a better solution either... so please check it in, but put a comment in the rc file, about the next steps if this raises more issues than it solves. Cheers, ROb
Potential patch for mkdirhier
hi all, i have recently discoverd that the script mkdirhier does not work properly on Cygwin (i doubt that i'm the first one who discovered this, but i can't find any patch on the web). the cause is that in the script, it is possible for /bin/sh to shift $@ such that you will get empty string for $filename. when that happens, mkdirhier will possibly try to mkdir such path //some/path -- this doesn't present any problem for Linux, but it is an error on Cygwin. Therefore, i propose the following patch to look out for empty string when parsing the path: --- mkdirhier.bak 2002-01-21 14:41:32.0 +0100 +++ mkdirhier 2003-06-22 15:51:23.0 +0200 @@ -43,6 +43,11 @@ for filename do +#[ywlaw] +if [ $filename = '' ]; then +continue +fi + path=$prefix$filename prefix=$path/ shift i hope this is a useful observation. Best regards, yw
Re: Cannot display remote program on local machine.
monika wrote: know how I should do this. After I connect to the remote server using ssh through bash, I export the display using export DISPLAY=ip_localmachine. However, this does not give me the display of the remote program. What is it that I am suppose to do and I am not doing. I think I am making some mistake, but do not know what. Monika, See the user's guide (linked off xfree86.cygwin.com), section on displaying remote clients using telnet or ssh. -JT
rdesktop.exe session on an X-terminal?
Greetings: We need to configure a single-host Win2k Terminal Server solution; this machine should provide Windows desktops on X-terminals. On a test machine using Cygwin/Xfree86 one may telnet from the X-terminal and establish an xterm (bash) session but 'rdesktop.exe' will not open a session on the remote display. 'rdesktop.exe' does open a session window on the console display if invoked from a console command prompt. 'rdesktop' running on a Unix host works well to provide a Windows session desktop on an X-terminal however we need to create a configuration which doesn't require a separate Unix host to provide X11 services. Also XDM running on Cygwin/Xfree86 will produce a 'willing to manage' broadcast and if the Win host is selected it does present a login screen but fails on authentication. Has anyone made XDM work? Michael Grigoni Cybertheque Museum
Re: rdesktop.exe session on an X-terminal?
msg wrote: Greetings: We need to configure a single-host Win2k Terminal Server solution; this machine should provide Windows desktops on X-terminals. On a test machine using Cygwin/Xfree86 one may telnet from the X-terminal and establish an xterm (bash) session but 'rdesktop.exe' will not open a session on the remote display. 'rdesktop.exe' does open a session window on the console display if invoked from a console command prompt. is the DISPLAY variable set? If not, then rdesktop does not know where to display the window. 'rdesktop' running on a Unix host works well to provide a Windows session desktop on an X-terminal however we need to create a configuration which doesn't require a separate Unix host to provide X11 services. Also XDM running on Cygwin/Xfree86 will produce a 'willing to manage' broadcast and if the Win host is selected it does present a login screen but fails on authentication. Has anyone made XDM work? xdm on windows? This is very complicated. bye ago NP: Nightwish - Stargazers -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Problems with Nano
Did you know that nano-1.2.1 is now available at http://www.nano-editor.org/dist/v1.2/nano-1.2.1.tar.gz ? It installs perfectly well into Cygwin using ./configure; make; make install. (There are options.) I have had the reported screen-refreshing problems in the past but not lately. A minor problem with regexp Search-and-Replace: if I try to add {string} to the end of every line in a file using Alt-rAlt-r (to get regexp mode) Search $ Replace {string}then I just get repeated appends {string}{string}{string}... at the current line and no sequential movement to the next line. Any ideas? Fergus -- 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/
Fw: New Emacs awk-mode
Alan Mackenzie wrote: A new version of Emacs's CC Mode was released this afternoon. It has support for AWK integrated into it, rendering the older awk-mode.el obsolete. This new awk-mode indents code correctly (without needing to terminate each line with a semicolon). It's font locking (i.e. syntax highlighting) has been improved. You will need a young (or middle-aged) version of (X)Emacs to use the new AWK Mode, namely GNU Emacs 20.1 (or newer) or XEmacs 21.4 (or newer). CC-Mode-5.30 is available as a tarball from http://cc-mode.sourceforge.net/release.php. _PLEASE_ read the file README on how to get the new awk-mode properly installed in place of the old awk-mode.el. CC Mode 5-30 is a pretty snazzy way to edit C, C++, Java, as well. :-) Bug reports, feature requests, and so on, are best sent to the CC Mode mailing list at [EMAIL PROTECTED], but things said on this newsgroup will get noticed too. Enjoy! -- Alan Mackenzie (Munich, Germany) Email: [EMAIL PROTECTED]; to decode, wherever there is a repeated letter (like aa), remove half of them (leaving, say, a). This may interest some of you. Alan posted it in comp.lang.awk Peter S Tillier Who needs perl when you can write dc, sokoban, arkanoid and an unlambda interpreter in sed? -- 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: stderr outputs veerrrryyy slowly
Christopher Faylor wrote: This crops up on the cygwin list from time to time. IIRC, if you use 'setbuf(f, NULL)' in newlib (as is the case for stderr), it causes newlib to flush on every character. I submitted a patch to fix this behavior many years ago but it was rejected. I think the rationale was basically a This isn't broken. We're allowed to do this but I don't really recall exactly why the patch was rejected. Hmmm. Well, I managed to come up with this minimal testcase: #include stdio.h int main(int argc, char **argv) { char *msg = This is a test! , *ptr; int i; for(i = 0; i 100; i++) { for(ptr = msg; *ptr; ptr++) { fputc(*ptr, stderr); } } } Running the above with CYGWIN=tty real0m15.806s user0m0.030s sys 0m0.010s Without CYGWIN=tty real0m0.078s user0m0.030s sys 0m0.020s Should it really take almost 16 seconds to print 1600 characters to stderr? Furthermore, if you change 'stderr' to 'stdout' above, the problem no longer happens, regardless of the setting of tty in $CYGWIN. So it's specific to stderr. Can anyone make heads (or tails) of this now? Brian -- 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: cygrunsrv won't start apache
no, /var/log/CYGWIN_apache is empty --- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Sat, 21 Jun 2003, Ling F. Zhang wrote: I try to use the apache binary on cygwin, to install it as a service I run: cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u root it worked last night...I woke up today, remove/reinstall the service few times, and now it wouldn't start...given me the message: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. any hints? Ling, Is there anything in the Windows event log or in /var/log/httpd.log? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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 and the rest of the Windows
Let me re-cap what you just said: create a perl.bat with line: c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 which will work as my perl interpreter... and associate my .pl files with this perl.bat if I want to use shell script as well, then I suppose I would need to associate my .sh files with c:\cygwin\bin\bash --login...is this correct??? so when I do my programming, I should keep in mind that I only have the cygwin filesystem to access right? so if I want to point to a file /home/admin/foo, I would use /home/admin/foo, and not c:\cygwin\home\admin\foo. Is this correct??? Ling, Well, technically, you'll have to do a bit more than that. First off, the #![1] line will not be recognized by Windows. Thus, you'll need to associate the .pl extension *in Windows Explorer* with whatever perl interpreter you have (I'd guess C:\cygwin\bin\perl.exe[2]). Secondly, you might be missing the login environment, so you might wish to create a perl.bat file that does a c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 and use that instead (beware of directory changes). Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c... In the end, it might be less trouble to just run Cygwin apache. Igor [1] You missed the ! in your examples... ;-) [2] /usr/bin is a mount, and thus is not visible to non-Cygwin programs. C:\cygwin\usr\bin should be empty. On Sat, 21 Jun 2003, Ling F. Zhang wrote: okay! the question is this then: say I write a perl script... should the first line be #/usr/bin/perl or #C:\cygwin\usr\bin\perl ? thank you --- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Sat, 21 Jun 2003, Ling F. Zhang wrote: I successfully ran both the cygwin apache (1.3x) and windows native one (2.x). So I need to chose one to run (as they wouldn't share port 80)...sine I usually do my cgi in perl and shell-script, cygwin is the clear choice...but I do miss such feature as WebDAV in the version 2 (I didn't feel like recompiling apache on cygwin just to mess things up). So, here's the question, is it possible for windows to use cygwin developement tools? as in, can I use the cygwin perl interpretor to interpret my perl script if the apache is the windows native one? Ling, Yes, it's theoretically possible, as long as the Cygwin /bin directory is in the path. There may be some peculiarities specific to your system that you'd have to solve (in particular, all the scripts will get Win32 paths as parameters, rather than Cygwin POSIX paths), but there's nothing major that prevents you from doing this. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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 and the rest of the Windows
Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c... what is -c? if I use this option, should it be: #!/usr/bin/perl? or #!c:\cygwin\usr\bin\perl? my guess is the former, since we are already interpreting the file with bash... In the end, it might be less trouble to just run Cygwin apache. yeah, but I got other issue with it... __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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 and the rest of the Windows
Hi again: you might be missing the login environment, so you might wish to create a perl.bat file that does a c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 and use that instead (beware of directory changes). when I run this in cygwin: bash --login perl, I get the error: /usr/bin/perl: No such file or directory simiarly if I run the perl.bat as your suggested, I get similar error claiming that /usr/bin/perl is not found...okay, I am confused here... Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c so I did...and (in DOS) I try this: \cygwin\bin\bash -c printenv.pl /usr/bin/perl: line 1: printenv.pl: command not found (my first line is the usual #!/usr/bin/perl) you told me to be aware of path changes in the two system...now I am confused...which one should I use? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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: Problems with Nano
Gareth, this sounds like you dont have the right CYGWIN environment variable set. Unless CYGWIN environment variable includes tty - ctrl-c and ctrl-x will not function in nano, and a few other programs. What environment variable would be refering to? I ran env and didn't see anything having to do with tty or nano. But, maybe it is there since Ctrl+X works to exit. Doug Jenkinson __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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: stderr outputs veerrrryyy slowly
On Sat, Jun 21, 2003 at 11:58:59PM -0700, Brian Dessent wrote: Christopher Faylor wrote: This crops up on the cygwin list from time to time. IIRC, if you use 'setbuf(f, NULL)' in newlib (as is the case for stderr), it causes newlib to flush on every character. I submitted a patch to fix this behavior many years ago but it was rejected. I think the rationale was basically a This isn't broken. We're allowed to do this but I don't really recall exactly why the patch was rejected. Hmmm. Well, I managed to come up with this minimal testcase: There is no need for a test case. I already mentioned that this is a known issue and pinpointed where the problem lies. #include stdio.h int main(int argc, char **argv) { char *msg = This is a test! , *ptr; int i; for(i = 0; i 100; i++) { for(ptr = msg; *ptr; ptr++) { fputc(*ptr, stderr); } } } Running the above with CYGWIN=tty real0m15.806s user0m0.030s sys 0m0.010s Without CYGWIN=tty real0m0.078s user0m0.030s sys 0m0.020s Should it really take almost 16 seconds to print 1600 characters to stderr? Furthermore, if you change 'stderr' to 'stdout' above, the problem no longer happens, regardless of the setting of tty in $CYGWIN. So it's specific to stderr. Can anyone make heads (or tails) of this now? Read my original message. stderr does not buffer its output. stdout does. cgf -- Please use the resources at cygwin.com rather than sending personal email. Special for spam email harvesters: send email to [EMAIL PROTECTED] and be permanently blocked from mailing lists at sources.redhat.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 and the rest of the Windows
On Sun, 22 Jun 2003, Ling F. Zhang wrote: Hi again: you might be missing the login environment, so you might wish to create a perl.bat file that does a c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 and use that instead (beware of directory changes). when I run this in cygwin: bash --login perl, I get the error: /usr/bin/perl: No such file or directory simiarly if I run the perl.bat as your suggested, I get similar error claiming that /usr/bin/perl is not found...okay, I am confused here... Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c so I did...and (in DOS) I try this: \cygwin\bin\bash -c printenv.pl /usr/bin/perl: line 1: printenv.pl: command not found (my first line is the usual #!/usr/bin/perl) you told me to be aware of path changes in the two system...now I am confused...which one should I use? Try \cygwin\bin\bash -c ./printenv.pl. More later. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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/
Bourne Shell Programming on Windows
Hi, I was wondering if I can do Bourne shell programming on Windows 2000 Pro using Cygwin. If not, is there any other program that will allow me to do so. Thanx TAM -- 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/
Questions about Cygwin's jar command
A few updates to Cygwin ago (both at work and home), I noticed that there is now a jar executable in /usr/bin. I see from the -V option that it is something called fastjar. When I use it for viewing jar contents, it works just as well as the jar from my Java distribution. However, when I use it to extract files from a jar, it often fails after extracting the first couple of files (I can't remember the error messages right now). I end up having to manually specify the path to the jar in my Java distribution, or use Winzip. Short of fixing these problems in the Cygwin jar, what's the correct way to remove it? It doesn't appear to be in a separate Cygwin package, so I guess I can't use Cygwin setup to uninstall it. I tried removing /usr/bin/jar, but rm says No such file or directory. If it matters, I'm on Cygwin 1.3.14 at home, and a newer release at work. I see this problem in both places. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP; SCWCD -- 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: Bourne Shell Programming on Windows
TAM, Cygwin includes ash, BASH and pdksh (as well as zsh and tcsh), so the answer is pretty much yes, though with BASH you might want to investigate its Bourne shell compatibility mode. I'm unfamiliar with any details of pdksh's Bourne compatibility, but it should be pretty close or perhaps have a Bourne shell compatibility mode as BASH does. Randall Schulz At 09:13 2003-06-22, TAM wrote: Hi, I was wondering if I can do Bourne shell programming on Windows 2000 Pro using Cygwin. If not, is there any other program that will allow me to do so. Thanx TAM -- 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: Problems with Nano
Doug Jenkinson wrote: Gareth, this sounds like you dont have the right CYGWIN environment variable set. Unless CYGWIN environment variable includes tty - ctrl-c and ctrl-x will not function in nano, and a few other programs. What environment variable would be refering to? I ran env and didn't see anything having to do with tty or nano. But, maybe it is there since Ctrl+X works to exit. He means the CYGWIN environment variable. See: http://cygwin.com/cygwin-ug-net/using-cygwinenv.html -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: starting cron
hello: cron diagnostic did not find any problems. but cron still does not work in my machine. I am attaching the cron diagnostic files as suggested. Thanx for the trouble In that case, please consider sending the recommended diagnostic files to the mailing list [EMAIL PROTECTED] Those files may help readers of the list to diagnose the problem that you are having. If a solution is found, then that solution might be added to the cron_diagnose.sh script to help diagnose that problem in the future. Please include the diagnostic files as *attachments*, not as inline text. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 6:07 PM To: Harig, Mark Subject: RE: starting cron I ran the script . It did not find any problem. But it could not start the service cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Please run the attached script. It will attempt to diagnose your problem with cron. It will not modify any files on your computer. You might need to run the script several times. Each time that it finds a problem, it stops and displays a descriptive message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: starting cron I am unable to start the cron. I followed the instruction in /usr/doc/Cygwin/README_cron and used cygrunsrv to start the service But the services in my windows it was unable to start the cron. Any suggextions? Thanx -- 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 Win95/NT Configuration Diagnostics Current System Time: Sun Jun 22 13:26:02 2003 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: c:\emacs-21.2\bin d:\cygwin\home\kumar\bin d:\cygwin\usr\local\scripts d:\cygwin\usr\local\bin d:\cygwin\usr\local\bin d:\cygwin\bin d:\cygwin\bin d cygwin\bin d:\cygwin\usr\sbin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\PROGRAM FILES\THINKPAD\UTILITIES c:\matlab6p5\bin\win32 d:\cygwin\usr\X11R6\bin d:\cygwin\bin\id.exe output (nontsec) UID: 400(ckumar) GID: 401(mkpasswd) 401(mkpasswd) d:\cygwin\bin\id.exe output (ntsec) UID: 400(ckumar) GID: 401(mkpasswd) 544(Administrators) 545(Users) 401(mkpasswd) SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `d:\cygwin\home\kumar' MAKE_MODE = `unix' PWD = `/home/kumar' USER = `ckumar' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\ckumar\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `PC-CKUMAR' COMSPEC = `C:\WINNT\system32\cmd.exe' CVSROOT = `/usr/local/cvsroot' HOMEDRIVE = `C:' HOMEPATH = `\' LOGONSERVER = `\\DC2SJGLOBAL' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/local/scripts' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0806' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\ckumar\LOCALS~1\Temp' TERM = `cygwin' TEXMF = `{/usr/share/lilypond/1.6.8,/usr/share/texmf}' TMP = `c:\DOCUME~1\ckumar\LOCALS~1\Temp' USERDNSDOMAIN = `global.cadence.com' USERDOMAIN = `GLOBAL' USERNAME = `ckumar' USERPROFILE = `C:\Documents and Settings\ckumar' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `d:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `d:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `d:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd NTFS6002Mb
RE: Bourne Shell Programming on Windows
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randall R Schulz TAM, Cygwin includes ash, BASH and pdksh (as well as zsh and tcsh), so the answer is pretty much yes, though with BASH you might want to investigate its Bourne shell compatibility mode. I'm unfamiliar with any details of pdksh's Bourne compatibility, but it should be pretty close or perhaps have a Bourne shell compatibility mode as BASH does. === Isn't 'ash' (/bin/sh) bourne shell compatible? I thought the intent in ashwas to strip the shell down to basics, but still run original bourne shell scripts. I'm not sure, but I think ash might provide the closest bourne shell compatibility, since I don't think it provides all the ksh enhancements. Assuming one only wanted the basic bourne shell, wouldn't ash (/bin/sh) be the best choice (smallest .exe, least overhead, and fastest load time). I believe it is the shell used by default for /bin/sh. If you need korn shell extensions, /bin/sh might not have what you need. -linda -- 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/
is this known bug still known to be around? (re: rsync)
Often, after transfering a large number of files, rsync will hang when done (src + dst on same machine). I remember this being mentioned ages ago as a problem. It seems to still be around. Same as it ever was -- all files seem to be transferred, it just doesn't want to exit when done. (rsync: no no, I know my purpose in this incarnation is complete, but I don't wanna go; no program really knows what lies beyond that final exit...) -linda -- 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: Questions about Cygwin's jar command
David M. Karr wrote: A few updates to Cygwin ago (both at work and home), I noticed that there is now a jar executable in /usr/bin. I see from the -V option that it is something called fastjar. When I use it for viewing jar contents, it works just as well as the jar from my Java distribution. However, when I use it to extract files from a jar, it often fails after extracting the first couple of files (I can't remember the error messages right now). I end up having to manually specify the path to the jar in my Java distribution, or use Winzip. Short of fixing these problems in the Cygwin jar, what's the correct way to remove it? rm /usr/bin/jar.exe It doesn't appear to be in a separate Cygwin package, so I guess I can't use Cygwin setup to uninstall it. Right, unless you don't want gcc, which is the package it comes with. I tried removing /usr/bin/jar, but rm says No such file or directory. See above. If it matters, I'm on Cygwin 1.3.14 at home, and a newer release at work. I see this problem in both places. Not AFAICS. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/
unexpected behavior: setup v2.340.2.5
When went to the software list (mirror kernel.org), I saw several pieces of software that I was a rev or so behind on. Out of curiosity, I thought I might also see what the newest beta's were. Problem is that it deselected all of the regular versions that needed updating. I would have expected to see the list of software I wasn't current on + any beta versions of the product -- since if I wanna think I'm running 'cutting (occasionally bleeding) edge', I'd like to think that selecting beta has the latest SW installed for everything -- including test betas. I can see an interpretation that selecting 'beta' would *only* show beta' products, but I would think upgrading to 'beta' but not having the current released products would be an untested/unreliable state. I.e. it seems it would be undesirable to install beta's without also having the rest of one's distro being current. ?? -linda -- 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: unexpected behavior: setup v2.340.2.5
linda w (cyg) wrote: When went to the software list (mirror kernel.org), I saw several pieces of software that I was a rev or so behind on. Out of curiosity, I thought I might also see what the newest beta's were. Problem is that it deselected all of the regular versions that needed updating. I would have expected to see the list of software I wasn't current on + any beta versions of the product -- since if I wanna think I'm running 'cutting (occasionally bleeding) edge', I'd like to think that selecting beta has the latest SW installed for everything -- including test betas. I can see an interpretation that selecting 'beta' would *only* show beta' products, but I would think upgrading to 'beta' but not having the current released products would be an untested/unreliable state. I.e. it seems it would be undesirable to install beta's without also having the rest of one's distro being current. ?? I don't know what you mean by beta. If you mean packages installed when you press the Exp radio button in setup, then that's how it works. You pick Exp to install any experimental versions of software that you already have installed or decide you want to install. You select Curr for updating everything else. They're mutually exclusive. Practically, if you want to update your system to all the latest plus the experimental versions, update to the Curr list and then rerun setup and update to the Exp list. This will get you what you want, if I'm interpreting your goals properly. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: starting cron
On Sun, Jun 22, 2003 at 05:49:47PM +, [EMAIL PROTECTED] wrote: hello: cron diagnostic did not find any problems. but cron still does not work in my machine. I am attaching the cron diagnostic files as suggested. d:\cygwin\bin\id.exe output (nontsec) UID: 400(ckumar) GID: 401(mkpasswd) 401(mkpasswd) It looks like ckumar doesn't appear in /etc/passwd. Run mkpasswd -l /etc/passwd (or -ld if a domain user) then run id to verify. Pierre P.S.: perhaps testing for uid=400 and gid=401 could be added to the cron diagnostic. -- 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/
I am contacting you secretly.
With utmost respect and sincerity I appeal to disturb you a bit at this particular moment. I will tell you more about myself once I receive your reply. I am currently in Praia, Republic of Cape Verde, a little country or islands in the North Atlantic Ocean and I am contacting you secretly. Because of my past with my friend and boss Gen. Jonas Savimbi of UNITA in Angola, I am here at the moment. I am still with his cellular satellite phone and you can reach me once we open discussion. I contacted you because we can do a clean deal that I have started already and now it is at the point of rounding it up. If you can be confidential, I will round this deal up with you. I have already secured the deal and will need you just for one final step so that we round up and get the payment. Please contact me without exposing this to anybody as soon as you can if you can work with me. Note that the deal is not risky but it is confidential, as I do not yet want exposure at all. This payment is already secured and just waiting for claiming/collection. I expect your urgent reply so that I will give you more details. Yours truly, Thambo Michel -- 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 and the rest of the Windows
Ling, I'm sorry, we all make mistakes. The one I made was omitting the -c flag to bash. Another was missing the quotes. So, your perl.bat should contain c:\cygwin\bin\bash --login -c /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 This was enough to run scripts from the command line for me (make sure you specify the path explicitly, as the --login flag will execute /etc/profile, which will change to your home directory). You may also need to call cygpath.exe, since you'll be getting the Win32 pathname of the script, I think... For the shell files, yes, I think c:\cygwin\bin\bash --login should be enough (but again, check that). You will be able to access any directory on your C: drive using the /cygdrive/c/ syntax. Also, if you use Cygwin perl, you should be using POSIX paths internally. However, you may receive Win32 paths from Apache, in which case you'll need to use cygpath to convert them to POSIX. Igor On Sun, 22 Jun 2003, Ling F. Zhang wrote: Let me re-cap what you just said: create a perl.bat with line: c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 which will work as my perl interpreter... and associate my .pl files with this perl.bat if I want to use shell script as well, then I suppose I would need to associate my .sh files with c:\cygwin\bin\bash --login...is this correct??? so when I do my programming, I should keep in mind that I only have the cygwin filesystem to access right? so if I want to point to a file /home/admin/foo, I would use /home/admin/foo, and not c:\cygwin\home\admin\foo. Is this correct??? Ling, Well, technically, you'll have to do a bit more than that. First off, the #![1] line will not be recognized by Windows. Thus, you'll need to associate the .pl extension *in Windows Explorer* with whatever perl interpreter you have (I'd guess C:\cygwin\bin\perl.exe[2]). Secondly, you might be missing the login environment, so you might wish to create a perl.bat file that does a c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 and use that instead (beware of directory changes). Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c... In the end, it might be less trouble to just run Cygwin apache. Igor [1] You missed the ! in your examples... ;-) [2] /usr/bin is a mount, and thus is not visible to non-Cygwin programs. C:\cygwin\usr\bin should be empty. On Sat, 21 Jun 2003, Ling F. Zhang wrote: okay! the question is this then: say I write a perl script... should the first line be #/usr/bin/perl or #C:\cygwin\usr\bin\perl ? thank you --- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Sat, 21 Jun 2003, Ling F. Zhang wrote: I successfully ran both the cygwin apache (1.3x) and windows native one (2.x). So I need to chose one to run (as they wouldn't share port 80)...sine I usually do my cgi in perl and shell-script, cygwin is the clear choice...but I do miss such feature as WebDAV in the version 2 (I didn't feel like recompiling apache on cygwin just to mess things up). So, here's the question, is it possible for windows to use cygwin developement tools? as in, can I use the cygwin perl interpretor to interpret my perl script if the apache is the windows native one? Ling, Yes, it's theoretically possible, as long as the Cygwin /bin directory is in the path. There may be some peculiarities specific to your system that you'd have to solve (in particular, all the scripts will get Win32 paths as parameters, rather than Cygwin POSIX paths), but there's nothing major that prevents you from doing this. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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/
I am contacting you secretly.
With utmost respect and sincerity I appeal to disturb you a bit at this particular moment. I will tell you more about myself once I receive your reply. I am currently in Praia, Republic of Cape Verde, a little country or islands in the North Atlantic Ocean and I am contacting you secretly. Because of my past with my friend and boss Gen. Jonas Savimbi of UNITA in Angola, I am here at the moment. I am still with his cellular satellite phone and you can reach me once we open discussion. I contacted you because we can do a clean deal that I have started already and now it is at the point of rounding it up. If you can be confidential, I will round this deal up with you. I have already secured the deal and will need you just for one final step so that we round up and get the payment. Please contact me without exposing this to anybody as soon as you can if you can work with me. Note that the deal is not risky but it is confidential, as I do not yet want exposure at all. This payment is already secured and just waiting for claiming/collection. I expect your urgent reply so that I will give you more details. Yours truly, Thambo Michel -- 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 and the rest of the Windows
Ling, Ok, the first is my fault, as indicated in another message. I forgot the -c flag to bash. man bash for more details. As for the second, two hints: 1) bash --login changes to your home directory, and 2) . is not in the PATH by default. Igor On Sun, 22 Jun 2003, Ling F. Zhang wrote: Hi again: you might be missing the login environment, so you might wish to create a perl.bat file that does a c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 and use that instead (beware of directory changes). when I run this in cygwin: bash --login perl, I get the error: /usr/bin/perl: No such file or directory simiarly if I run the perl.bat as your suggested, I get similar error claiming that /usr/bin/perl is not found...okay, I am confused here... Alternatively, if you want to use the #! line, you could associate .pl files with c:\cygwin\bin\bash -c so I did...and (in DOS) I try this: \cygwin\bin\bash -c printenv.pl /usr/bin/perl: line 1: printenv.pl: command not found (my first line is the usual #!/usr/bin/perl) you told me to be aware of path changes in the two system...now I am confused...which one should I use? -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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: stderr outputs veerrrryyy slowly
Christopher Faylor wrote: Hmmm. Well, I managed to come up with this minimal testcase: There is no need for a test case. I already mentioned that this is a known issue and pinpointed where the problem lies. Fair enough. Can anyone make heads (or tails) of this now? Read my original message. stderr does not buffer its output. stdout does. Okay, but I'm afraid that doesn't quite compute to me, maybe you could clarify: - If it's flushing on every character, then why is the output speed acceptable when using fputs/fprintf or anything except fputc? i.e. why do I get the 300-baud-modem emulation only in a few cases? - Why does it take so long (10ms) to flush the stream? - Why does it only happen with 'tty' set? Sorry if I'm being dense. I was also going to ask what the heck newlib was but I figured that out on my own. :-) Thanks, Brian -- 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: stderr outputs veerrrryyy slowly
On Sun, Jun 22, 2003 at 12:53:43PM -0700, Brian Dessent wrote: Christopher Faylor wrote: Can anyone make heads (or tails) of this now? Read my original message. stderr does not buffer its output. stdout does. Okay, but I'm afraid that doesn't quite compute to me, maybe you could clarify: - If it's flushing on every character, then why is the output speed acceptable when using fputs/fprintf or anything except fputc? i.e. why do I get the 300-baud-modem emulation only in a few cases? Don't know. I haven't investigated the problem in any great depth for some time. I suppose that in some cases newlib sends a string of characters to be output and in some cases it sends a character at a time, depending on the usage. Sorry if I'm being dense. I was also going to ask what the heck newlib was but I figured that out on my own. :-) A google search is extremely instructive on newlib, actually. cgf -- Please use the resources at cygwin.com rather than sending personal email. Special for spam email harvesters: send email to [EMAIL PROTECTED] and be permanently blocked from mailing lists at sources.redhat.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 and the rest of the Windows
okay, a summary of what I am doing: case 1: c:\cygwin\bin\perl.bat reads: @echo off c:\cygwin\bin\bash --login -c /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 associating the .pl file with c:\cygwin\bin\perl.bat %1 and the perl file begins with: #!/usr/bin/perl one command line, I ran: c:\program files\apache group\apache2\cgi-bin\printenv.pl and get the error: Files\Apache: line 1: C:Program: command not found OKAY, this looks like caused by the different b/t winFS and POSIXsince Igor said he was successful in this mode, can you point out what's the problem? case 2: associating .pl file with c:\cygwin\bin\bash -c %1 and the file begins with #!/usr/bin/perl I get the same error as case 1... case 3: the only way I can now run the .pl file from command line is: c:\path with space\\cygwin\bin\bash -c printenv.pl but what I really want is: to run .pl file like normal in windows command prompt: i.e. c:\path with space\printenv.pl WITHOUT using a native windows perl interpretor (like ActivePerl) if this is not possible, at least I should be able to run it as a cgi-script... thanx for all your help so far igor...I am just a little slow on this right now... --Matthew Ling F. Zhang __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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: cygrunsrv won't start apache
Hi: /var/logs/cygwin_apache.log is empty and the event log has nothing either... what is interesting is that search the web for this problem yield that some peole has the problem with sshd due a access privilege to the \cygwin, \cygwin\var, \cygwin\var\log...but my sshd is runnin' just fine...so that kind of run out the privilege problem because I use the same user SYSTEM:Administrators for both! any more hints? thanx --- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Sat, 21 Jun 2003, Ling F. Zhang wrote: I try to use the apache binary on cygwin, to install it as a service I run: cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u root it worked last night...I woke up today, remove/reinstall the service few times, and now it wouldn't start...given me the message: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. any hints? Ling, Is there anything in the Windows event log or in /var/log/httpd.log? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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: cygrunsrv won't start apache
I finally figured out the problem... I ran the service a user1...so it created a file /var/log/httpd.log under user1... I chaged the user (from root to SYSTEM) and the new guy can't open the file... thanx --- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Sat, 21 Jun 2003, Ling F. Zhang wrote: I try to use the apache binary on cygwin, to install it as a service I run: cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u root it worked last night...I woke up today, remove/reinstall the service few times, and now it wouldn't start...given me the message: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. any hints? Ling, Is there anything in the Windows event log or in /var/log/httpd.log? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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 and the rest of the Windows
Matthew (Ling?), In your case 1, it looks like you ran that command from bash. It's pretty obvious why it didn't work - bash needs POSIX paths. You had unquoted spaces, which bash interpreted as argument separators, and it also interpreted backslashes as escapes. You should have run that command from a cmd prompt. I also warned you that the name of the script will be passed in Win32 form, and you'd need to use cygpath to convert it to POSIX. The file that worked for me (I actually created one that works this time) was: @echo off c:\cygwin\bin\bash.exe --login -c /usr/bin/perl `/bin/cygpath -u '%1'` You can add similar conversions for %2..%9, but I don't think they're necessary in your particular case (i.e., a file handler for the .pl extension). You may not need the --login - try running without it, that will keep you in the same directory. Oh, and the '#!' line would be ignored in this case, and the dispatch will be done by Windows Explorer based solely on the .pl extension. As for case 2, you might have to play similar games, but in the association mechanism. Something like c:\cygwin\bin\bash.exe -c `cygpath -u '%s'` (I don't have the exact incantation, you may need to read up on the Windows Explorer mechanism for this). Case 3 is actually a subcase of 1 - simply associate the .pl file with perl.bat, and you should be able to run it (as long as perl.bat is correct). You might wish to keep the @echo off out of the .bat file while you're debugging it, to know exactly what parameters bash gets. Igor On Sun, 22 Jun 2003, Ling F. Zhang wrote: okay, a summary of what I am doing: case 1: c:\cygwin\bin\perl.bat reads: @echo off c:\cygwin\bin\bash --login -c /usr/bin/perl %1 %2 %3 %4 %5 %6 %7 %8 %9 associating the .pl file with c:\cygwin\bin\perl.bat %1 and the perl file begins with: #!/usr/bin/perl one command line, I ran: c:\program files\apache group\apache2\cgi-bin\printenv.pl and get the error: Files\Apache: line 1: C:Program: command not found OKAY, this looks like caused by the different b/t winFS and POSIXsince Igor said he was successful in this mode, can you point out what's the problem? case 2: associating .pl file with c:\cygwin\bin\bash -c %1 and the file begins with #!/usr/bin/perl I get the same error as case 1... case 3: the only way I can now run the .pl file from command line is: c:\path with space\\cygwin\bin\bash -c printenv.pl but what I really want is: to run .pl file like normal in windows command prompt: i.e. c:\path with space\printenv.pl WITHOUT using a native windows perl interpretor (like ActivePerl) if this is not possible, at least I should be able to run it as a cgi-script... thanx for all your help so far igor...I am just a little slow on this right now... --Matthew Ling F. Zhang __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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/ -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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/
ProFTPd usable on WinXP-HE, questionable to me
cygcheck.2003.Jun.22 Description: Binary data -- 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: win32 dia and HOME=/usr/bin/%USERPROFILE% fix
Brian Koehmstedt [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I had the problem of bash starting up with the home directory being /usr/bin/%USERPROFILE%. I searched the mailing list and came up with a January thread on the issue, which informed me that the problem was due to the win32 dia installer creating a Windows environment HOME variable that superceded bash's normal HOME. OK, glad you found a solution. I have no idea what dia is (sometimes I wonder a bit if people posting to Cygwin have any idea how much software is available for _any_ OS (e.g., GNU/Linux), let alone MS Windos, and how unlikely it is that their interests and pursuits coincide with those of other regular readers...), but if it sets a HOME variable in the Windows environment, then that would indeed be where Cygwin starts the user, instead of under Cygwin's (POSIX-style hierarchy) /home{USER} dir. Come to think of it, I do know what dia is, it is an Open Source drawing and diagramming tool. But I have to point out for posteriors ... oops, I mean for *posterity*, that this isn't a BUG in Cygwin, this is a FEATURE. I personally *want* Cygwin to honor my setting of $HOME (%HOME%) because I keep my user dir files outside the Cygwin fs hierarchy (makes my life easier if I decide a total wipe-and-reinstall of my Cygwin installation is necessary). Also, I may want some other, non-Cygwin software to be able to use a HOME dir that Cygwin knows about too. Edit the cygwin.bat file and put set HOME= somewhere in it. This unsets the Windows HOME environment variable and Cygwin/bash starts up with the correct HOME environment variable. To wrap up, I have to challenge this erronious understanding. Bash's correct HOME directory is what you TELL it is HOME unless you don't really mean it. Unlike some cough Microsoft cough software systems, Cygwin's BASH (or any BASH) doesn't assume it knows better than the user. Soren A. -- 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/