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
31 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. ...
2
votes
1answer
25 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
2answers
39 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
31 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
36 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
45 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 ...
2
votes
2answers
86 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
13 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
20 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
43 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
44 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 ...
0
votes
2answers
70 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
47 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
46 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 ...
1
vote
1answer
77 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 ...
0
votes
0answers
28 views

A shortcut in Windows 7 does not expand an environment variable if it is not given a argument

I have the following line for the Target: textbox under the Shorcut Properties page: "C:\Program Files\gVim\gvim.exe" --servername %CYGWIN% --remote-silent-tab $* The shortcut expands %CYGWIN% ...
0
votes
2answers
50 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
35 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
55 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
15 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
61 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 ...
1
vote
2answers
51 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
69 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 ...
0
votes
2answers
102 views

Add a directory and all subdirectories to the PATH variable with a single entry

I've got a directory in my home folder in which I place command-line software (CMD_Software). I put each piece of software in its own directory within CMD_Software in order to avoid clutter. I would ...
0
votes
2answers
53 views

Environment variable not being read

I am running Ubuntu 12.04.2 LTS and am having problems with getting a command to execute. I have set up the variable in /etc/environment which looks like this: FEDORA_HOME="/var/lib/fedora" ...
2
votes
2answers
70 views

Unable to get profile variable using ssh

Unable to retrieve the profile variable using ssh. server2 ==> user apptst ==> bash profile has $APPHOME variable. Was trying to retrieve the value from server1 using ssh but failed. Used options ...
1
vote
1answer
133 views

Setting user environment variables is very slow

I'm using the GitHub for Windows application. Lately I've noticed that starting a PowerShell console from within the GitHub application takes ages. After some digging I've found that the slow command ...
1
vote
2answers
221 views

How can I store encfs6.xml in another location (and still make it detectable)?

How can I make encfs4win search for the encfs6 file in another location? I tried modifying the encfs_mount.cmd file at the end, like so: set ENCFS6_CONFIG=c:/test1/.encfs6.xml %pathtoencfs%encfs ...
1
vote
2answers
135 views

Set three PATHS in Ubuntu

I've been at this all day now, reading every single type of different way to add these lines. It resulted in me being locked out of my profile because I set the .profile wrong. So I'll just ask the ...
0
votes
0answers
96 views

gstreamer can't find plugin DLL

I'm trying to install a custom gstreamer plugin on Windows 7 x64. I've got the compile plugin as a .dll. Gstreamer resides in: C:\gstreamer-sdk\0.10\x86_64\ The lib directory where I placed the ...
0
votes
1answer
17 views

Auditing use of system vars in Win7

I was wondering if there is a way to mount some sort of a hook on a system variable in Win7 which would allow me to trace which application and at what time referenced it. I would like to know this ...
0
votes
0answers
84 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. ...
0
votes
1answer
55 views

Ubuntu environment setting for GUI session (or making the same with terminal)

I'm using Ubuntu 10.10 When I log in using normal GUI desktop, it seems that the environment is not the same with the terminal. I modified $PATH and other information in .bashrc. But, this doesn't ...
1
vote
1answer
67 views

What is the significance of the 'Case' in PowerShell's Env: variables?

Why are some of Windows environmental variable names in Proper case, while most are in UPPERCASE? What is the reason that windir alone is in lowercase? Get-ChildItem Env: Sample: Name ...
2
votes
1answer
41 views

Environment variable's address is changing?

Don't ask why I am not posting this at Stack. So I have this small C program. It returns the address of the environment variable specified in argv[1]. #include <stdio.h> #include ...
2
votes
0answers
74 views

Echo string in tcsh with special characters escaped

Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash: % # Create a variable containing a tab character % ...
0
votes
1answer
62 views

Zsh alternative to bash's quick assignment and inheritance trick

There's a trick available in bash allowing you to set environment variable for child process and run it in single line, retaining original values of variable in the shell. For example, in order to set ...
1
vote
1answer
60 views

Does Cygwin import user variables or just system variables?

I can see windows system variables in cygwin with echo $MYVar However, user variables don't seem to work. I'm referring to the variables you set in system properties->advanced->environment ...
4
votes
1answer
95 views

sudo -E not passing all variables

Reading the man pages I expected sudo -E to pass all environment variables to the subshell, but I am not getting the expected results. As expected, awesome: $ export ...
0
votes
2answers
48 views

Can I change the environment on a per-process basis on Windows (like on Unix)?

On Unix operative systems I can start a process with additional environment variables like this: $ DEBUG=1 VERBOSE=3 python myscript.py Does the Windows CMD have an equivalent for this? I'm stuck ...
1
vote
1answer
35 views

Escaping a directory in a $PATH-like list

I'm developing a wrapper for LibGit2, the Git library. And I come out with a problem: Many GIT functions accept path lists, that is, a string composed of a series of paths separated by a token, that ...
0
votes
0answers
29 views

Setup remote machine environment variables Ubuntu

I searched on net regarding the issue but was unable to find any specific solution to the issue. The problem being: I am not able to set environment variables of a remote machine through Jenkins ...
0
votes
1answer
142 views

Is it possible to use a Windows environment variable in a Chrome bookmark?

I use a software library whom I often refer to the documentation pages. Those are html pages, therefore I created several bookmarks to quickly access to them. However, when the library version ...
0
votes
0answers
46 views

Set windows system enviroment variable to use the enviroment variable %username%

I'm trying to set a system environment variable to use use the current logged in username. I'm tried the below using the username environment variable but it doesn't work. I'm using "setx /m" on ...
0
votes
2answers
97 views

Root set environment variables

I have a small bash script which downloads a critical file, opens an SFPT connection, puts the file and closes the connection. As you can imagine, my script has some username and password information ...
0
votes
2answers
269 views

Using Call SET to Designate a Variable in a Dos Batch “For” Loop

Trying to use the Call SET to set a variable in a windows batch file loop. Not working but here is the input / output file. trying to assign Var C to equal 1. Batch file: @ECHO OFF for /f ...
0
votes
1answer
29 views

Environment auto-install

When I work, I often have to switch computers or virtual machines which means that every time I switch, I have to set up my (Linux) environment again. My question is the following : Is there a tool ...
5
votes
1answer
402 views

Cannot resolve %windir% / Cannot modify %path% or %path% being reset on boot

See Updates 3 and 4 below for how the issue has evolved My computer (Windows 7 x64, Lenovo Thinkpad T530) is having an issue resolving %windir%. After boot-up, everything works fine. At some ...
0
votes
2answers
268 views

Home directory variable for Windows 8

Is the home directory variable for Windows 8 the same as it was for Windows 7, %UserProfile%?
1
vote
2answers
71 views

Cygwin not cooperating

This is gonna sound very simple for you guys but I've never installed cygwin and the tutorial I used gave no contingency plan for when something goes wrong. I added the path C:\cygwin\bin to my Path ...

1 2 3 4 5 7