The environment-variables tag has no wiki summary.
1
vote
0answers
30 views
Where to put user-specific environment variables to make them available in bash and to the applications run from Gnome3
I'm trying to run IntelliJ from Gnome3's Applications menu, but it complains the JAVA_HOME variable is not set.
I have the Java installation under my home folder.
I managed to export the variable in ...
4
votes
1answer
50 views
change environment of a running process
How might it be possible to alter some variable in the env of an already running process, for example through /proc/PID/environ? That "file" is read-only.
Need to change or unset the DISPLAY variable ...
0
votes
1answer
25 views
Fedora 7 server export in .bashrc not getting set
I'm trying to set the JAVA_HOME environment variable in my .bashrc but every time I log back in it gets unset again to its original value, below is my .bashrc file
# .bashrc
# User specific aliases ...
2
votes
0answers
26 views
Envirnment variables for packages built in custom location
Some time ago (month or so) I started to install packages that I build from source in custom location ~/.local so that I can easily distinguish which I build from source, and for other reasons, ...
1
vote
1answer
52 views
Setting locale for user
I'd like to set a locale for my user different than system locale.
By putting export LANG=en_US.utf8 in .bashrc I could do that for the shells, but still it's not working for applications not started ...
3
votes
2answers
90 views
sourcing a file inside a script
I'd like to source a file inside a tcsh script. In code:
#!/bin/tcsh
unsetenv LD_LIBRARY_PATH
source $1
echo $LD_LIBRARY_PATH > temp_file
The expected result: The environment variable set ...
1
vote
3answers
94 views
Accessing bash [internal] brace expansion iteration number/variable
Question:
Is it possible to access which number of a bash iteration is currently being processed?
Psuedo-Command
mv {1..5}.something.{1..5} $x1.$x2.something
Note: This is a logical ...
0
votes
2answers
53 views
Way to determine where certain global parameter is configured
I wonder if there is a way to determine the location of the file where certain configuration exists. For example know that I have a global parameter TMOUT and I want to change it, but I don't know ...
0
votes
2answers
125 views
Trying to set JAVA_HOME in ~/.bashrc
I have added this line at the end of ~/.bashrc file.
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
But when I do echo $JAVA_HOME I don't get anything as output, I expected ...
1
vote
2answers
67 views
How to make changes to /etc/profile take effect
I am trying to change $GRAILS_HOME from /usr/grails-1.3.7 to /usr/grails-2.0.0
If I just do export GRAILS_HOME=/usr/grails-2.0.0 it doesn't persist when I log out and back in.
I found a line in ...
1
vote
1answer
121 views
Why `which tmux` and `sudo which tmux` return 2 different values?
ssh bobby@tony:~$ which tmux
/usr/bin/tmux
ssh bobby@tony:~$ sudo which tmux ...
1
vote
4answers
54 views
Exporting environment variable
I am having some problem with bash. I want to export an environment variable whose value contains a variable but I don't want that variable (which is within the value) to be evaluated during the ...
1
vote
2answers
52 views
Variable name from command output
I have some string, and want to split on colon ":" assigning on variable with name from left part and value from right part. For example:
echo "Title: Some title" | sed 's/:.*//'
gives me wanted ...
6
votes
1answer
61 views
How set environment variable based on whether a GUI is available?
How can I set up my .bashrc such that the value of an environment variable changes based on whether or not the current session has access to the gui / windowing system?
For example, let's say I have ...
0
votes
1answer
67 views
Shell script executing in the terminal but not from shell script file [closed]
Possible Duplicate:
How can I make variables “exported” in a bash script stick around?
I have a problem with executing script from file. When I type in command line
...