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
168 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
240 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
57 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
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
598 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
42 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
71 views

php is not recognized as an internal or external command although it is available in commandline

this is somewhat of a tricky question when it comes to "where should I place it?", but I assume a general problem behind it, which is why I am putting it on superUser. I have a Doctrine script which ...
1
vote
0answers
102 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
40 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 ...
1
vote
0answers
73 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
211 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
209 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
51 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
52 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
17 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
74 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
83 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
260 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
413 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
234 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
13 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
22 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
13 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
19 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
35 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
30 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
7 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
20 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
34 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
39 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
28 views

When running a program as a Windows 7 service, where does the HOMEPATH variable map to?

I have a program that's being run as a Windows 7 service. In the program, the HOMEPATH environment variable is being used to set the location of a file. Normally, when the program is simply ran at a ...
0
votes
0answers
131 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
21 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
37 views

Windows open command window here doesn't load env. variables

In windows if I right click and select "Open command window here" in a particular folder it works exactly the same way as "Open terminal here" works in Linux. It was working find until I installed a ...
0
votes
0answers
31 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
20 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
140 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 ...
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 ...
0
votes
0answers
9 views

Is it possible to set environment variables in a DE-agnostic manner in X11?

For an example, to set environment variables in Xfce4, I would copy /etc/xdg/xfce4/ to .config/xfce4/xinitrc and add export BLAHBLAH="xyz" in there, but that won't work on Gnome, or KDE, or LXDM, or ...
0
votes
0answers
32 views

path setting appears twice in env output

After an OS version upgrade I have the following strange problem: % port MacPorts 2.3.1 ... % sudo -i # port MacPorts 2.3.1 % sudo port sudo: port: command not found Furthermore, if I do it all ...
0
votes
0answers
25 views

enviroment variable %PROGRAMFILES% with 2 executions

I want to install a program with a batch-file to the Program Files folder. Afterwards I want to copy a folder to the same folder. Here is an example: SET SCRIPT_LOCATION=%~dp0 SET ...
0
votes
0answers
37 views

Broken sudo commands

How to repair sudo to use standard commands? I cannot use any command with sudo.
0
votes
0answers
315 views

'MSIEXEC' is not recognized as an internal or external command

The system programs are not working on my WIN7 64bit system (CMD, PING, MSIEXEC, IPCONFIG, etc). Steps I've taken: %SystemRoot%\System32; is listed in the Environment Variable Path. At command ...
0
votes
0answers
213 views

Problems installing postgresql-9.3.4-4-windows-64 on windows 7

I am trying to install postgresql-9.3.4-4-windows-64 on Windows 7 x64 and keep getting the error message: Error. There has been an error. Unable to write inside TEMP environment variable path. ...
0
votes
0answers
54 views

How do I reset my PYTHONPATH?

Somehow my PYTHONPATH environment variable got emptied, and now I can't import some downloaded modules. I've tried running the following command to reinstall all Python packages, but it didn't set ...
0
votes
0answers
48 views

Weblogic 12 and the CLI

I am working with WebLogic on Fedora 19 and am attempting to use the CLI tools to no avail. It appears these were deprecated as far back as WebLogic 9 however I was assured they are still there and ...
0
votes
0answers
81 views

Idiomatic way to read .env variables in Ansible?

I'm provisioning a Vagrant box with Ansible, and using Benno Joy's MySQL role to setup MySQL (including creating a database and users.) The database name and credentials are stored in a .env file in ...