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

0
votes
1answer
5 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
30 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
17 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 ...
0
votes
0answers
6 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 ...
1
vote
1answer
54 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 ...
1
vote
1answer
16 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 ...
-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 ...
-2
votes
2answers
43 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. ...
0
votes
2answers
21 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
27 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 ...
0
votes
2answers
25 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
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 ...
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 ...
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
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 ...
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 ...
-2
votes
0answers
11 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
20 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 ...
0
votes
0answers
32 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% ...
0
votes
1answer
34 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 ...
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
59 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 ...
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 ...
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?
1
vote
1answer
20 views

pass du (disk usage) result to a numeric variable

In a shell script, I'm looking for a way to pass the du (disk usage) result to a numeric variable, so that I cantie the execution of a shell script to the size of a specific folder. I've tried ...
0
votes
0answers
12 views

Environment Variable VS Registry [duplicate]

I'm confused about the usage of Environment Variables vs Registry. Is there best pratices on what to store where? For exemple, why have a PATH variable if I can read it from the registry? Thanks
1
vote
1answer
21 views

How do I monitor changes made to environment variables ?

I have an environment variable whose value didn't match the one set by /etc/environment, even after reboot. I eventually found the auto-executed .sh script changing it, but that incident got me ...
0
votes
0answers
23 views

using conditionals in environment modules

I am on a CentOS 6.6 system and I am trying to create some environmental modules. I have a package, HTSeq-0.6.1 that uses python and I wanted to have a conditional that checks the current version of ...
0
votes
1answer
47 views

Certain Variables won't expand in Windows System Environment Variables PATH [duplicate]

For some reason there are certain Environment Variables that won't expand when used in the "PATH" variable in the System Variables. For example, %SystemRoot% works just fine while %WinDir% doesn't. ...
0
votes
0answers
44 views

Why are my TMUX session options (set-option blah) always being applied globally?

Terse How can I set a different status-bg color in two different TMUX sessions? Why are environment variables acting unexpectedly in .tmux.conf? Verbose Different colors for the status bar I have ...
0
votes
1answer
104 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 ...
0
votes
1answer
70 views

Setting environment variables in cmd has no effect

I'm trying to set up paths to VS tools to run them in command line, as per https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx I run vcvarsall x64 from elevated command prompt and check the ...
0
votes
0answers
20 views

Mailman 3 - editing the welcome.txt via the rest API

Thanks for reading my post. I will explain my situation and then at the bottom explain what my question is regarding my situation. There is a .txt file configured in mailman to send out to users as ...
1
vote
1answer
35 views

windows PATH variable ignore version number

Since forever I have hardcoded environment path variables on windows, or used some script to find a path to an executable with a regex. Is there a mechanism for adding a location to the PATH ...
0
votes
0answers
9 views

NPM Windows doesn't execute program under the User Variable path [duplicate]

So I have npm and installed gulp globally. gulp.cmd is available under %Appdata%/npm and it had added the NODE_PATH user variable. When I type in gulp in my command prompt, it returns 'gulp' is not ...
0
votes
2answers
263 views

What is the default value of the PATHEXT environment variable for Windows?

What is the default value for the PATHEXT environment variable for different versions of Windows? Or even better: How can you reliably determine the original default system value for PATHEXT on a ...
0
votes
1answer
31 views

Debugging env vars from ssh

I'm writing a script and an application for an embedded board with linux - no X, only console. The only way to reach the target is via ssh, I don't have a monitor connected. The script should export ...
0
votes
1answer
18 views

How to add a enviroment variable without GUI [duplicate]

Is there a way how I can add a new environment variable specifically PATH without going into control panel etc. Is there a file I can edit for this or a command line argument that can do the same ...
0
votes
0answers
101 views

SETX command missing in Windows10

In my Windows10 laptop, I notice that setx command missing. Get error message "setx is not recognized as an internal or external command" Any solutions to this issue? There are scripts which ...
0
votes
2answers
21 views

Using one prompt input for two different functions

I would like to make a time lapse movie in a specific range. The script is working until it makes the movie. Here the script: read -p "Von welchem Zeitraum soll der Zeitrafferfilm sein? ...
5
votes
3answers
135 views

Why some programs need a Path value, and some others don't in Windows?

Why When I install Composer on Windows 7/8/10, or some UNIX-suited programs like GNU Tar, I need to set their Path value, and if I don't, they won't be usable by other programs?
0
votes
2answers
47 views

Set environment variables (e.g., $PATH) at beginning of script — Not applying for all programs

I must be overlooking something, but I've tried several ways to get this to work. I'm working on a super computer without admin rights. I need to use a specific java version for a particular ...
1
vote
1answer
46 views

Passing Env Variables to Batch File

I'm having difficulties passing a env var (declared in my .bash_profile) to a batch file script which executes a BTEQ operation (in Teradata). .bash_profile contains: export DBPASSWORD='password' ...