Re: cywin!
Well, a quick search of the cygwin mailing list about Java would have unfortunately told you that Java is not cygwin-aware. I run javac from cmd.exe for this reason. You might try wrapping your Java program in a script like: CMD.EXE /c javaprog.exe Hope it helps. --- pramod m. [EMAIL PROTECTED] wrote: if i write a simple java program that uses a BufferedReader reader object wrapped from System.in and then try to read a line from user and then echo it back, cygwin for some reason already has stuff on the stream and so without waiting for the user to type something in the program fetches that and prints it out (it is usually) just a newline. why does this happen! i know it's not the program because it works in djgpp and other platforms. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to create a windows link in script?
I would like to be able to create a .lnk file to a batch file (and ideally associate an icon with it) from a bash script on a Windows 2000 machine. I've written a program that does just this. It's a fully scriptable and can set icons. I'm hoping to get it included in cygwin sometime, but I'm waiting until the new setup.exe comes out to bother developers with it. In the meantime, you can get it at: http://ns1.iocc.com/~joshua/mklink-0.1.tar.bz2 The archive is around 10K, source, (stripped) binary, and some examples included. I'd also love some feedback on possible improvements--or from anyone on Win9x since I've got a setup like Randall's (Win2k, NTFS, etc.) The MS docs say it the calls should work on any windows, but you know... I've not had any weird permission problems, though figuring out whether folders on the Desktop exist only for the current user or for all users can be tricky. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin!
DISCLAIMER: I am not a professional java developer There is exactly no advantage to using CMD.exe to initiate a Java SDK tool, or the Java interpreter of JRE. I was under the impression that interacting with java's BufferedReader, etc. from within a cygwin bash shell was a Bad Idea because of different tty handling or something. I casually read the thread a while back, and I thought I'd run into the problem before I switched to java on linux. I have no idea what a Java .exe file might be Me either. :) That was my fault, it was a quick suggestion to someone who emailed me off-list with a cygwin java question. (Obviously not a bright idea.) I should have said something like: cmd /c java javaprog.java but I don't even know if that would work since I've only got a JDK on a linux machine right now. --- pramod m. [EMAIL PROTECTED] wrote: if i write a simple java program that uses a BufferedReader reader object wrapped from System.in and then try to read a line from user and then echo it back, cygwin for some reason already has stuff on the stream and so without waiting for the user to type something in the program fetches that and prints it out (it is usually) just a newline. why does this happen! i know it's not the program because it works in djgpp and other platforms. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to create a windows link in script?
The Windows term for these things is 'shortcut'. Perhaps you want to call your tool mkshortcut? Yeah, it's longer, but it's less ambiguous than mklink. There's already enough confusion between linking executables from object modules and hard and symbolic links in the file system. Also, since the files created are .lnk files, mklink doesn't immediately make one see the connection. Perhaps mklnk would be more accurate. (And I haven't even had a chance to _look_ at the tool itself. Well, they're called shortcuts...or (in the MS documentation I read) OLE Links. Oops. mkshortcut is a good idea, though, much more to the point of the app. The name came from a function call and .c file in cygwin's setup.exe source. In the archive the executable is actually prog.exe--easier to TAB-complete--because I wasn't sure of the name myself. I guess you noticed it was version 0.1 anyway... __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin Digest 15 Feb 2002 08:06:45 -0000 Issue 1759
Ralf, Is this presentation public domain? So it could be used in classroom networking classes at a uni to help explain socket programming? I think it could be helpful to others, as well. I think there are a few professors who read the list. I'm sorry, I doesn't know that. You can find a viewer under http://office.microsoft.com/germany/downloads/2000/Ppview97.aspx This presentation is a journey of the linux tcp and unix domain socket implementation and show very nice how the implementation works. An english translation is appended :-) Perhaps we can use it to create soemthing similar for cygwin. I think there are only changes nesessary in the functions names and functions levels, but the basics are the same. Please be patiented with the presentation, I think the first pages will bore you, so skip to chapter 3, there are the interesting thinks. I think this could be a good starting point for discussion. Especially for guys, who are not very familiar with unix sockets (like I was) Perhaps it would be good to give some hints, in the faq I haven't nothin about this topic ? Ralf __ Do You Yahoo!? Got something to say? Say it better with Yahoo! Video Mail http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: $HOME Directory Relocation
COMMON_DESKTOP=`regtool get '\HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Desktop'` ALLHOME=`cygpath -u $COMMON_DESKTOP/../..` Don't know if you care, but the latest version of cygpath has -D and -A options that will output the All Users' Desktop directory. Not sure about the ../.. though. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: RTFM'ing: readily accessible user documentation?
OK, I learned a few valuable lessons in the couple of days last month it took me to clue into install-info (dir is a file?), and maybe this is more of a pons asinorum than an Instructions for opening are on the inside situation. That being said, I really would have appreciated a hint about where the documentation lives and how to get at it. Thanks, John I don't think this is really a documentation issue. The real problem in this case is that some package is messed up (some package is installing its own 'dir' file, overwriting the old one, instead of installing the info files in a script). You can just look at the package lists in /etc/setup/ and figure out that the offending package seems to be... $ grep info/dir * tetex-beta.lst:usr/info/dir tetex-beta! This package needs to be fixed to do the right thing. And, I believe, a new tetex package is in the works. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygpath patch
--- Charles Wilson [EMAIL PROTECTED] wrote: Joshua Franklin wrote: --- Charles Wilson [EMAIL PROTECTED] wrote: Sounds like a great idea to me. Note however, than symbolic links are implemented using windows shortcuts, so: ln -s foo.html `cygpatch -P`/foo_help.html will do what you want. Huh? That was my example. Except with the desktop directory, and I used $(...) instead of `...` Fine fine fine. The point of my example was really unrelated to the cygpath command itself. You were talking about grabbing code from setup.exe to assist in create a shortcut, or something -- I dunno exactly 'cause I've deleted the message. My point was merely that you DON'T need to worry about that. Just use the 'ln -s' command -- because symbolic links == windows shortcuts. --Chuck Ah. But what if you want to link to: rxvt.exe -rv -fn FixedSys -e /bin/bash --login -i --or-- command.com /E:4096 /c bash.exe --login -i from the working directory c:\cygwin\bin --or-- http://www.cygwin.com/FAQ/ My point is, there are a lot more possible options in W32 shortcuts that seem to be supported by the setup.exe mklink2.c COM interface. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
cygpath patch
I've put together a prospective patch to cygpath that adds 4 new options: -D|--desktop print `Desktop' directory -E|--alldesktop print (all users') `Desktop' directory -P|--smprograms print Start Menu `Programs' directory -Q|--allsmprogramsprint (all users') Start Menu `Programs' directory I'm not at all sure on the names. -D and -P make sense to me, but the other two are just the next letter alphabetically. For example, the -E option on my machine outputs: $ ./cygpath.exe -E /c/Documents and Settings/All Users/Desktop This patch would make possible things like: $ ln -s /usr/doc/mutt-1.2.5i/html/manual.html $(./cygpath.exe -D)/mutt-manual.html from scripts without worrying about whether the Desktop directory is the same on the machine you're writing it for. My only question is whether I would need to change the output of -v or if that's done internally: $ ./cygpath.exe -v Cygwin path conversion version 1.1 Copyright 1998,1999,2000,2001 Red Hat, Inc. Well, and I guess I am also asking whether this is a stupid idea and I should use this only on my own machine, or else to send in the patch. :) My eventual goal was to make it possible to link FAQs (local or online), manuals, or executables (rxvt) to the Cygwin Start Menu folder (if it exists) from postinstall scripts. But it looks like ln can only link files with no options allowed. I see in the setup.exe code that there is a mklink2.c that accomplishes what I'd been wanting. Is there any cygwin util that utilizes this code or should I roll my own? Thanks. Joshua Daniel Franklin __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
Proposed Mailing List Page Reorg (was: RE: No stderr output)
A while ago I was helping students that were new to bash and UNIX and I wrote a little guide in HTML. Late I put together Cygwin-Lite (Cygwin on a floppy) and added the guide. This was before the setup.exe changes that made a minimal install easy. I've stopped updating Cygwin-Lite but I think the webpage is useful: http://cygwin-lite.sourceforge.net/html/begin.html At the bottom there are lots of links to other useful information. Anybody want to take a look and try to guess what I was smoking at the time? Date: Thu, 10 Jan 2002 20:55:54 -0600 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Faylor [snip] For Bourne style shells I use runme filename 21 This redirects stdout first and then stderr to whereever stdout is pointing. If this doesn't do it, then I think the best plan is to find help from another mailing list. Basic shell questions are not really appropriate here -- especially given the recent volume we've been experiencing. I've been cogitating for a while that it could be mutually beneficial to inexperienced users and regulars' blood pressures alike if the Cygwin mailing list page listed a few concrete URLs to such newbie lists/newsgroups/FAQs etc, and at the same time reworked the wording on the description of this particular list. Currently it says, If you have questions about how to use Cygwin, or any of its tools (bash, gcc, make, etc.), this is the list for you. That means: If you have any question whatsoever regarding anything you can associate somehow with Cygwin, post it here. That's simply not the intention of the list (at least since I've been around), nor should it be, but the description simply gives no indication of the true intent, i.e. Cygwin-specific questions only need apply. Now as for where best to send people, I have no idea (maybe some can just point into the appropriate section of the FAQ). But here's a rough outline of what I'm thinking: Help With The Tools Packaged With Cygwin Can't figure out the bash command line syntax? Don't know what a HOME is? What-ular expressions? These are general Unix sorts of questions , and you'll have the best luck getting help at one of these many fine resources: Unix basics: http://wherever/ Bash up the wazoo: news://bash.whatever/ Regular Expressions Revealed: mailinglist://heretoo/ Cygwin Specific Mailing Lists = cygwin-xfree: (same description, note the clever inversion of these two, thus guaranteeing that no xfree questions get into the main list). cygwin: A high volume list solely for the discussion of Cygwin-specific issues/problems/etc. If you have questions specifically related to the Cygwin ports of the tools, *not* regarding the tools themselves, post here. Cygwin Developers Mailing Lists === Heaven help you if you post something off topic to one of these: cygwin-apps: blah blah blah etc etc Comments? Questions other than what are you smoking? ;-) -- Gary R. Van Sickle Brewer. Patriot. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
possible patch for cygwin.bat
Here's a possible patch to include a couple rxvt lines REMed out. No changelog yet since I figure it needs comments. Anyone? --- desktop.cc-orig Fri Jan 11 10:38:12 2002 +++ desktop.cc Fri Jan 11 10:46:18 2002 @@ -199,6 +199,9 @@ make_cygwin_bat () backslash (concat (get_root_dir () + 2, /bin, 0))); fprintf (bat, bash --login -i\n); + fprintf (bat, REM If rxvt is installed, use this to use it.\n); + fprintf (bat, REM SEE ALSO man rxvt for more information on options.\n); + fprintf (bat, REM rxvt -fn \Fixedsys\ -e /bin/bash --login -i \n); fclose (bat); } __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/