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

2
votes
0answers
304 views

Inno Setup ChangeEnvironment not working

I am using InnoSetup to create an installer but the Environment is not refreshed after the installation. The user has to restart the computer in order for the Environmental Variable to be refreshed. ...
2
votes
0answers
372 views

Task Scheduler program writes to literal folder named %LOCALAPPDATA%

I have a .NET executable (that I created) which uses Microsoft's Active Directory Service Interfaces (via System.DirectoryServices.AccountManagement) to do LDAP queries. Internally to ADSI, it ...
2
votes
0answers
66 views

Stop Windows %tmp% environment variable using short file name

I have a C++ application that is using the %tmp% variable (from the GetTempPath() function). Unfortunately there is a bug where it can't handle the tidle that may appear in the user's local temp ...
2
votes
0answers
48 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
639 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
5k 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
108 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
139 views

.tmux.conf: How can I conditionally set a color variable?

Sometimes I use a light-colored terminal, sometimes a dark one. I export a THEME environment variable to conditionally set colors in my .bash_profile and .vimrc. I'm trying to do the same in my ...
1
vote
0answers
366 views

How to recover from PATH being truncated to 1028 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 ...
1
vote
0answers
128 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
92 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
254 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
263 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
58 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
55 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
21 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
86 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
85 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
273 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
532 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
242 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
16 views

How to set truly global environment variable?

I am working on a Mac and I tried setting them in /etc/launchd.conf and tried running a Java program from shell and the same program from Eclipse. I get two different outputs for System.getenv() in ...
0
votes
0answers
17 views

Starting a chroot and drop into nonprivileged user home

I need to (temporarily) jail a non-privileged user. I tried something like: sudo chroot --userspec=mcon:users /wherever/chroottarget /bin/bash -i This almost works, but it doesn't set env vars ...
0
votes
0answers
29 views

Can the %PATH% be recovered without any Restore Points?

I just found out that my PATH system variable in Windows is nearly empty (it has only the path to the ExtFS tool - I installed that one recently , and I'm guessing it overwrote the Path instead of ...
0
votes
0answers
16 views

How do I set $LESS invocation options in a lesskey file?

I'm trying to use less's lesskey-file support, as described in the manpage: KEY BINDINGS You may define your own less commands by using the program lesskey (1) to create a lesskey file. This ...
0
votes
0answers
34 views

cwrsync on Windows 7 and setting PATH variable

The rsync command rsync.exe -av -riz -e "ssh -p 2222 -i d:/vagrants/rails-dev-box/.vagrant/machines/default/virtualbox/private_key" --delete --delete-excluded --exclude ".git" --exclude "cwrsync.*" ...
0
votes
0answers
165 views

The Voodoo XP error you cant fix . RDP / MSTSC.exe - cannot find <LANG_NAME>\mstsc.exe.MUI

I keep getting the error cannot file C:\Windows\System32\<LANG_NAME>\mstsc.exe.MUI I do have this path C:\Windows\System32\US_en and this one too C:\Windows\System32\en and I made ...
0
votes
0answers
37 views

Is there a window manager that allows you to set environment variables

My problem here is that I often stays logged in for a considerable amount of time and the usual methods of setting environment variables doesn't work in a satisfactory way: If I set environment ...
0
votes
0answers
57 views

Set IIS to run with environment variable

I'm trying to run IIS with the COMPLUS_ZapDisable environment variable set to 1. Per this link (which shows how to do it for regular exes), I hope this will allow me to load non-optimized versions of ...
0
votes
0answers
26 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 ...
0
votes
0answers
25 views

How to acchieve what http_proxy environment variable does for all traffic leaving the system?

I set up a trafficserver (5.1.2) instance as HTTP cache on a machine in my local network and now I'm looking for a way to enforce the usage of the proxy for HTTP requests to the outside world on port ...
0
votes
0answers
35 views

Centos server change environment PWD

I've a Centos Linux 6.5 server. If in the root (/home/wwwuser/) of this server I execute phpinfo.php, I notice that under "environment" PWD is set to /home/wwwuser/test/. I tried to rename that folder ...
0
votes
0answers
33 views

Server 2012 R2 Folder Redirection via Enviroment Variable

Is it possible to redirect documents using enviroment variables in server 2012 r2? For example, I have an application that is writing files to ...
0
votes
0answers
33 views

environment variable in registry on windows 7 x64

Im playing around with this guide for creating a default profile on Win7 and can't seem to get it working correcting: ...
0
votes
0answers
15 views

Enviroment modules for Windows?

I am starting to learn how to use modules (http://modules.sourceforge.net/) on a hpc server and I like this very clean solution. Is there any tool like modules for windows? I am just interested of ...
0
votes
0answers
29 views

Batch conditions and variable

I have a question about variable and batch windows. The main goal is : I have files in directory (pattern 0? with ? a number between 0 and 9). First I create a %%nf.bat (filename of each files) ...
0
votes
0answers
93 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 ...
0
votes
0answers
68 views

max length for PATH environment variable

Using Windows 7 x64 I've noticed that if you add too much stuff to your PATH environment variable it stops working. There appears to be a max length for the PATH environment variable and I'm curious ...
0
votes
0answers
12 views

VIDLE does not work path

I have Python 2.76 on Windows 7. Canopy, pyserial and now VIDLE I have 64 bit processor so I checked that I chose 32 bit for all the software as the Arduino tutorial I want to do suggested. VIDLE ...
0
votes
0answers
27 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 ...
0
votes
0answers
57 views

Windows path and semicolon

In Windows 8.1 I have an environment variable LATEX equal to C:\Program Files\MiKTeX 2.9\miktex\bin\x64 and the path variable set to %JAVA_HOME%\bin;%ANT_HOME%\bin;%LATEX% The problem is ...
0
votes
0answers
107 views

msys2 shell uses different PATH depending on launch

When I start the msys shell via the created shortcut, it executes cmd.exe /A /Q /K C:\msys64\msys2_shell.bat and it uses the current PATH environment variable. But when I start ...
0
votes
0answers
22 views

Why does system PATH seem to be cleared?

I have this strange situation at work where me and some other guys regularly have problems with our system PATH environment variable. Whenever that happens, we have problems like shortcuts that stop ...
0
votes
0answers
307 views

ERROR: Invalid syntax. Default option is not allowed more than '2' time(s). Type “SETX /?” for usage

I am trying to set my environment variable for my system using setx PATH="%PATH%;c:\PROGRA~2\Vim\vim74;" command in cmd. I get ERROR: Invalid syntax. Default option is not allowed more than '2' ...
0
votes
0answers
26 views

How to tell whether machine is on AD Domain when running as SYSTEM

I have a batch script run as the SYSTEM user, and I need to find out whether the machine is on an AD Domain or not. I don't know, or need to know, the AD Domain name, just whether it's on any AD ...
0
votes
0answers
40 views

Clean Mavericks Install: Bash and Environment Defaults?

Broadly: what are the default files in play on a clean OS X install when using environment variables and bash? What derives from root, and what from the local user? I always get turned around on ...
0
votes
0answers
39 views

Why am I getting conflicting results when checking Maven version in Windows PowerShell and cmd64 (Environment variables issue)

I'm looking at Maven for the first time, trying to get everything up and running. I've been going through the tutorials here and up until now everything has been going smoothly. I've added all the ...
0
votes
0answers
8 views

Unix environment variables for Unix-derived apps in Windows

My problem is that cross-platform apps initially written for Unix/GNU+Linux trash my Windows filesystem by placing files wherever they can. In most cases this can be solved by setting environment ...
0
votes
0answers
8 views

Display variable for headless machine to avoid display errors

I'm running some Python programs on a compute cluster. A package I'm using is still in development and isn't very friendly for real work environments...such as the use of: import matplotlib.pyplot ...