Hi Experts,
Need your help in understanding the commands to setup the environment variables in hp-ux.
Beleive need to use either set,setenv or export.
I am confused between above three options, when to use which option?
On command line, I have tried both set and setenv but couldn't able to set the environment variables. However with export it was working fine.
How do I set manually environment variables for metasploit, when I execute db_driver I get this message:
[*] No Active Driver
[*] Available:
[*] DB Support: Enable the postgresql driver with the following command:
[*] * This requires libpq-dev and a build environment
[*] $ gem install postgres
[*] $ gem install pg # is an alternative
From the lfs doc:
The exec env -i.../bin/bash command in the .bash_profile replaces
the running shell with a new one with a completely empty
environment, except for the HOME, TERM, and PS1 variables. This
ensures that no unwanted and potentially hazardous environment
variables from the host system leak into the build environment.
I noticed a difference in 'env' before and after a 'screen' call, is there any additional clarity on what gets called (for setting environment variables)?
I am writing a shell script, to read a file which has key=value pair and set those variables as environment variables. But I have a doubt, if I do source file.txt will that set the variables defined in that file as environment variable or I should read the file line by line and set it using export command ?
Is source command in this case different than export?
I have OpenSuse 11.4.
I start some on-boot scripts inside /etc/init/boot.local.
Where could I move those scripts so that they would be started after all (most) environment variables got initialized?
These scripts need to be started really once, so things such as /etc/profile.local aren't candidates.
I try to start Sonar, which searches for Java in some strange way (instead just by look up JAVA
In /etc/ssh/sshd_config, there is an option called AcceptEnv that allows the ssh client to send environment variables. I need to be able to send a large number of environment variables. These change on every connection from the client, so putting them in a login script on the server would be more difficult.
I've read that "AcceptEnv *" is insecure.
I have tried to get some variable through Java (System.getenv()) which was set inside ~/.bashrc
It hasn't appeared in the list of variables.
Close but not quite there, that just wipes all the environment variables. Any idea how I could get the default variables for $USER from there? Thanks, BTW.
Gullible Jones
https://bbs.archlinux.org/profile.php?id=2672
2012-09-11T02:29:25Z