Environment variables are system-wide variables which share the same value. These variables are often parsed by the shell when executing commands, and are expanded into their appropriate variable. For example, this allows users to move file locations without needing to update hard-coded paths in ...
4
votes
1answer
207 views
How can I modify my KDE environment without restarting?
I am running KDE 4.10. I have added an environment variable to my .profile, however this variable will obviously not be visible to programs that I start via the KDE GUI (as opposed to a shell with the ...
3
votes
1answer
3k views
Refresh environment variable
How can I refresh a Windows cmd shell after I modified my Environment variables?
i.e. in bash I can just do "source ~/.bashrc"
2
votes
1answer
40 views
Environment variable's address is changing?
Don't ask why I am not posting this at Stack. So I have this small C program. It returns the address of the environment variable specified in argv[1].
#include <stdio.h>
#include ...
2
votes
1answer
48 views
Where do the environment variables for an elevated cmd.exe process come from?
The environment variables shown by the SET command can be notably different depending on the
privilege level of the command prompt session. Moreover, it seems that any program run with
administrative ...
2
votes
1answer
3k views
TEMP environment variable occasionally set incorrectly
Occasionally, I find my TEMP and TMP environment variables set to C:\Windows\TEMP. They should be set to %USERPROFILE%\AppData\Local\Temp, and are configured correctly in System Properties.
This ...
2
votes
1answer
853 views
Setting proxy via http_proxy on Mac
I am using an HTTP proxy on MacOS 10.7 (which works for Safari.app, when set in the system preferences). I'm now trying to set the proxy for command-line applications using the $http_proxy environment ...
2
votes
1answer
612 views
Redirect/Pipe output and set environment variable
Basically, I have a file whose lines I want to color with different colors if it matches 1 of 2 regular expressions with grep. If regexp1 is matched, then use one color; if regexp2 is matched, use ...
1
vote
1answer
68 views
Not able to get Environment variable in Ubuntu 11.10 (earlier set in ~/.bashrc) using getenv() - from within a application development tool
We are editing ~/.bashrc with command: /home/user> sudo gedit .bashrc
1
vote
1answer
90 views
Accessing external HDD on different Windows computers with the same path
I have a external HDD and have a folder in it called icons\ which stores all the custom icons (yes, I'm nostalgic!) for the different folders on my drive. But when I open my hard-drive on a different ...
1
vote
1answer
526 views
How can I find out where an environment variable (like PATH) was set?
I have a xterm with the bash shell in linux. When I echo $PATH, it is showing a directory and I want to know who put this directory in the PATH. How can I find out?
Thanks!
1
vote
1answer
509 views
Where is %PUBLICDOCUMENTS%? (shell:Common Documents)?
I need an expansion that gives the current location of public documents. %PUBLIC% expands to C:\Users\Public, but I haven't found any equivalent for public documents.
%PUBLICDOCUMENTS%, ...
1
vote
1answer
817 views
Setting JAVA_HOME environment variable
I have set java_home on my mac, by putting export JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworks/Home to my ~/.profile file. I quit the terminal and ran it again.
But when I typed echo ...
1
vote
1answer
1k views
APPDATA and LOCALAPPDATA environment variables are not set on a profile in Windows 7 Pro 32bit
I am having problem with a user account on a Windows 7 machine (local install, admin user account)
APPDATA and LOCALAPPDATA environment are not set. Another user on the same machine, (also a local ...
1
vote
1answer
295 views
How can I avoid having to reload my environment?
I'm not sure why, but I keep having to type 'source /etc/environment' in order for my path to be updated correctly. I don't want to type this inside of my bashrc, since I don't want it related to ...
1
vote
1answer
967 views
/etc/environment and cron
I've got two machines: Fedora and CentOS. And a cronjob
0-59 * * * * env > /home/me/env.log
On CentOS I can see that /etc/environment is affecting the output while on Fedora it does not. I want ...
0
votes
1answer
32 views
How to set path variable in Windows Server 2003?
Can someone help me figure out how to set a variable path in Windows Server 2003? I am trying to do the below code which is not working.
Update: My issue might actually be that the CURRENT PATH ...
0
votes
1answer
19 views
Installing Python wrapper for METIS: Cannot locate METIS_DLL shared library
I am planning to use Metis for drawing some networks and graphs using Python 2.7. I downloaded Metis from here. I compiled and installed the source code without any problems. For installing the Python ...
0
votes
1answer
15 views
Is it possible to make the environment ignore $http_proxy env variable for certain urls?
In Firefox, I can set a proxy for all URLs except certain domains.
Is it possible to do the same with the http_proxy environmental variable?
That is, could I set another variable to exclude certain ...
0
votes
1answer
17 views
Auditing use of system vars in Win7
I was wondering if there is a way to mount some sort of a hook on a system variable in Win7 which would allow me to trace which application and at what time referenced it. I would like to know this ...
0
votes
1answer
174 views
Update http_proxy environment variable in Ubuntu 12.04
I just updated my proxy username's password and now I want to update the http_proxy environment variable.How can I do it?
0
votes
1answer
48 views
How to set env variable for all process?
I'm working on Linux,
Can anybody please help me to set a env variable on Linux that will be available for all process running on the same machine?
0
votes
1answer
398 views
Adding an environment path to the Visual studio command prompt
Does the following add an environment path?
setx path "%path%;C:\foo"
It will leave any existing paths alone? i.e nothing will be deleted?
If I open the Visual Studio Command Prompt and run the ...
0
votes
1answer
35 views
How can you use the domain of the client connected over ssh in the shell?
Is it possible to get the users ip address, domain name, or host-name of an established ssh connection in the shell? For example, when I connect over ssh the first printed line says something like ...
0
votes
1answer
68 views
Where was environment variable set?
I've an environment variable ($M2_HOME) which I'd like to modify. The thing is, I can't find where I originally set it - this is quite bizarre as I exclusively use ~/.bash_profile.
Are there any ...
0
votes
1answer
1k views
changing /etc/profile does nothing to root PATH
rhel 5
root has /bin/bash for shell
I removed "pathmunge /usr/local/sbin" from /etc/profile
there is no "/usr/local/sbin" in /etc/profile.d/* /etc/bashrc /root/.bashrc /root/.bash_profile ...
2
votes
0answers
74 views
Echo string in tcsh with special characters escaped
Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash:
% # Create a variable containing a tab character
% ...
2
votes
0answers
153 views
Git, Powershell, %HOME% and multiple repos
I'm going to start off by saying that I'm not particularly good with either git or Windows. However, I've been successfully using msysgit on Windows 7 for a while now, keeping track of a number of ...
2
votes
0answers
324 views
Windows command prompt seemingly ignoring PATH
I am trying to use a package called virtualenv for Python, which temporarily changes the PATH environment variable to add a certain directory and give convenient access to several executables. My ...
1
vote
0answers
406 views
How can I pass environment variable in nginx conf?
I have nginx conf as
location /static/ {
alias $HOME/code/python/vlists/vlists/static/;
# if asset versioning is used
if ($query_string) {
expires max;
...
1
vote
0answers
172 views
Is there a way to expand environment variables in *.ini files?
I have to work with an ini file, but I need a value set in the file to be based on an environment variable. For example,
...
[program] dir=%SystemDrive%\SomeFolder\
...
In this case, ...
1
vote
0answers
180 views
Creating a shortcut in launcher to run a terminal command with more than one parameter as argument
How do you create a shortcut in launcher that lets you run a terminal command using more than one variable?
For example, how do you create a launcher shortcut that will prompt you for varA and varB ...
1
vote
0answers
163 views
Prevent Windows System %PATH% from being prepended to user %PATH?
I know how to set system or user specific environment variables:
Now, the problem is that the PATH variable is treated such that the value you enter for the user PATH will be automatically appended ...
1
vote
0answers
4k views
libXtst.so.6: cannot open shared object file: No such file or directory
UPDATE: after qsub many times I noticed that when the hostname is opt### it appears to work, but for other nodes in which the hostname is of different topology int###, it does not. I've discussed ...
1
vote
0answers
125 views
SystemRoot not substituted
I have a strange behavior with the environment variables at my Windows XP SP3.
When I logon as Administrator, the %SystemRoot% strings in PATH are substituted to C:\WINDOWS, the value of the variable ...
0
votes
0answers
13 views
rvm cluttering up my environment vars
I was trying to see a list of my environment variables in Bash (Mac Terminal) by typing set. But when I do, I am overwhelmed by a bunch of functions apparently defined by RVM. Is this supposed to ...
0
votes
0answers
26 views
A shortcut in Windows 7 does not expand an environment variable if it is not given a argument
I have the following line for the Target: textbox under the Shorcut Properties page:
"C:\Program Files\gVim\gvim.exe" --servername %CYGWIN% --remote-silent-tab $*
The shortcut expands %CYGWIN% ...
0
votes
0answers
88 views
gstreamer can't find plugin DLL
I'm trying to install a custom gstreamer plugin on Windows 7 x64. I've got the compile plugin as a .dll.
Gstreamer resides in:
C:\gstreamer-sdk\0.10\x86_64\
The lib directory where I placed the ...
0
votes
0answers
81 views
Path variable broken Windows 7?
I have been trying to compile and execute both Python 2.7 and Java programs on my Windows 7 computer. Both of these have been installed, and I am attempting to run my programs off of the command line. ...
0
votes
0answers
29 views
Setup remote machine environment variables Ubuntu
I searched on net regarding the issue but was unable to find any specific solution to the issue. The problem being:
I am not able to set environment variables of a remote machine through Jenkins ...
0
votes
0answers
46 views
Set windows system enviroment variable to use the enviroment variable %username%
I'm trying to set a system environment variable to use use the current logged in username. I'm tried the below using the username environment variable but it doesn't work. I'm using "setx /m" on ...
0
votes
0answers
18 views
Setting http_proxy using launchctl
I am using the following statement in Terminal to set http_proxy variable
sudo launchctl setenv http_proxy http://xxxxxx:3128
Then exit the terminal and reopen the terminal again. I give
ping ...
0
votes
0answers
52 views
How to prevent one service from changing the USERPROFILE environment variable for other services?
I am facing a problem on Windows XP with environment variables.
Scenario: We have some services installed on an XP machine. These services have login accout set to the Local System acccount. Then ...
0
votes
0answers
366 views
Hadoop is not able to find JAVA_HOME properly
I am trying to run hadoop my Ubuntu OS. I have set JAVA_HOME variable in ~/.bashrc file to /usr/lib/jvm/jdk1.7.0_01/ but when I run hadoop namenode -format command it fails with following errors :
...
0
votes
0answers
71 views
Why does %ProgramFiles% not work in startup paths?
A program (allowing me to zoom with my trackpad) ran at startup on my computer. Then I disabled it through Administrative Tools > System Configuration > Startup. When I re-enabled it that same way it ...
0
votes
0answers
152 views
My path keeps getting truncated and I have to restart explorer.exe to fix it
I have a mysterious problem on my machine. Periodically I find that my path on Windows 7 machine gets set to
...
0
votes
0answers
70 views
Why is the APPEND command named DPATH and why is it seemingly forgotten?
I have been checking and searching out this question for a while without avail.. It seems that the old APPEND command from the good old MSDOS days has been renamed DPATH. There are a few unanswered ...
0
votes
0answers
111 views
Show the %username% for the logged in user in an elevated command prompt instead of elevated users %username%?
On a Windows Vista Business machine, I have Windows Task Scheduler task set to run everytime any user logs in. The task runs as a certain elevated admin user because the script is being executed from ...
0
votes
0answers
117 views
Maintain select Windows environment variables in text file
I'm working on several Windows computers (mostly Win7) and like to carry my configuration around with me. That configuration is mostly development stuff, like: Where is the main Mercurial repo on my ...
0
votes
0answers
394 views
How to set cron HOME environment variable?
I am using esmtp to send email as an output of cron job. The SMTP server and credentials configuration are stored under my $HOME/.esmtprc.
However it looks like the $HOME env variable is set to '/', ...
0
votes
0answers
137 views
Secondary OS Installation “PATH” environment variable pointing to Primary OS location
I recently installed a secondary OS Windows Server 2008 R2 std. edition on my PC which is having Windows7 Professorial edition as the primary OS.
Now the problem is, if I execute "PATH" command in ...

