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
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
20 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
12 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 ...
1
vote
1answer
23 views

Grep fails to find sequence after assign to variable

I run: awk -F ',' '{print $2}' data.dat | sort | uniq | tr '\n' ',' | grep "*)>nS4XkrlH @XUL" and the sequence is located in results. Then I run b=`awk -F ',' '{print $2}' data.dat | sort | ...
0
votes
0answers
18 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
1answer
21 views

Java runtime environment path issues

I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem. So I went ahead and uninstalled all the various versions of Java I'd ...
1
vote
1answer
23 views

Are User-specific environment variables in Windows 7 stored locally or in the profile

I have some libraries like Qt and OpenCV which are installed locally on several machines. The environment variables such as QTDIR and QMAKESPEC are user environment variables. Will these be stored ...
-1
votes
1answer
39 views

Wrong environment Settings invoked in Commands

Getting wrong and extra pathnames in error messages using "For /D", "dir" and "if exist" commands when running the non-Powershell batch code to elevate UAC privileges code here. This has been noted at ...
1
vote
1answer
27 views

Effect of Windows environment variables (especially OMP_NUM_THREADS)

Does setting OMP_NUM_THREADS=1 in the global environment variables (via Control Panel -> Sytem -> Environment variables) affect only programs run from the command prompt or all programs?
2
votes
2answers
49 views

Store command output in variable

If I do z='ls' and then echo $z it will print the directory I listed, but without newlines or formatting. I assume lack of colored formatting is impossible to get around, but would it be possible to ...
2
votes
1answer
48 views

Dynamic variable substitution in PATH

I want to run different versions of Java on the same machine (Linux Mint 17) with default to Java 7. So I put this into /etc/environment: JAVA_HOME="/tools/java/java7" JAVA7_HOME="/tools/java/java7" ...
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
29 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
1answer
22 views

Difference between su and su -c (environment variables?) when running db2?

When I type this: su <user> -c "/home/<user>/sqllib/bin/db2 catalog tcpip node <dbName> remote <ip> server <port>" I get this error message: SQL10007N Message "-1390" ...
0
votes
1answer
147 views

How to set environment variables for a terminal application on OS X Yosemite?

I am trying to make ABD tool to work in my terminal and I found that the likely reason why I get the command not found warning is that I need to set the environment variable's path. I found that I ...
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 ...
2
votes
2answers
31 views

How to shrink the prompt of a long path using environment variables in OS X (extend '~')

I've seen this working with the gemset environment, I would like to reproduce it now that I need to work on a very indented directory path. Basically I had a $GEM_HOME environment variable pointing ...
1
vote
1answer
119 views

How to include environment variable in bash line CURL?

Trying to get Transmission to notify when download complete. This works: curl -u <my-api-token>: \ -X POST https://api.pushbullet.com/v2/pushes \ --header 'Content-Type: application/json' ...
0
votes
0answers
33 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
1answer
31 views

Where do the variables of a new BASH shell come from?

I am puzzled as about how environment variables work. From what I am aware, for a new process to have some environment variables, its parent must have issued export. But what about all the variables ...
2
votes
1answer
22 views

Unset bash variables referring to non-existent directories

I have a file which is sourced by an application, adding relevant directories to $PATH and $LD_LIBRARY_PATH. This is fine, but it results in somewhat excessive pollution of the $PATH and ...
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 ...
1
vote
1answer
45 views

I changed my system path in system variables, how can I bring it back to what it was?

I've been trying to unlock my htc device's bootloader and I couldn't get a fastboot command from the cmd to work. I had tried everything and eventually I found this site which said that I just have to ...
3
votes
1answer
18 views

In bash, declare an alias that depends on current variable content

I would like to declare an alias in my .bash_profile that will use the content of a variable when the alias is used and not when it is declared. Ex: alias goSomeWhere="cd $BASE/somewhere" When ...
0
votes
1answer
20 views

Java Path Set Issue

I am using win server 2008, Trying to set java path. I set it in both user variables and system variables. yet, I couldn't access java. But when I check in java installed path It is working fine ...
2
votes
2answers
28 views

2 java versions and unable to change environment variable

I am working on Mac OS 10.9 I did not know that macs come with java by default. So I installed my own java(version- 1.8.0_20) Now here is the confusion - I have a java in the following locations - ...
0
votes
1answer
48 views

Git is in the PATH, but is not being recognized as a command

I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path environment variable, as you can see: C:\Users\Ult>where git ...
2
votes
1answer
17 views

Call “Environment variables” dialog from Win-r

In Windows, if one presses Win-r, and types there, e.g. control the control panel opens. Is there a Win-r shortcut for environment variables dialog?
0
votes
1answer
31 views

set environment variable from batch

When I set a environment variable envir using setx command, It seems to not actually 'set' in environment. setx envir "windows" if 1==1 ( setx envir "unix" ) echo %envir% set The set command ...
0
votes
1answer
61 views

Is there a way to “source” a sh script from the fish shell?

I like to put many of my environment variable definitions in the .profile script. If I am using a POSIX-compatible interactive shell like bash, I can use the source command to re-export the ...
0
votes
1answer
51 views

Windows Environment Variables

I am very confused on what is incorrect with my Windows Path variable. In my System Settings I have the System Variable Path set to: ...
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 ...
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' ...
1
vote
1answer
45 views

Are there rules to Windows 7 Environment variable names?

On my Windows 7 computer, I created some custom user environment variables (right-click computer > properties > "Advanced system settings" > "Environment Variables..." > "New..." for "User variables ...
1
vote
1answer
43 views

Installing Cygwin with MinGW in windows

I wanted to install Cygwin in the C:\Cygwin (which is shown by default during installation). I have the C:\MinGW installed in that directory too(I mean C:\) Will this cause any problem when I install ...
0
votes
1answer
65 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 ...
0
votes
2answers
67 views

How to configure AUCTeX in Windows 7?

Help me, please! This is my 3rd attempt at a clean install of EMACS/AUCTeX in Windows 7. I'm following Joachim Schlosser's installation guide to AUCTeX but I'm getting confused at least on 2 points. ...
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
1answer
31 views

Is there a way to reverse lookup which executable is being called?

I have multiple JDK's installed on my machine and I'm running on a system that has a pretty long path environment variable. Is there a way to see what my call to java resolves to? I'm looking for ...
1
vote
1answer
35 views

Add the path of a program to environment variables and have it as Command Line commands

I use gpj tool to communicate with my smart card reader. It works fine. For example when I want to list the applets that reside on my card I use parameter -list and I have the below out put : E:\RCII ...
0
votes
1answer
26 views

is it possible to allow only root user to create Environment variable?

We know , Linux world right now watching on Bash bug with environment variables. So , I just want to know If we can make something like only root user can create environment variables and all other ...
1
vote
1answer
46 views

Unable to find source of environment variable

So I did the mistake of removing an earlier version of Vim manually on Windows without going through the "Uninstall Program" dialog. The result left me with the enviroment variables of "vim" and ...
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 ...
1
vote
2answers
41 views

Different Execution the TEMP Variable and TMP in run window

Why does the environment variable "TEMP" work without a percent Sign in Run window, but "TMP" variable doesn't work? I know the "TMP" Variable works with "%TMP%" in Run window. This is my Environment ...
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
19 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
1answer
71 views

Windows - How to use user defined environment variables in system path

As the question states, I have some variables defined in my user environment in windows 8.1. Now I want to have something like this as a path: C:\Program Files (x86)\Intel\iCLS ...