HP-UX pargs
Материал из noname.com.ua
Версия от 14:20, 15 июля 2011; Sirmax (обсуждение | вклад) (Защищена страница «HP-UX pargs» [edit=sysop:move=sysop])
HOWTO get process environment on HPUX:
Run gdb and use the following command: p ((char**)_environ)[0]@30 . 30 is number of variables to print.
netracapp[62] /oracle_sw/products/10.2.0> gdb -pid=19982 <skipped> Attaching to process 19982 Reading symbols from connect...done.
(gdb) p ((char**)_environ)[0]@30 $1 = {
0x9fffffffffffadd6 "_=/tti/netrac/n2server_36x/n2//HP-UX_B.11.23_ia64_aCC_A.06.12_64/release/executables//connect", 0x9fffffffffffae34 "GD_LOG_DIR=/tti/logs/n2_36x//gd/", 0x9fffffffffffae55 "N2_TZDIR=/opt/dce/lib/zoneinfo", 0x9fffffffffffae74 "MANPATH=/opt/SUNWspro/man:/usr/openwin/man:/usr/dt/man:/opt/SUNWste/license_tools/man:/usr/share/man", 0x9fffffffffffaed9 "LANG=C", 0x9fffffffffffaee0 "EZSPMM2_IMP_DIR=/tti/implementation/ezspmm2/", 0x9fffffffffffaf0d "BASE_LOG_DIR=/tti/logs/n2_36x/", 0x9fffffffffffaf2c "GD_STUDIO_LIB_DIR=/tti/implementation/gd//data/studio_lib/", 0x9fffffffffffaf67 "MACHINE_AND_COMPILER=HP-UX_B.11.23_ia64_aCC_A.06.12_64", 0x9fffffffffffaf9e "SNMP_AGENT_IMP_DIR=/tti/implementation/snmp_agent/", 0x9fffffffffffafd1 "LC_MONETARY=C", 0x9fffffffffffafdf "SEC_INF_DIR=/tti/netrac/n2server_36x/sec_inf/", 0x9fffffffffffb00d "N2_HOST_IP=netracapp", 0x9fffffffffffb022 "N1_INITIAL_BUILD_DB_FILE=/tti/netrac/n1server/common//data/n1_encrypt_file.dat", 0x9fffffffffffb071 "LC_TIME=C", 0x9fffffffffffb07b "PAGER=less -r -M", 0x9fffffffffffb08c "ARTCPPORT=5555", 0x9fffffffffffb09b "N2_3RD_PROJ_DIR=/tti/project/n2_3rd_party_components/", 0x9fffffffffffb0d1 "SHLIB_PATH=/oracle_sw/products/10.2.0/lib:/oracle_sw/products/10.2.0/lib32::/tti/project/HP-UX_B.11.23_ia64_aCC_A.06.12_64/release/libraries/:/tti/netrac/n2server_36x/n2//HP-UX_B.11.23_ia64_aCC_A.06.1"...,
---Type <return> to continue, or q <return> to quit---
0x9fffffffffffb6c6 "LOG_FILE=/tti/logs/netrac.log", 0x9fffffffffffb6e4 "SSH_TTY=/dev/pts/0", 0x9fffffffffffb6f7 "MODULE_LIST=N2 N2P N2_3RD MED2 SEC_INF FAM_SERVICES PLUGIN GD PMM2 TG NCI2 DVX2 EZSPMM2 MS SNMP_AGENT INT_ALARMS", 0x9fffffffffffb769 "SYBSERV=oraoptms", 0x9fffffffffffb77a "GD_IMP_DIR=/tti/implementation/gd/", 0x9fffffffffffb79d "EZSPMM2_LOG_DIR=/tti/logs/n2_36x//ezspmm2/", 0x9fffffffffffb7c8 "BASE_IMP_DIR=/tti/implementation", 0x9fffffffffffb7e9 "PATH=/oracle_sw/products/10.2.0/bin:/usr/bin:/bin:/opt/SUNWspro/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/atria/bin:/usr/local/bin:/tti/netrac/n1server/programs:/tti/netrac/n2server_36x/N2tools/:/oracle_"..., 0x9fffffffffffc26f "NCI2_AUDIT_DIR=/tti/netrac/audit/", 0x9fffffffffffc291 "N2_PROJ_DIR=/tti/project/n2/", 0x9fffffffffffc2ae "NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15"}