delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
x-cr-puzzleid: | {FAC13FCD-FB01-4A0A-A9E1-0F70EBCB5638} |
x-cr-hashedpuzzle: | Al97 AnFu Ayjc B9IU B/nx Cb9u DaCN EaG7 EsxG FCMm FX/l HKFz HkqU IjZK KLEF KaD5;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{FAC13FCD-FB01-4A0A-A9E1-0F70EBCB5638};cAByAGEAcwBhAGQALgBwAGEAbgBkAGEAcgBlAEAAaQBkAGUAbgB0AGkAeAAuAGMAbwBtAA==;Fri, 27 Apr 2007 22:59:25 GMT;UgBFADoAIABSAGUAZwBhAHIAZABpAG4AZwAgAHQAaABlACAAQwB5AGcAdwBpAG4AIABFAG4AdgBpAHIAbwBuAG0AZQBuAHQAIAB2AGEAcgBpAGEAYgBsAGUAcwA= |
content-class: | urn:content-classes:message |
Subject: | RE: Regarding the Cygwin Environment variables |
Date: | Fri, 27 Apr 2007 17:59:30 -0500 |
Message-ID: | <78006EF781F40B47935AF941E9692FCC0358F56C@idxmnmail.identix.com> |
References: | <78006EF781F40B47935AF941E9692FCC0358F553 AT idxmnmail DOT identix DOT com> <46326667 DOT 2060205 AT cygwin DOT com> <78006EF781F40B47935AF941E9692FCC0358F562 AT idxmnmail DOT identix DOT com> <46327041 DOT 5000703 AT cygwin DOT com> |
From: | "Pandare, Prasad" <Prasad DOT Pandare AT identix DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l3RMxgET017299 |
Hi Here is my problem details : ======================================================================== ========= Step 1 . run C:\cygwin\cygwin.bat file ======================================================================== ========= Step 2. Type env in command line to get environment variables : $ env HOMEPATH=\Documents and Settings\ppandare.IDXDOMAIN MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man:/usr/share/ qt3/doc/ man:/usr/X11R6/man DB2INSTANCE=DB2 APPDATA=C:\Documents and Settings\ppandare.IDXDOMAIN\Application Data HOSTNAME=PPandareXP2 TERM=cygwin PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 4, GenuineIntel WINDIR=C:\WINDOWS DB2TEMPDIR=C:\DB2 QTDIR=/usr/lib/qt3 OLDPWD=/usr/bin USERDOMAIN=IDXDOMAIN OS=Windows_NT ALLUSERSPROFILE=C:\Documents and Settings\All Users ANT_HOME=C:\apache-ant-1.6.5 USER=ppandare !::=::\ TEMP=/cygdrive/c/DOCUME~1/PPANDA~1.IDX/LOCALS~1/Temp COMMONPROGRAMFILES=C:\Program Files\Common Files LIB=;C:\DB2\LIB USERNAME=ppandare PROCESSOR_LEVEL=15 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/sys tem32:/c ygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/AT I Technologies/ATI.ACE/:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/ binn/:/cygdrive/c/apache-ant-1.6.5/bin:/cygdrive/c/j2sdk1.5.0_06/bin:/cy gdrive/c /DB2Installer/biodb_db2/biodb/loader/lib:/cygdrive/c/DB2/BIN:/cygdrive/c /DB2/FUN CTION:/cygdrive/c/DB2/SAMPLES/REPL FP_NO_HOST_CHECK=NO PWD=/etc/skel SYSTEMDRIVE=C: JAVA_HOME=C:\j2sdk1.5.0_06 USERPROFILE=C:\Documents and Settings\ppandare.IDXDOMAIN QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++ PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ LOGONSERVER=\\NJDC01 PROCESSOR_ARCHITECTURE=x86 !C:=C:\cygwin\bin SHLVL=1 HOME=/cygdrive/i USERDNSDOMAIN=IDENTIX.COM PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH HOMEDRIVE=C: PROMPT=$P$G COMSPEC=C:\WINDOWS\system32\cmd.exe TMP=/cygdrive/c/DOCUME~1/PPANDA~1.IDX/LOCALS~1/Temp SYSTEMROOT=C:\WINDOWS PRINTER=\\njdc01\HP LaserJet 1200 Series PCL 5e CVS_RSH=/bin/ssh PROCESSOR_REVISION=0604 CLASSPATH=.;C:\DB2Installer\biodb_db2\biodb\loader\lib;C:\DB2\java\db2ja va.zip;C :\DB2\java\db2jcc.jar;C:\DB2\java\sqlj.zip;C:\DB2\java\db2jcc_license_cu .jar;C:\ DB2\bin;C:\DB2\java\common.jar PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig MAKE_MODE=unix INFOPATH=/usr/local/info:/usr/share/info:/usr/info: PROGRAMFILES=C:\Program Files HOMESHARE=\\hindenburg\PPandare$ NUMBER_OF_PROCESSORS=2 INCLUDE=C:\DB2\INCLUDE;C:\DB2\LIB SESSIONNAME=Console COMPUTERNAME=PPANDAREXP2 SONICCENTRAL=C:\Program Files\Common Files\Sonic Shared\Sonic Central\ _=/usr/bin/env ppandare AT PPandareXP2 /etc/skel $ ======================================================================== ========= Step 3. Run ssh command with password ssh ppandare AT 127 DOT 0 DOT 0 DOT 1 enter password : ********* ======================================================================== ========= Step 4. Run env command to get env variables after ssh : $ env HOMEPATH=\ MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man:/usr/share/ qt3/doc/ man:/usr/X11R6/man HOSTNAME=PPandareXP2 TERM=cygwin SHELL=/bin/bash PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 4, GenuineIntel WINDIR=C:\WINDOWS SSH_CLIENT=127.0.0.1 4599 22 QTDIR=/usr/lib/qt3 OLDPWD=/ USERDOMAIN=IDXDOMAIN SSH_TTY=/dev/tty0 OS=Windows_NT ALLUSERSPROFILE=C:\Documents and Settings\All Users USER=ppandare TEMP=/cygdrive/c/WINDOWS/TEMP COMMONPROGRAMFILES=C:\Program Files\Common Files USERNAME=ppandare PROCESSOR_LEVEL=15 MAIL=/var/spool/mail/ppandare PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/sys tem32:/c ygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/AT I Technologies/ATI.ACE/:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/ binn/:/cygdrive/c/apache-ant-1.6.5/bin:/cygdrive/c/j2sdk1.5.0_06/bin:/cy gdrive/c /DB2Installer/biodb_db2/biodb/loader/lib:/cygdrive/c/DB2/BIN:/cygdrive/c /DB2/FUN CTION:/cygdrive/c/DB2/SAMPLES/REPL:/bin PWD=/etc/skel SYSTEMDRIVE=C: CYGWIN=ntsec USERPROFILE=C:\Documents and Settings\ppandare.IDXDOMAIN QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++ TZ=EST5EDT4,M3.2.0/2,M11.1.0/2 PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ LOGONSERVER=\\MNDC01 PROCESSOR_ARCHITECTURE=x86 SHLVL=1 HOME=/cygdrive/i PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH HOMEDRIVE=i: COMSPEC=C:\WINDOWS\system32\cmd.exe LOGNAME=ppandare TMP=/cygdrive/c/WINDOWS/TEMP SYSTEMROOT=C:\WINDOWS PRINTER=\\njdc01\HP LaserJet 1200 Series PCL 5e CVS_RSH=/bin/ssh PROCESSOR_REVISION=0604 SSH_CONNECTION=127.0.0.1 4599 127.0.0.1 22 PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig MAKE_MODE=unix INFOPATH=/usr/local/info:/usr/share/info:/usr/info: PROGRAMFILES=C:\Program Files NUMBER_OF_PROCESSORS=2 COMPUTERNAME=PPANDAREXP2 _=/usr/bin/env ppandare AT PPandareXP2 /etc/skel $ ======================================================================== ================================= From above output you see that I am getting different sets of environement variables. When I login with ssh command to same machine 127.0.0.1 I am NOT able to see JAVA_HOME,DB2TEMPDIR environment variables. ======================================================================== ================================= Please advise. Thanks Prasad Pandare -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Larry Hall (Cygwin) Sent: Friday, April 27, 2007 5:51 PM To: cygwin AT cygwin DOT com Subject: Re: Regarding the Cygwin Environment variables Pandare, Prasad wrote: > Hi Larry, > > Thanks for quick reply. > > Which previous discussion you are talking about ? > > I have just subscribed to the mail today and I have delivery wherein I > am supposed to > Get all envirionment variables from remote machine without adding them > manually like > Following statement > Export JAVA_HOME=c:\jdk1.6 > > Instead of adding variables in bashrc file can we get them automatically > Like JAVA_HOME,ANT_HOME without any manual addition of code. > I'm batting 1000 today. I missed that you said you were using password authentication with 'ssh'. So let's go back to the beginning. Please read and follow the problem reporting guidelines outlined here: <http://cygwin.com/problems.html> In addition to those general guidelines and requested info, please include sample results from the machine in question both before and after sshing in. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |