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
670 views

Set environment Path Windows 7

Trying to add stuff to the system environment Path via batch, vbs or anything really. This used to work in a .bat, but has stopped: setx -m path "C:\addtopath;%PATH%" This used to work in VBS, ...
0
votes
3answers
131 views

How install python when java is still there on the computer?

I need to install python in my computer. I searched some articles on the internet and it says to set the environment variables as follows. set path=%path%;C:\Python27\ So the problem is that the ...
1
vote
2answers
105 views

zsh AUTO_NAME_DIRS doesn't work for certain variable names on OSX

I have a wierd problem with my zsh on my OSX 10.8 (with oh-my-zsh, which I think has AUTO_NAME_DIRS set for me). Normally if I set up an environment variable to some path by export ...
1
vote
1answer
339 views

What is the difference between setting the path via editing /private/etc/paths vs ~/.profile?

I just found out I can edit my PATH by editing /etc/paths or /private/etc/paths, or by putting export PATH=$PATH:/a/path in ~/.profile or one of my other startup scrips. Is there a difference between ...
1
vote
2answers
3k views

How do I create a Python 3.3 environment with Anaconda (& Windows)

I installed Anaconda on my Windows XP machine about a week ago. It came with Python 2.7. I am trying to create a Python 3.3 environment on it. I followed these directions, resulting in downloading ...
1
vote
3answers
10k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
1
vote
1answer
539 views

Exporting bash functions through ssh

So I found a way to transfer environment variables through ssh without having to change neither server nor client: Transferring environment variable through SSH / quoting in bash/sh/csh/tcsh But I ...
2
votes
2answers
881 views

What does // and :: in the values of environment variables mean?

On my Linux machine some of the environment variables contain lists of directories. The directories are separated by :. But sometimes they are separated by ::. Is it just a mistake that should be ...
1
vote
1answer
408 views

How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7? [duplicate]

I'm working on Windows 7. How can I permanently add a new path to the 'PATH' environment variable of the current user? I tried to do so with wmic: wmic ENVIRONMENT where "name='Path' and ...
0
votes
1answer
306 views

How to a sudo command which keeps all environment variables

Example command is as follows, run as a normal user which python /home/me/env/development/python because the PATH environment contains a path that points out to this instance of python (instead to ...
0
votes
1answer
44 views

Why does 'which' give incorrect result?

I am executing on a Ubuntu 12.04 shell the following command: sudo bash -c "echo $PATH; which python" which displays something like ...
-1
votes
1answer
154 views

Visual Studio 2010 installer ignores ProgramFiles environment variables

I am installing Visual Studio 2010 and am wondering why the installer doesn't respect environment variables. ProgramFiles and related variables are configured for the D drive. PS Env:\> dir ...
1
vote
2answers
3k views

Spaces in Linux environmental variables?

Given directory: /media/foo/can haz/bar, I have tried editing bash.rc with: export Foo=/media/foo/can haz/bar export Foo=/media/foo/can\ haz/bar export Foo='/media/foo/can haz/bar' export ...
2
votes
2answers
10k views

On windows 7 admin can't change environment variables and virtual memory,etc

Yesterday I want to set up a web server on my computer.After installing some software(probably MySQL cause the problem,I think),there is an odd problem with my Windows 7. I'm an admin user,but now I ...
1
vote
2answers
393 views

How to add a linux environment variable for different language (PHP or RUBY)

I would like to add a linux environment variable for my differents applications written in PHP and Ruby. Its goal is to differntiate between 'production' and 'development' linux environment. How to ...
1
vote
1answer
2k views

Access/modify the User path variable, not System path

I am trying to make an installer for a program and my workplace doesn't allow us 'regular' users to modify the system environment. In an effort to get around the restrictions, I'm trying to add my ...
0
votes
1answer
348 views

Using SETX to configure a pc's LM_LICENSE_FILE environment variable

Various Windows applications such as Matlab, Altair, Nastran etc use license servers, which require a system environment variable - LM_LICENSE_FILE, to be updated which would take a value along the ...
1
vote
0answers
110 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 ...
-5
votes
2answers
75 views

Environment variables description [closed]

Explain what are environment variables, what they do, with what they interact in OS. Are Linux environment variables different from Windows? Thanks a lot!
1
vote
1answer
2k views

How to fix $PATH environment on Mac OS X?

Recently, I tried to install ruby and I somewhat messed up with variable environment. As a result, I am not be able to use paths in .profile or any other path files that I set up before (I tried in ...
6
votes
3answers
340 views

Is the HOME environment variable normally set in Windows?

To be clear, I'm not asking can it be set or how to set it, I'm asking is it already set at all on a new copy of Windows. The ideal way to find this out would be to install a fresh copy of Windows on ...
0
votes
2answers
211 views

In Win7 can both User and System “TEMP” variables point to the same directory?

I know i can do it, but is it a bad practice? It will look like this: (System)TEMP -> E:\TEMP (User)TEMP -> E:\TEMP (System)TMP -> E:\TEMP (User)TMP -> E:\TEMP
0
votes
2answers
689 views

bash: variable name not being expanded with Tab completion

On a remote computer with bash version "3.2.51(1)-release" (OS: SUSE Linux Enterprise Server 11.1 (x86_64)), I could not do a usual tab completion with variable name. for example, I'd like to type: ...
0
votes
2answers
528 views

IF statements in batch files

I am currently using Cruise Control to schedule 'builds' for various internal websites. I use batch files to kick off each of these 'builds' (build meaning a specific webhelp output). Let's say ...
0
votes
1answer
742 views

ls not using the LS_COLORS environment variable

I am using the configuration below for ls. I have changed the $LS_COLORS variable to display directories as cyan colored using di=01;36. However, when I run ls, directories show in purple. If I run ...
-1
votes
1answer
1k views

How to set environment variables on Windows 8 [duplicate]

Can anyone tell me how to set environment variables for Windows 8? I can't figure out how. I've tried following instructions for Windows 7, but they don't apply to Windows 8.
5
votes
3answers
6k views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
4
votes
1answer
437 views

How can I obtain a 'desktop' cmd.exe subshell environment when SSH'ed into cygwin?

I've successfully configured SSH under cygwin, so I can SSH into my windows user account and land at a bash shell in cygwin. This is great. However, I have a python program that I'd like to run in ...
2
votes
3answers
4k views

Using Environment variable in registry for command

I'm making a program which requires arguments from context menu (click a file and invoke my program with the file name as parameter). I'm trying to add a registry key to ...\shell\myThing\command. ...
3
votes
2answers
5k views

How to run a symlink pointing to an executable in terminal (Linux)

I installed NodeJs on an Ubuntu machine, and the package have been installed as nodejs. Now, to run it as node, I created a symlink: sudo ln -s /usr/bin/nodejs /usr/bin/node This will work if I ...
0
votes
3answers
477 views

Is there any way to encapsulate bash functions?

I'm writing a simple script script.bash that is supposed to export some variables environment, to use it in my current session I have to source it $ . script.bash script.bash function fun1() { ...
2
votes
2answers
80 views

Change environment variable for Mac 10.7

I would like to set the PATH on my Mac 10.7. So in /etc/launchd.conf I wrote: setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/:/usr/local/sbin/ and I restarted Mac. However when I write ...
0
votes
1answer
637 views

How to set path variable in Windows Server 2003?

Can someone help me figure out how to set a variable path in Windows Server 2003? I am trying to do the below code which is not working. Update: My issue might actually be that the CURRENT PATH ...
0
votes
2answers
371 views

Creating folder alias like %SystemRoot% in windows 7

I'm trying to create a shortened path to a directory that is nested in a lot of directories (ie C:\Users.......................................\TestApp\Data\32\TutorialData which is 80+ characters to ...
14
votes
6answers
11k views

Why won't my Windows 8 Command line update its path

I needed to add a new entry to my PATH variable. This is a common activity for me in my job, but I've recently started using Windows 8. I assumed the process would be similar to Windows 7, Vista, ...
0
votes
0answers
18 views

rvm cluttering up my environment vars

I was trying to see a list of my environment variables in Bash (Mac Terminal) by typing set. But when I do, I am overwhelmed by a bunch of functions apparently defined by RVM. Is this supposed to ...
0
votes
1answer
360 views

Installing Python wrapper for METIS: Cannot locate METIS_DLL shared library

I am planning to use Metis for drawing some networks and graphs using Python 2.7. I downloaded Metis from here. I compiled and installed the source code without any problems. For installing the Python ...
1
vote
2answers
56 views

Creating a system variable

I would like to get some suggestion regarding adding an entry to the PATH variable under System Variables. Whenever I install a program on my windows machine, I end up adding the path to the program ...
0
votes
1answer
376 views

How to resolve conflicts with different apps relying on different PATH variables?

I have two programs that rely on some .dll files. (Wikidpad and Microsoft WebMatrix2.) I was using WikidPad for a while without issue. After I installed WebMatrix2 (which uses IIS Express, I ...
4
votes
1answer
17k views

Recover accidentally deleted Path environment variable

I use a Windows 7 x64. I just accidentally deleted my user path environment variable and was trying to recover it. I'm glad I found what I really need here. But I don't understand what exactly ...
2
votes
2answers
171 views

Restore 'where' to PATH? [duplicate]

I'm trying to find out where programs are installed, but Windows can't find where! Trace: C:\Documents and Settings\apenneba>where java 'where' is not recognized as an internal or external ...
0
votes
2answers
75 views

Inform the User when a specific file updates or changes (SOLVED)

The other day I tried to make a batch file that will tell the user the Contest of a file when a specific text file updates/changes here's my code so far it doesn't work for some reason :S @echo ...
8
votes
1answer
6k views

Suppressing the “Picked up _JAVA_OPTIONS” message

I'm using _JAVA_OPTIONS to set some defaults for Java on RHEL. It works fine but now every time I start java I get the following message Picked up _JAVA_OPTIONS: -foo -bar -baz is it possible to ...
1
vote
2answers
512 views

How can I add a folder containing a semicolon to the Windows PATH?

I noticed that the semicolon ; is a valid character for Windows (NTFS) file and directory names. The semicolon is, however, used as element delimiter for the PATH environment variable. Say I have a ...
1
vote
2answers
147 views

Where a bash variable (proxy) is defined

I have a problem with wget and I've discover that my proxy settings is wrong: $ env | grep "proxy" http_proxy=http://213.181.73.145:80 https_proxy=http://213.181.73.145:80 So, when I try to ...
1
vote
1answer
341 views

Shell script detecting errors from command called by script

I am calling applications from my shell script, which performs a number of important steps in sequence, one step being below: for database in $( echo 'show databases;' | mysql ...
0
votes
1answer
70 views

Is it possible to make the environment ignore $http_proxy env variable for certain urls?

In Firefox, I can set a proxy for all URLs except certain domains. Is it possible to do the same with the http_proxy environmental variable? That is, could I set another variable to exclude certain ...
1
vote
1answer
334 views

Why would the TEMP environment variable contain more than one path?

A colleague's %TEMP% environment variable has this value: C:\Users\his.name\AppData\Local\Temp; C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v78\runtime\win32; C:\Program Files ...
2
votes
3answers
11k views

%USERPROFILE% variable not working

If I try to create files in the command prompt using the commands mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\recovery mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\mods my computer ...
0
votes
1answer
669 views

Switch characters in MAC address from a variable

This batch is used with a few other files as start-up scripts as a part of the Symantec Ghost Cast re-imaging process for Windows 7 we are about to undertake. Together they totally automate the entire ...