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

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 ...
3
votes
0answers
2k views

How to recover from PATH being truncated to 1024 characters by SETX

I received an error on Windows 8 after trying to use SETX to add JAVA.exe to the Windows PATH variable: WARNING: The data being saved is truncated to 1024 characters. After a reboot, I notice that ...
2
votes
0answers
16 views

Cant physically type in variable value text box when editing PATH environment variable

I am quite lost with this and hope someone faces similar problem and fixed it. But it's as simple as not being able to type in the provided text box for changing variables values in the PATH. I can ...
2
votes
0answers
66 views

Apache2 SetEnv For Multiple VirtualHosts

I am looking to use a single declaration of a SetEnv var in my apache2.conf file & have that variable used by all the virtualhosts I currently have virtualhost-specific vars set up, but would ...
2
votes
0answers
1k 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; ...
2
votes
0answers
1k 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, ...
2
votes
0answers
6k 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
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 ...
1
vote
0answers
53 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 ...
1
vote
0answers
33 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 && ...
1
vote
0answers
32 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
0answers
45 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 ...
1
vote
0answers
257 views

How to add Visual Studio code to path variable?

My path variable had corrupted which I have fixed now. But during the process, I lost some of the original entries in the path variable. I specifically want to add entries for visual studio code and ...
1
vote
0answers
274 views

OSX seems to be ignoring any DYLD_* environment variables

I'm attempting to use a 3rd party SDK which is primarily written in C++. Their recommended approach for running the compiled output (an ODBC driver) on OSX includes setting an environment variable ...
1
vote
0answers
208 views

Alternative ways of passing PS1 env variable into Ubuntu for SSH session

I know that there are twenty thousand answers, none of them worked as expected, I'm more surprised than you are, so please consider reading the story first. I'm trying to achieve what appears to be a ...
1
vote
0answers
145 views

How do I set the PATH variable for a service that's running as a non-login user?

I'm running a GitLab server on a Linux machine using Nginx as a Webserver. Several processes (started either manually as root with /etc/init.d/foo start or automatically as sub-processes) run as ...
1
vote
0answers
293 views

user path not merged with system path

On my Windows 7 machine, for some reason the user path is not merged with the system path variable when I start a new command prompt. I have seen other related questions answered by a reference to a ...
1
vote
0answers
255 views

Is it possible to set my PATH variable in a desktop entry?

I've created a bin directory in $HOME with shell scripts that are each set up to load a Firefox profile; this way I can use a simple command like e.g. facebook to open a Firefox profile reserved for ...
1
vote
0answers
213 views

Would a longer PATH environment variable slow down a system?

In Windows 7, will a long system PATH environment variable slow down the system in any noticeable/tangible way? My system PATH variable is 45-entries deep. I have an i7 930 @ 4.2GHz, but out of ...
1
vote
0answers
431 views

Nested environment variable does not expanded

I can't explain the below strange issue. I have two system variables: PYTHONHOME = D:\Tools\ISDC_Tools\Scripting\Python.2.7 PYTHONPATH = %PYTHONHOME%;%PYTHONHOME%\Lib After creating a new cmd ...
1
vote
0answers
660 views

PATH variable - System vs User - why is it dangerous to modify System PATH on Windows?

While installing MinGW, the users are warned about making changes to the System PATH variable: You should not alter the system path variable in any manner, or you will cause all sorts of problems ...
1
vote
0answers
86 views

ifs environment variable is not inherited

In Unix the IFS variable was often used to subvert system integrity. How it was fixed? The only answer I found is in wikipedia page http://en.wikipedia.org/wiki/Internal_field_separator which says: ...
1
vote
0answers
73 views

What''s the “earliest” place one can set an environment variable during Linux boot process?

I know I can set a variable in a shell startup file, but the thing is, I am trying to set up a POSIX-compatible environment, and a POSIX shell does not parse any startup files other than the one ...
1
vote
0answers
25 views

What is the BLAB_MEM environment variable in Windows?

On my Windows Vista system I see an environment variable called BLAB_MEM, with the value "-Xms128M -Xmx512M". This variable name is shown under both the system and user variables. That value ...
1
vote
0answers
138 views

List repositories from multiple projects in Trac using mod_python

Currently working on a customized webpage that shows the available projects I have in Trac (1.0.1). I am using mod_python to connect the trac interface. I found a standard page for this, but it didn't ...
1
vote
0answers
431 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. ...
1
vote
0answers
104 views

Windows: Monitor Access to Environment Variables?

Programs (on Windows) often expect certain environment variables to be set. However, the name of these environment variables is often not well documented. E.g.: Does Eclipse expect %MINGW_HOME% or ...
1
vote
0answers
329 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 ...
1
vote
0answers
781 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 ...
1
vote
0answers
286 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 ...
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 ...
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
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
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% ...
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 ...
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
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
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
0answers
45 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
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 ...
0
votes
0answers
106 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
0answers
32 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, ...
0
votes
0answers
239 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
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
54 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
0answers
62 views

SETX not working when run as service

I have a service which invokes a batch file which runs a Powershell script which calls SETX to update an environment variable. The environment variable gets changed, but the change apparently isn't ...
0
votes
0answers
500 views

How to set environment variables in /etc/environment?

I'm using Debian Jessie. I want to set some environment variables that will persist across reboots and work in non-shell environments. I've set the following in /etc/environment: SECRET_KEY=xxx ...
0
votes
0answers
67 views

In which zsh configuration file should environment variables like PATH be set/exported

The answer to this question for bash in Environment variables in bash_profile or bashrc? is basically that it should be done in a file that is only executed for login shells so that overrides of ...
0
votes
0answers
140 views

how to set environment variables in VM Fusion Windows 7

I have installed windows 7 just fine via VM Fusion, but am having trouble setting environment variables, as i cannot edit files on the C: drive. A specific example is the trouble i'm having with R ...