Help Understanding Path Issue
Hello, I have cygwin installed on my XP box, and have been using it for a bit of time. Mostly to compile class files, vi, and the great unix removes, etc. Anyway, I have had this following problem for a while, and was hoping to get it resolved once and for all. I have "CLASSPATHS" and "PATHS" and some "HOME" directories set up. Eg: ANT_HOME value=C:/ant/bin When I run ant from a "cmd" window all is good. It picks up the value and runs fine. But I do not want to use the "cmd" prompt, and would like to use cygwin. But when I issue ant I get the dreaded error: Error: JAVA_HOME is not defined correctly. We cannot execute /cygdrive/c/jdk1.5.0_02/bin/java I do not want to change all my HOME, PATH, values because some of the system software uses them as they are. Can I get around this? Is there where it makes sense to use a symbolic link? Any input would be greatly appreciated. Sincerely Scott K Purcell -- 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/
where is SCP
Hello, I need to scp some files to a remote machine on our network, and I cannot find the scp module? When I loaded cygwin, I loaded most default stuff, but even today, I am trying to search for it, and cannot find scp? Thanks, -- 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/
Install goes to network drive
Hello, I am installing "cygwin" on a XP box. I have downloaded the setup and files to my local c:/tmp/files When I run the setup, all appears good. I point to c:/cygwin and tell it to find files from c:/tmp/files. The install completes fine but when I type a cd ~ (show my home directory) the terminal shows my home here: /cygdrive/h which is a mounted server. I have done this three times, and each time it does this. I checked all environment variables. I just want my home to be /cygdrive/c so I can add a .bashrc and get rolling. Can someone please assist. Many thanks, Scott -- 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/
pathing q
Hello, I am trying to run a java jar file, and my app keeps telling me that it can't find any of the class files, etc. I investigated and I am seeing some flags that I cannot seem to find via the man pages. cygpath -m? As you can see, I do have to go to /cygdrive/c in order to go to my C: drive, so in my $cpth below, do I need to mark everything as /cygdrive/c? But If I do, it would not be very portable would it? It would be nice to be able to run it with cygwin (my box) and have someone else run it if they just have a cmmd window. Thanks, Scott Does not ever find classes when running with cygwin, but runs fine when I use the cmd window. my $cpth ="C:/com/skp/convert/altercast_sdk.jar;C:/com/skp/convert/xalan.jar;C:/com/skp/convert/xerces.jar;."; my $arg2 = "-path $key "; # print "$cpth is cpth\n"; # my $cmmd = "java -cp " . " " . $cpth . " com.skp.convert.MakeThumbs " . arg2 . " " . join " ", @files; my $cmmd = "java -cp " . " " . $cpth . " com.skp.convert.MakeThumbs -path " . $key . " " . join " ", @files; -- 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: Save typing /cygdrive/c?
Hello Igor, Do I need a package to make the mount work? I typed in man mount, but it says notavailable, but I know i have installed most of the man pages for what I own? Thanks, Scott -Original Message- From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 2:11 PM To: Scott Purcell Cc: [EMAIL PROTECTED] Subject: Re: Save typing /cygdrive/c? On Mon, 27 Jan 2003, Scott Purcell wrote: > Hello, > > I hope I am not asking pre-posted question. But I love the cygwin > product. It makes life nice. But I am tiring a little of always typing: > /cygdrive/c everytime I want to start at c: > > eg: > cp fun.class /cygdrive/c/make_lr/updates/. > > Is there a way to do something so I can type the above but simpler. > cp fun.class /make_lr/updates/. > > ?? > I apologize if this is a fundamental question, but my hands are getting > tired and I am having trouble finding the answer to this. > > Thanks, > Scott Scott, Try running "mount -u 'c:\make_lr' /make_lr" and see if this helps. You may wish to create a /make_lr directory for tab-completion to work. For details, run "man mount". Igor P.S. You only need to mount this once - the mount table is persistent. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- 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/
Save typing /cygdrive/c?
Hello, I hope I am not asking pre-posted question. But I love the cygwin product. It makes life nice. But I am tiring a little of always typing: /cygdrive/c everytime I want to start at c: eg: cp fun.class /cygdrive/c/make_lr/updates/. Is there a way to do something so I can type the above but simpler. cp fun.class /make_lr/updates/. ?? I apologize if this is a fundamental question, but my hands are getting tired and I am having trouble finding the answer to this. Thanks, Scott -- 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/
cygwin path problems
I am having a hard time understanding the cygpath. I don't know why... But anyway. I am running Win2000. I have created a executable jar file that lives at /usr/local/ags/libs/test.jar And jar is good and runs from a dos window if I move the test.jar to C:/ Anyway, I am trying to run it through cygwin so I am typing the following: spurcell@DSGSTL-PC-1523 /cygdrive/c $ java -jar cygpath -m /usr/local/ags/libs/makeThumbs.jar Exception in thread "main" java.util.zip.ZipException: The system cannot find th e file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:105) at java.util.jar.JarFile.(JarFile.java:110) at java.util.jar.JarFile.(JarFile.java:52) I have also tried $ java -jar /cygdrive/usr/local/ags/libs/makeThumbs.jar Exception in thread "main" java.util.zip.ZipException: The system cannot find th e path specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:105) at java.util.jar.JarFile.(JarFile.java:110) at java.util.jar.JarFile.(JarFile.java:52) I can't seem to get cygwin to run this. Could someone advise me on this. Thanks, Scott -- 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/
Emacs Problem
Hello, I got ambitious during lunch and installed emacs. At the cmd line I type in emacs and all works great. I got one problem though, it will not quit. I run a standalone emacs on my box and when I quit I hit the keys [ ctrl x c ] and it quits the app. But in the one that runs in cygwin, it does not. How do I get cygwin to quit emacs and return to a cmd prompt? Thanks, Scott -- 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/
copy files to Solaris 2.x boxes
Hello, I am running the cygwin product and I would like to copy files from my pc to a sun box. Currently we have a couple of run boxes and I can do a scp between the boxes. I would like to be able to take files from my pc and scp them to the suns. Can this be done? If so any information? Thanks, Scott -- 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/
pathing issues script failure
Hello, I am writing a simple shell script and I am running into some roadblocks. I am sure it is something I am doing, or the way I have configured the system? Anyway, the problem is in the following script, I have to type in /cygdrive/c, to reach the c drive. But for some reason this script fails when it has to put the output away. It switches the / unix style slashes back to windows? I am on win2000. I am trying to get this working, does anyone know what is wrong, or what I should change to get this rolling? Thanks, Scott Here is the script. #!/bin/sh pwd=`pwd` echo $pwd " is pwd" classfiles=/cygdrive/c `cp -r ${classfiles}/com ${classfiles}/cvs_tmp` cd ${classfiles}/cvs_tmp args=`find . | grep java\$ | tr "\n" " "` # run javadoc with the -d option, which will put the output in the # directory this script was run from echo /cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd javafil es /cygdrive/c/Program\ Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd $args # go back to where we started from cd $pwd find . | xargs chmod 777 ### here is what happens when I run it, notice the Destination, it is now \cygdrive\c spurcell@DSGSTL-PC-1523 /cygdrive/c $ javadoc.sh /cygdrive/c is pwd /cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d /cygdrive/c javaf iles javadoc: Destination directory not found \cygdrive\c 1 error -- 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/
Man Page question
Hello, I installed the default cygwin and I am trying to run some man pages. eg: man find man ls I get $man find bash: man: command not found but if I go into /usr directory I see the man1 man3 man5 and man7 folders? Could someone give me some advice here. Thanks, Scott -- 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/