getenv.sh -

ltrace -e getenv does not tell the full story, so getenv.sh lists all calls to getenv(3) made by a program.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Guillaume Chazarain
HOMEPAGE:
guichaz.free.fr
CATEGORY:
ROOT \ Utilities
Ever wondered which environment variables are consulted by a program? ltrace -e getenv does not tell the full story, so getenv.sh lists all calls to getenv(3) made by a program.

For example, on my Fedora ltrace does not show that xclock(1) reads the DISPLAY environment variable.

With ltrace:

[g ~]$ ltrace -e getenv xclock

+++ exited (status 0) +++

Nothing … and now with `getenv.sh`:

[g ~]$ ./getenv.sh xclock

getenv("XTAPPPEEKEVENT_SKIPTIMER") = NULL
getenv("DISPLAY") = ":0.0"
getenv("XAUTHORITY") = "/tmp/.gdmWQFWIT"
getenv("XLIBBUFFERSIZE") = NULL
getenv("XKB_DEBUG") = NULL
getenv("_XKB_OPTIONS_ENABLE") = NULL
getenv("XKB_DISABLE") = NULL
getenv("RESOURCE_NAME") = NULL
getenv("XLOCALEDIR") = NULL
getenv("XLOCALEDIR") = NULL
getenv("XMODIFIERS") = NULL
getenv("XENVIRONMENT") = NULL
getenv("HOME") = "/home/g"
...

Last updated on November 21st, 2006

#environment variables #ltrace variable #getenv variable #getenv.sh #environment #variables #ltrace

Add your review!

SUBMIT