Home  |  Linux  | Mysql  | PHP  | XML
From:Wong, Danny H. Date:Fri Jun 13 18:05:52 2008
Subject:environment variables
Hi All,
    I have a script that set environment variables for 10 plus
configuration and each configuration share some environment variable and
have some different or specific environment  variables for a particular
configuration. I set the env variables before calling each thread, but I
notice that the environment variable inherits the previous
configurations environment setting.
Example:
configure 1:
set 11 variables
 
Configure 2:
set 10 variables, all of of configure minus 1 specific variable
 
But configure 2 has all eleven variables.
 
Is there a way to delete the environment variables before setting each
configuration?
 
I tried 
undef (%ENV)
SETENV ();
 
but no luck?
 
Also, I read that environment variables in Linux are cached? If it true,
is there a way to clear the cache without rebooting the system?
 
Any ideas how I can delete all the environment variables before setting
them again for the next configuration? 
 
thanks in advance.




     - - - - -                              Cisco                            - - - - -         
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to 
the addressee). If you are not the intended recipient of this message, you are 
not authorized to read, print, retain, copy or disseminate this message or any 
part of it. If you have received this e-mail in error, please notify the sender 
immediately by return e-mail and delete it from your computer.
Navigate in group perl.ithreads at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants