Mail Archives: cygwin/2007/04/30/10:33:29
Hi
Good morning !!
Can I please know which command I should fire for getting cygcheck
output?
Here is etc\passwd file:
==========
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-PPANDAREXP2\Administrator,S
-1-5-21-1433376788-2975499368-2157819948-500:/home/Administrator:/bin/ba
sh
biodb:unused_by_nt/2000/xp:1013:513:biodb,U-PPANDAREXP2\biodb,S-1-5-21-1
433376788-2975499368-2157819948-1013:/home/biodb:/bin/bash
db2admin:unused_by_nt/2000/xp:1012:513:db2admin,U-PPANDAREXP2\db2admin,S
-1-5-21-1433376788-2975499368-2157819948-1012:/home/db2admin:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-PPANDAREXP2\Guest,S-1-5-21-14333767
88-2975499368-2157819948-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1007:513:Remote Desktop Help
Assistant
Account,U-PPANDAREXP2\HelpAssistant,S-1-5-21-1433376788-2975499368-21578
19948-1007:/home/HelpAssistant:/bin/bash
Identix:unused_by_nt/2000/xp:1008:513:U-PPANDAREXP2\Identix,S-1-5-21-143
3376788-2975499368-2157819948-1008:/home/Identix:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft
Corporation,L=Redmond,S=Washington,C=US,U-PPANDAREXP2\SUPPORT_388945a0,S
-1-5-21-1433376788-2975499368-2157819948-1002:/home/SUPPORT_388945a0:/bi
n/bash
ppandare:unused_by_nt/2000/xp:28240:10545:ppandare,U-IDXDOMAIN\ppandare,
S-1-5-21-1431314469-474088948-56781596-18240:/cygdrive/i:/bin/bash
==========
I am still not able to see where things are going wrong with different
environment variables .
Thanks a lot
Prasad Pandare
-----Original Message-----
From: Pandare, Prasad
Sent: Friday, April 27, 2007 7:00 PM
To: Pandare, Prasad; 'cygwin AT cygwin DOT com'
Subject: Regarding the Cygwin Environment variables
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/
- Raw text -