Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Syntactic Confectionery Delight
 
PerlMonks  

Re: OT: would this ENV setup make you blow your lid too?

by xorl (Deacon)
on Jun 08, 2006 at 09:14 UTC ( [id://554269]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to OT: would this ENV setup make you blow your lid too?

Doesn't look too different from mine:
NETHACKOPTIONS=!autopickup,!mail,showexp,showscore,number_pad:1,hilite +_pet SSH_AGENT_PID=4203 HOSTNAME=xorl.intranet TERM=xterm SHELL=/bin/bash HISTSIZE=5000 GTK_RC_FILES=/etc/gtk/gtkrc:/home/xorl/.gtkrc-1.2-gnome2 WINDOWID=35682814 OLDPWD=/tmp/liberty QTDIR=/usr/lib/qt-3.1 USER=xorl LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01: +cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe= +00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.ta +r=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:* +.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm +=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:* +.xpm=00;35:*.png=00;35:*.tif=00;35: SSH_AUTH_SOCK=/tmp/ssh-XXGtnSON/agent.4151 SESSION_MANAGER=local/xorl.intranet:/tmp/.ICE-unix/4151 PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/ho +me/xorl/bin MAIL=/var/spool/mail/xorl PWD=/tmp INPUTRC=/etc/inputrc XMODIFIERS=@im=none EDITOR=/usr/bin/xemacs LANG=en_US.UTF-8 GDMSESSION=Default SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=2 HOME=/home/xorl GNOME_DESKTOP_SESSION_ID=Default LOGNAME=xorl LESSOPEN=|/usr/bin/lesspipe.sh %s VALGAAV=xxx.xxx.xxx.xxx DISPLAY=:0.0 G_BROKEN_FILENAMES=1 COLORTERM=gnome-terminal XAUTHORITY=/home/xorl/.Xauthority _=/usr/bin/env
Could you elaborate as to why you think something is wrong?

Replies are listed 'Best First'.
Re^2: OT: would this ENV setup make you blow your lid too?
by leocharre (Priest) on Jun 08, 2006 at 10:35 UTC

    These cgi env variables are more common. Yours lacks QUERY_STRING and DOCUMENT_ROOT.

    The problem with stuff like this is developing small apps/scripts that are intended to run on multiple machines. This is why some standards are important. At least in regards to devel.

      Your node here implies you're running env dump from the command line, you're not going to see any cgi env variables from the command line.

      -derby
      You'll only get stuff like that if you have the webserver run it. Your post seemed to imply that you ran it from the command line which shouldn't have stuff like QUERY_STRING. I put the following script in my cgi-bin directory on my webserver:
      #!/usr/bin/perl print("Content-type: text/html\n\n"); foreach (keys %ENV) { print $_ . "==>" . $ENV{$_} . "<BR>"; }
      I then pointed my brower to the URL and here's the output:
      SCRIPT_NAME==>/~xorl/cgi-bin/test.pl SERVER_NAME==>devel.intranet SERVER_ADMIN==>xorl@mydomain.org.net.com HTTP_ACCEPT_ENCODING==>gzip,deflate HTTP_CONNECTION==>keep-alive REQUEST_METHOD==>GET HTTP_ACCEPT==>text/xml,application/xml,application/xhtml+xml,text/html +;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 SCRIPT_FILENAME==>/export/home/xorl/public_html/cgi-bin/test.pl SERVER_SOFTWARE==>Apache/2.0.52 (Red Hat) HTTP_ACCEPT_CHARSET==>ISO-8859-1,utf-8;q=0.7,*;q=0.7 QUERY_STRING==> REMOTE_PORT==>41051 HTTP_USER_AGENT==>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) G +ecko/20060413 Red Hat/1.7.13-1.4.1 SERVER_PORT==>80 SERVER_SIGNATURE==> Apache/2.0.52 (Red Hat) Server at uit183.ntdp.intranet Port 80 HTTP_ACCEPT_LANGUAGE==>en-us,en;q=0.5 HTTP_COOKIE==>TZ=America%2FChicago; session_id=2d7fb6ee9da78c293d33620 +0de6f0219; authusername7=admin; authpassword7=06aed384ecae502cac7ae47 +c7597ffe6 REMOTE_ADDR==>10.33.1.32 HTTP_KEEP_ALIVE==>300 SERVER_PROTOCOL==>HTTP/1.1 PATH==>/usr/local/bin:/usr/bin:/bin REQUEST_URI==>/~xorl/cgi-bin/test.pl GATEWAY_INTERFACE==>CGI/1.1 SERVER_ADDR==>10.33.1.32 DOCUMENT_ROOT==>/export/htdocs HTTP_HOST==>uit183.ntdp.intranet UNIQUE_ID==>2e-u6gohASAAAE8d0SIAAAAA
      Try running the script that way and see what you get then.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554269]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.