Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Utilities

    getenv.sh -

    Download button

    No screenshots available
    Downloads: 612  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Guillaume Chazarain | More programs
    GPL / FREE
    November 21st, 2006, 17:16 GMT
    ROOT / Utilities

     Read user reviews (0)  Refer to a friend  Subscribe

    getenv.sh description

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

    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"
    ...

    Product's homepage

      


    TAGS:

    environment variables | ltrace variable | getenv variable | getenv.sh | environment | variables

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM