Results 1 to 3 of 3
Hello all,
I got a odd issue and I guess it would be easy to fix.
However, I just don't get it.
I am testing a Perl CGI Application and ...
- 11-04-2009 #1
[SOLVED] Envoirment Variables.
Hello all,
I got a odd issue and I guess it would be easy to fix.
However, I just don't get it.
I am testing a Perl CGI Application and I had some bugs in there.
So, well patching time.
So, I wanted to set my HTTP Cookie to run the script from the command line and see all the output.
Thus:
However it doesn't set the HTTP cookie value. it sets the value _ with my values.Code:[root@server http]# set HTTP_COOKIE=user=admin [root@server http]# echo $HTTP_COOKIE [root@server http]# set BASH=/bin/bash ..output trimmed.. _=HTTP_COOKIE=user=admin shell=bash
This is rather bothersome as I read:
Perl CGI Script Debugging: Solving a 500 Internal Server Error (thesitewizard.com) and Environment Variables - Linux Commands
How to set them. (and I remember doing it like this in the past)
But it didnt seem to work.
So, any advice / tips would be great
Cheers all,
Robin
- 11-04-2009 #2
To set an environment variable in bash you need to use export:
Set was used in the cshellCode:export foo=bar
Linux User #453176
- 11-04-2009 #3



