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
1answer
12 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
20 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
27 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
16 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
20 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
18 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
8 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
27 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
6 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
37 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
27 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
17 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
41 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
125 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
35 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
25 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' ...
0
votes
1answer
28 views

Distinguishing and Executing `set` & `env`?

What is the difference between the set and env commands? When would/should one be used as opposed to the other? How are they generally invoked? (Typical use; case scenario).
0
votes
2answers
23 views

Testing for unset variables in a for loop

I've written a script which parses a file and sets variables according to a fixed width within the file. I then want to check each variable and, if it's a blank field, set to "0". A simple variation ...
-2
votes
1answer
38 views

What does asterisk “*” mean in a unix PATH environment variable?

Example: # echo $PATH /home/admin*:*/bin I assume it's a wildcard of some sort, but is it one level deep, or many? For example, will */bin match only items in usr/bin or will it also match deeper ...
0
votes
1answer
23 views

How to store an ssl key as a variable in a script for use with ncat?

I am trying to write a wrapper script to start an ncat listener. I don't want to have to output the certificate and key to a file, rather I'd like to store it as a variable within the script, and call ...
0
votes
1answer
141 views

Windows: Can't launch any program from command prompt

I need to have ability to start program by the file name on Windows 7 like firefox.exe. But nothing from this thread works. ie Notepad++ creates an entry in App Paths but still command prompt is ...
1
vote
0answers
38 views

Windows command prompt default directory randomly changing

What happens is when I'm on my windows and open a command prompt, I sometimes don't get the right default directory. Sometimes command prompt opens with "H:\", sometimes it's "c:\windows\System32" and ...
0
votes
0answers
25 views

Can't create or see Windows 7 restore points anymore

Long story short, I was deleting some path variable in the Environment variable > system variable > path. I needed to clean up some path variables for my python. Have done something like this before, ...
1
vote
0answers
31 views

make environment variable available inside cmd script in windows

I am running a script like below, but the environment variable path does not contain C:\tmp inside script.cmd, how to make it available? Os is windows. cmd.exe /c "set path=%path%;C:\tmp && ...
0
votes
1answer
58 views

Differences between en_US.utf8 and en_US.UTF-8?

I've had a terrible time getting zsh to play nicely with Debian Jessie, and I've come to the conclusion that my issues all stem from my system's locale. Running locale, I see LANG=en_US.utf8 ...
0
votes
1answer
83 views

How to remove GIT_SSH environment variable on Windows?

I installed MSysGit with setting plink as SSH client. I want unset it. I reinstalled MSysGit with OpenSSH. I still see plink set in GIT_SSH. $ echo ${GIT_SSH} D:\prog\plink.exe Because: I don't ...
2
votes
1answer
45 views

Changing the system path variable is not saving the new path

I have just installed JDK (Windows 8 x64), when I run java in a cmd window all is fine, but when I run javac it gives an error message. I have found that when I use echo %PATH% it shows the path as ...
-1
votes
1answer
45 views

Read configuration file and assagin it into script variables

I need to read a configuration file and assign into script variables and omit commented lines, Sample configuration file: # This is sample configuration file SRV_IP=192.168.1.12 DB_IP=192.168.1.10 ...
0
votes
0answers
102 views

How to set environment variables for a Gnome Wayland session

It seems that a Gnome Wayland session ignores the file ~/.profile. At least it is not working for me under a Gdm / Gnome / wayland session with Arch Linux. So the question is, what is the proper ...
0
votes
1answer
48 views

Sudo can't see symbollically linked executables in path

On CentOS 7, I installed some executables in /opt/app-version/bin/executable. Those executables have the following permissions: rwxrwxr-x. 500 500 Ownership of every directory in the path ...
8
votes
1answer
91 views

How do I specify an IPv6 address in the X Window DISPLAY variable?

I'm trying to export a DISPLAY variable containing a numeric IPv6 address. What format would the variable take, since IPv6 addresses contain :, which normally is used for the display number? Googling ...
0
votes
0answers
32 views

subshell variables not getting exported to parent shell

As part of porting scripts from hp-unix to redhat linux trying to set up config files accordingly.there is a scenario where the .profiles sources oracle env with SID as option to it which in turn ...
1
vote
0answers
27 views

Some “expandable” variables not expand

Rapid Environmet Editor proposes an option to edit "expandable" environment variables. Apparently, this is the feature of Windows. Unfortunately, some of variables not expand. I made a group of ...
1
vote
1answer
44 views

Batch file: environment variable “if” string test

In a batch file, I'm calling another batch file to set a number of date environment variables. The data variables set properly and I can call them. However, in this instance, I need to compare two ...
5
votes
1answer
22 views

Trouble defining an environment variable on Cygwin

I'm using the Cygwin 64-bit installation on my Windows 7 machine. In my ~/.bash_profile, I set export JBOSS_HOME=/cygdrive/c/Program\ Files/wildfly-10.0.0.CR2/ However, when I attempt to open a ...
2
votes
1answer
36 views

CMD batch escaping enviroment variable in params

I have to write a batch file with a enviroment variable a param: c:\myapp.exe -f "%APP_HOME%\file.conf" I need to pass exactly the string "%APP_HOME% as param and not its value. How can I do? In ...
0
votes
1answer
8 views

Add a command to user terminal profile?

Every time I start a new terminal, I have to type nvm use 4.1.1 to get my node version selected. Is there a way to get this to be 'typed' or added to some environment variable when I open a new ...
0
votes
1answer
176 views

environment module : Cannot initialize TCL

I am trying to create a python-2.7.10 module on a CentOS 6 cluster. My simple python-2.7.10 module file is : #%Module1.0 prepend-path PATH /gpfs0/export/opt/anaconda-2.3.0/bin prepend-path MANPATH ...
1
vote
1answer
72 views

User scope environment variable: PATH append string value to existing value

I want to know, how to to append value to existing PATH variable (user scope): SETX PATH "%PATH%;D:\Myfolder\Test\" The above script takes system path variable data using %PATH% and append my ...
0
votes
1answer
67 views

Editing Environment Variables

I have been able to edit the environment variables in the past in Windows 7 by selecting “Advance system settings” and clicking on “Environment Variables” and selecting and editing the type path and ...
1
vote
2answers
270 views

Problems with setting environment variables (especially PATH) and using cd with them in cmd in windows 10

I am following a tutorial to setup Apache Storm. (That's just for context -- it doesn't really matter for my error.) So it tells me to set some environment variables, specifically %JAVA_HOME% and ...
0
votes
1answer
51 views

using export in an EnvironmentFile

I'm converting an Upstart config file to a systemd unit file. We use lots of environment variables to store magic variables that are imported with the EnvironmentFile directive export ...
0
votes
1answer
434 views

Standard value of PATH variable Windows 10

After having poorly handled the PATH system variable (resulting in deletion), I'm now looking to reinstate the variable with the original value. I found answers like this one about Windows 8 and ...
0
votes
2answers
194 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
0answers
42 views

How can I figure out what's stepping on my PATH variable?

In a nutshell: my PATH environment variable is sometimes only available from an elevated session, other times it's fine; how can I find out what's corrupting it for non-admin sessions and prevent it ...
0
votes
2answers
84 views

override environment variables

I would like to override a particular environment variable on a one-shot basis. The system currently has a variable for the "rm" command, forcing verification for each file. In general I am fine ...
0
votes
0answers
42 views

Unable to load correct Python module

I am working on a cluster where I do not have sudo privileges and am trying to link to a custom installation of numpy for optimization reasons. I set up my PYTHONPATH in the following way: export ...
0
votes
1answer
103 views

PowerShell environment

I am proficient in bash and having trouble understanding the environment in PowerShell. Is there any way equivalent to /usr/bin for adding executables to the environment? How is the environment ...
2
votes
1answer
279 views

XCOPY can't read /EXCLUDE file

I'm trying to write a build script batch file for an Unreal Tournament 2004 mod I want to publish the source code for. This script contains a call to XCOPY with the /EXCLUDE parameter as follows: ...