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 ...

learn more… | top users | synonyms

1
vote
2answers
15 views

Using setx to append to user PATH

My attempt: setx PATH "%PATH%;%~dp0" How do I do this without everything in system PATH getting duplicated in user PATH?
0
votes
1answer
6 views

proper way to set IRCSERVER env environment variable?

the IRC BitchX guide says two conflicting things: earlier, when describe all the env vars: IRCSERVER - Server(s) separated by spaces to use, in the format irc.host.com:port[:password] Then ...
0
votes
1answer
17 views

Can rsync use a remote environment variable?

Say I want to use rsync to copy a remote folder to my local desktop: rsync -av remote:$REMOTEDATA $LOCALDATA But I want to access the $REMOTEDATA environment variable on the remote server, not the ...
0
votes
3answers
29 views

CMD not recognizing javac.exe

On my Windows 7 64 bits, I changed the JAVA_HOME variable to point on 64 bits JRE, and changed it again to point on 64 bits JDK. I did same operation a few times. Every time I do this change I close ...
0
votes
1answer
8 views

Pipe in Environment variable in fish shell doesn't execute the first command?

I want to set fish_greeting to date --rfc-2822 | cowsay -f tux | lolcat (don't judge me). When I run date --rfc-2822 | cowsay -f tux | lolcat interactively, I get the proper output (the date in a ...
1
vote
1answer
32 views

What is the name of the tool that allows one to manipulate environment variables?

For some bizarre reason our corporation has disabled access to modify our own environment variables, they've actually set every single modifiable group policy to disallow us from doing anything, ...
0
votes
0answers
8 views

After adding vboxmanage to PATH, getting “ 'cmd' is not recognized as an internal or external command”

Am trying to add virtualbox exe's to the windows PATH. But after adding "C:\Program Files\Oracle\VirtualBox" to the PATH env am getting the below error. And most of the usual commands are not ...
0
votes
0answers
21 views

Intel(R) Management Engine Components\DAL in envoirement variable

Here is my path variable C:\Users\hzhao\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update2\bin; C:\Users\hzhao\.dnx\bin; C:\Program Files\Common Files\Microsoft Shared\Windows Live; C:\Program Files ...
1
vote
1answer
61 views

Why does Windows have a limit on environment variables at all?

What the Technical Reasons for 1024 character limit After having used Linux for the past 3 years, so many Windows 7 Pro issues have been bothering me at my day job. The most inane are the filename ...
2
votes
2answers
388 views

Name “wmplayer” is not recognized as an executable file

I cannot run wmplayer from either cmd or PowerShell. My OS is Windows 7 64 bit. I can do it using start wmplayer but I cannot use parameters. Please, help me to handle it.
-1
votes
0answers
14 views

Setting public variables for parameters in a report in Micreooft Access 2007 VBA

I have a database in Microsoft Access. There is a year-to-date report brought up by a form which sets the parameters for the report with public variables. This report worked in earlier an version of ...
1
vote
1answer
20 views

Providing API Keys at Runtime for Chromium doesn't work

I installed Chromium for mac OS X. When I launched the browser, I got a message stating "Google api keys are missing". I followed the instructions on the "Chromium developers how-to". I have ...
34
votes
10answers
23k views

Cannot resolve %windir% / Cannot modify %path% or %path% being reset on boot

See Updates 3 and 4 below for how the issue has evolved My computer (Windows 7 x64, Lenovo Thinkpad T530) is having an issue resolving %windir%. After boot-up, everything works fine. At some ...
3
votes
1answer
134 views

Windows Batch. Append to PATH Environment Variable, when It Contains Spaces

I want to add some binaries to path for my console session and I'm doing it like so if not defined WIXTOOLKIT_IN_PATH ( set WIXTOOLKIT_IN_PATH=1 set MY_PATH=%~dp0..\tools\wix SET ...
-2
votes
2answers
45 views

Path Environment Variable not working

Rephrased question I have an XP machine where I want to access an *.bat file from anywhere in my command prompt. As an example, let's say it's vcvarsall.bat from my Visual Studio 2010 directory. ...
1
vote
1answer
985 views

Setting Environment Variables on Mac OS X

I'm new to using Mac OS X. From my understanding, it uses Linux under the covers. I have a need to add an environment variable. Currently, whenever I start a terminal window, I've been executing ...
0
votes
2answers
23 views

Pass variable to another pane

I'm working with tmux and I'd like to pass some information from one pane to another. For example in first pane i've got the folder by pwd command and instead of copypast to another pane I want to ...
1
vote
1answer
5k views

Git is in the PATH, but is not being recognized as a command

I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path environment variable, as you can see: C:\Users\Ult>where git ...
1
vote
1answer
28 views

Git bash and cmd don't load my user account PATH variable

Start up a gitbash or a windows cmd session and run echo $PATH or echo %PATH% They both print the contents of the system PATH variable, but neither prints the contents of the PATH variable ...
17
votes
3answers
7k views

Updating screen session environment variables to reflect new graphical login?

I use linux, and I like to do all my command-line work within a single screen session, so that I can restart my graphical login and such without losing my terminals. However, when I log out and back ...
0
votes
1answer
23 views

Windows environment variables. How do I change the name that I must type at command prompt to run a path target

I am using Windows 10 Pro, but I'm sure the process is the same as Windows Vista through 8.1 or it's similar enough for me to figure out the minor differences. I have two programs with the same exact ...
0
votes
3answers
375 views

Environment variable in .lnk shortcut

I want to make a windows shortcut, which opens javaw.exe at a variable destination. This destination is the content of my system environment variable %MY_OWN_JAVA_HOME%. I tried to do: right click ...
1
vote
2answers
25 views

Read lines from a file into command window and expand variables

Im trying to see if its possible to read lines from a file into the command window and then write them back out to a file. The tricky part is that anywhere in the file where there is text resembling ...
4
votes
3answers
4k 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!
0
votes
1answer
16 views

PowerShell environment variable missing

I have the situation. One of PowerShell environment variable has been missing several times. I have to manually add it ($env:path +=';C:\Program Files\Docker Toolbox') and reboot my desktop. I am ...
0
votes
0answers
36 views

subshell variables not getting exported to parent shell

As part of porting scripts from HP-UNIX to RedHat Linux, I'm trying to set up config files accordingly. There is a scenario where the .profiles sources oracle env with SID as option to it, that in ...
0
votes
0answers
30 views

Source windows environment variables in MSYS

I have a setenv.cmd script which contains paths for the windows cmd prompt: set CURRENT_SCRIPT_DIR=%~dp0 set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin But I'm using bash (via msys in the git for windows ...
1
vote
2answers
3k views

Environment Variable ORACLE_UNQNAME not defined

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From ...
0
votes
2answers
22 views

Evaluate each environment variable and set it back in ubuntu

I'm trying to write a shell script which reads all the environment variables, evaluate them for included env. variable with in them and re-export after evaluvation. Example - I've an environment ...
4
votes
1answer
10k 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
0answers
12 views

Xcode - highlight the row of a variable

I am new to xcode and i would like to know if is possibile (as usual in all normal IDE) obtain the following behavior: once selected a variable, show on the right column or in the left column the ...
3
votes
0answers
21 views

Shortening Path variable

Currently, my path variable is way too long (as it seems to have been populated by different programs upon installation). I have pasted my path variable below, could you all please tell me if it is ...
2
votes
2answers
8k 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 ...
0
votes
1answer
35 views

Path not being completely set in Windows 10

When I open a new cmd and print the path it is not match what is in the System > Advanced system settings > Environment Variables... I have two directories from my User variables and a bunch from my ...
0
votes
0answers
33 views

How do I read system environment variable in Windows 10 (without using admin right)

How to I read system environment variable in Windows 10 (without using admin right) my %JDK_HOME% = C:\Program Files\Java\jdk1.8.0_77 when i use command line echo %JDK_HOME% it will show %JDK_HOME% ...
9
votes
2answers
7k views

What is the difference between /etc/environment and /etc/profile?

I understand that the former is loaded prior to the latter, but what is the conceptual difference? Are there any good reasons I should set some variables in one and not in other? Except the fact that ...
1
vote
0answers
15 views

Sudo user is not able to export path of ant

Sudo user is not able to export path of ant. I am trying to execute shell script setpath.sh which exports path for ant. After executing the script when I am executing ant command then getting ant ...
0
votes
1answer
64 views

How to make an Environment Variable available to Systemd Services

I have a script in /etc/profile.d/setenv.sh which sets the value for JAVA_HOME so that $JAVA_HOME will be available system-wide: # echo "export JAVA_HOME=/usr/java/jdk1.8.0_74" > ...
0
votes
0answers
22 views

Cygwin command to set user path when logging in ssh

I've setup a sshd as a service on windows 7 with cygwin, choosing to create cyg_server to run it. Now I can login to my machine via SSH with my normal username, everything works, except what depends ...
1
vote
1answer
16 views

Replace shortcut path during creation (Windows)

I would like all new shortcut links created using the right-click option in windows explorer to replace the absolute path with a system variable. The motivation is to have synchronized shortcuts work ...
0
votes
1answer
30 views

How to remove environment variable

I am use Windows 10 pro. I try to run other Tomcat instance, but I cannot control config (%CATALINA_HOME%). This is systempropertiesadvanced (hasn't CATALINA_HOME variable): I try to echo by cmd ...
0
votes
0answers
34 views

When does %PATH% get expanded?

Ok so I'm pretty sure this question has been answered somewhere already, I'm just not able to find it within 30minutes. I have set some custom variables (system-wide) and added them to my system ...
0
votes
0answers
8 views

how to save URL passed variable for page reloads [duplicate]

i am developing a blog website first time, the problem is here: i am displaying a 150 characters of all post on single page, and when user clicks on a particular post of his interest that post gets ...
6
votes
3answers
9k views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
8
votes
5answers
11k views

Wrong java -version being reported

I am running Windows 7 Professional x64 and have the following Java versions installed: x64 C:\Program Files\Java jdk1.6.0_24 jdk1.7.0_04 jdk1.7.0_07 jre6 jre7 x86 C:\Program Files (x86)\Java ...
0
votes
0answers
12 views

How to set user environment HTTP_PROXY variable depending on network attached?

I spend about half my time behind a corporate firewall with a restrictive proxy, and the other half on open outbound connections. When I am on the corporate network and use CLI tools through cygwin ...
0
votes
0answers
40 views

CMD doesn't update environment variables

When I edit the system environment variable PATH (or any other, I imagine) through Control Panel\System and Security\System > Advanced system settings, it doesn't update in CMD, even after ...
0
votes
1answer
112 views

CUDA program ignores CUDA_VISIBLE_DEVICES variable?

I'm using CUDA 7.5 on a machine with Ubuntu Server 14.04 and 3 GPUs: 2x Tesla K20C and 1x GeForce GT 630. I've tried to set the CUDA_VISIBLE_DEVICES to the according IDs so that the code only runs on ...
3
votes
1answer
260 views

How do you set environment variables for a single command on Windows?

Is there a way to set environment variables for a single command on Windows like ENVVAR=abc command on Unix? Variables set by set command on Windows seem to remain for the following commands, but ...
1
vote
2answers
24 views

Display the environmental variables seen by desktop applications

How can I know what environmental variables will be set when a desktop application (not bash or other command line shells) launches? Is there a utility tool?