The environment-variables tag has no wiki summary.
4
votes
1answer
46 views
1024 limit with Environment Variable
Is there a way to override this limit ? I am trying to set environment variables using setx command, such as follows
setx PATH "f:\common tools\git\bin;f:\common
tools\python\app;f:\common ...
1
vote
1answer
30 views
Environment variable set in batch isn't expanded in shortcut
How can I make my environment variable (set in batch file) visible in application executed right after setting this envvar?
Here's the scenario that I use:
In my external script (not quite ...
0
votes
2answers
23 views
Variable Names Between Called Batch Files
Let's say I have two batch files, foo.bat and bar.bat, that are located like so:
root\foo.bat
root\grub\bar.bat
Let's also say that both files contain a line that sets a variable, like so:
set ...
0
votes
1answer
21 views
Path Variables Inconsistent in Control Panel vs cmd.exe
First is what the Environment Variables window under System Properties tells me is under "Path".
When I do echo %PATH% on cmd.exe I get the second. All my node.js install isn't working :\
...
1
vote
0answers
18 views
Setting proxy via http_proxy on Mac
I am using an HTTP proxy on MacOS 10.7 (which works for Safari.app, when set in the system preferences). I'm now trying to set the proxy for command-line applications using the $http_proxy environment ...
1
vote
1answer
30 views
Copying Environment Variables in Windows XP
How can I copy the value of an environment variable into another environment variable? I'm updating a DOS batch script for use on Windows XP. Let's say that I have environment variable FOO, which ...
1
vote
1answer
13 views
Gentoo Linux global environments for root
I'm confused with setting variables in /etc/env.d directory. When I write "echo $PATH" from user - it's print me all variables that set it myself. But from root I see one... Where should I set ...
0
votes
1answer
28 views
Shortcut target maximum character exceeded (Windows 7 )
Is there a way to manage the limit of character in target in shorcuts (windows) ?
I need to add more commands in a target (to set env variables) and I can't!
0
votes
1answer
33 views
Getting man path through Vim
So, I've set up Vim as my default man viewer. I also have NERDTree starting up automatically - but I could really do without NERDTree showing the location the man pages every time I check man.
I've ...
1
vote
0answers
60 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
1answer
31 views
What environment does an application run in if started via desktop shortcut?
I have noticed that the environment variables I export in my .profile or .bashrc files are not available to applications started via a desktop shortcut. At least to my IDE.
They are available if I ...
2
votes
1answer
34 views
How can I add directories to the PATH only for instances of CMD.EXE in Windows 7?
I don't want to modify the system path in Windows 7, or the user path either.
But when I start up a Command Prompt (cmd.exe), I would like the path within the command prompt to be modified to include ...
0
votes
1answer
107 views
Why does windows-xp setting environment variable to %USERPROFILE% return the wrong path
I am trying to set HOME to be %USEPROFILE% for the currently logged on user. However, creating a system environment variable HOME and setting to and setting it %USERPROFILE% does not seem to work. ...
0
votes
2answers
44 views
Virtualenv for bash
I really like virtualenv when working with python code and am wondering if there existed some tool which could emulate some of it when working in bash.
What I want is some cleanly reverseble way of ...
0
votes
0answers
75 views
PATH edit does it persist permanently? [closed]
Possible Duplicate:
Difference between .bashrc and .bash_profile
What are PATH and other environment variables, and how can I set or use them?
I installed node.js and now i am unable to ...
2
votes
1answer
101 views
where is %username% variable defined?
I just installed Windows XP in my virtualbox on windows 7 host. I can't change the username environment variable:
USERNAME=Owner
I successfully changed the variable USERDOMAIN because it is defined ...
0
votes
2answers
84 views
how do I add global Environment Variables in Gentoo?
I know they get read from /etc/env.d/ but I tried adding in my own file in there (00example) with a single env variable but they aren't picked up after either env-update.
How does a user declare them ...
1
vote
1answer
37 views
How to check whether an environment variable is read only or R+W?
How to check whether an environment variable is read only or R+W on linux system?
As an example BASH_VERSINFO is readonly. do i need to check manual?
Any other option?
0
votes
0answers
38 views
Prevent Windows System %PATH% from being prepended to user %PATH?
I know how to set system or user specific environment variables:
Now, the problem is that the PATH variable is treated such that the value you enter for the user PATH will be automatically appended ...
1
vote
0answers
45 views
Why my $PATH is not inhereted by the invocked bash? [closed]
I work on an AIX system where I have no administrator privileges. It has several shells installed, default being tcsh. I am not allowed to change the login shell. Usualy I start my session from exec ...
1
vote
1answer
20 views
Change $HOME for program generated files
I despise all junk that programs generate in my home directory; I'd like to see this stuff placed in $XDG_CONFIG_HOME and $XDG_CACHE_HOME.
However, there are too many programs to configure and most ...
2
votes
2answers
147 views
Is it possible to “declare” a windows cmd-file (batch-file) as 32 bit?
Background:
We do quite some scripting and little helpers with batch files (xyz.cmd) at work. Windows 7 is only now starting to become widespread here, and obviously, we hit the problems associated ...
0
votes
1answer
35 views
How to evaluate environment remote variables in SCP?
Is there a way to have environment variables on a remote host evaluated when using SCP?
For instance, let's say I have $FOO= /mydir on host A; how would I do something like:
scp ...
1
vote
2answers
63 views
Unix Commands are not working
New to Unix, I recently tried to add a $PATH variable in Unix in order to debug my android sdk. I looked up online the directions and tried to follow them as thoroughly as possible. What ended up ...
2
votes
1answer
2k views
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name
I have a batch file which starts the Oracle Services
net start OracleOraDb11g_home1TNSListener
net start OracleServiceORCL
call C:\app\Edifixio\product\11.2.0\dbhome_1\BIN\emctl.bat start dbconsole
...
0
votes
0answers
108 views
set user's PATH variable without admin access in XP
I have two related questions for XP variables; it may end up the same method works for both of them. I as a user want to modify my Path but lack the admin rights necessary to change it. I imagine ...
1
vote
3answers
90 views
Path Environmental Variable errors
So, I am trying to learn java. I installed the JDK and proceeded to write a few programs. Each time, I have to give the path to javac.exe to compile the .java file.
SO, I decided to tweak the %PATH% ...
0
votes
0answers
38 views
Recursive resolution of environment variables in Windows 7
I have defined a fairly lengthy environment variable containing several binary folders, say %myBinaries%.
I'd like to append this to Windows' default path. However, in the GUI, setting:
...
1
vote
2answers
70 views
Set environment variables for non-interactive ssh
Where is the most appropriate place to set environment variables for all (including non-interactive) ssh sessions, and for all users (including root)?
I believe that it may be in a script under ...
3
votes
2answers
46 views
Any quick way to call a directory using an environment variable in Powershell
Say I have a user environment variable named p and it's value is the path where I store my projects.
In Command Prompt you can use them to quickly access a particular directory from anywhere on the ...
1
vote
1answer
36 views
Environment variables won't take effect on Mac OS X
I've been trying back and forth to set environment variables in the Terminal.app but it won't take any effect.
Here's the scenario: With the Terminal open I write
pico .profile
Then in the ...
1
vote
1answer
57 views
Is the “set” command equivalent to defining an environment variable?
If the "set" command on Windows XP is used to set an environment variable in the terminal, why doesn't the environment variable appear in the environment variables list when you go Start -> rt click ...
1
vote
1answer
73 views
Start bash shell (cygwin) with correct path without changing directory
I need to run a cygwin shell script without changing the working directory, from outside the cygwin environment.
If I run just \path\to\bash.exe -c command, then the path is not set correctly and ...
0
votes
0answers
104 views
Windows command prompt seemingly ignoring PATH
I am trying to use a package called virtualenv for Python, which temporarily changes the PATH environment variable to add a certain directory and give convenient access to several executables. My ...
1
vote
0answers
532 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 ...
0
votes
1answer
42 views
Why does set command shows different value of PATHEXT variable than what's in the registry?
I'm on Windows Vista x64.
C:\Users\Piotr>set pathext
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSC
As far as I know value of PATHEXT environment variable is saved in ...
0
votes
1answer
125 views
How can I display the contents of an environment variable from the command prompt in Windows 7?
In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the JAVA_HOME or PATH variables)?
I have tried with echo $PATH, echo ...
8
votes
1answer
901 views
How to reload /etc/environment without rebooting?
/etc/environment is officially the correct place for system wide environment variables. But how can I reload the assignments in this file without rebooting or relogging?
Interestingly enough google ...
0
votes
1answer
41 views
Using a folder shortcut in environment variables
I want to know if it's possible to use a folder shortcut as an enviroment variable element.
I'm using a specific folder layout to organize my programming libraries, similar to the OSX Frameworks ...
1
vote
1answer
48 views
Environment variables don't work
I can't get any environment variables to work besides Java. Here's a picture to show what I mean:
Can anyone help out?
0
votes
2answers
53 views
Is there a cursor-based interface to change environment variables?
I often need to change a small part of long environment variable (especially, e.g., paths), and do it either by pasting the thing into an editor and changing it there, or the equivalent.
Is there ...
0
votes
0answers
62 views
How do you prevent PATH pollution in Windows when using the command line frequently? [closed]
Possible Duplicate:
Best practice for Windows PATH/environment variables managing?
If you use tools at the windows command line frequently, you know the drill. You install tool X. Unless ...
0
votes
1answer
155 views
why or how did my path environment variable disappeared?
an hour ago, after a normal restart, my PATH environment variable just disappeared.
It does not appear in the:
not in System Properties/advanced/environment variables.
nor under "User" and not ...
1
vote
2answers
79 views
LANG=C is in a number of the /etc/init.d/* scripts. What does LANG=C do and why do you need to set LANG=C.
Its not clear what it does or what it contains. I tried greping the out put of set and env to see what C or LANG are set to in other places on the systems. Nothing was clear about how it is used or ...
0
votes
1answer
65 views
Setting system wide environment variable in Ubuntu 8.04 Server
This is my /etc/environment:
HELLO="hello"
Now I check that the environment is being set when connecting via ssh:
ssh foobar@my_host env
And this is the output:
SHELL=/bin/bash
...
0
votes
1answer
31 views
Where is the best place to define environment variables in ubuntu?
I have Ubuntu 10.04. I want to define some environment variables that will be available anywhere, anytime, including from Eclipse. Where is the best place to put them? ~/.bashrc? ~/.profile? ...
0
votes
2answers
116 views
Setting environment variables permanently under GNU-Linux systems
I was using the command export, but it looks that after some time the set variables disappears. What is the easiest way of setting an environment variable forever?
Thanks
2
votes
4answers
199 views
Is there any freeware to manage environment variables in Windows 7?
I am looking for a comfortable editor for all environment variables defined in Windows. The default method to edit them is rather annoying me. Does anyone know something like that?
0
votes
1answer
58 views
Bash not reading env?
The context for this is that I want to read the user's path from xmonad, where the path is modified by whatever's in their .bashrc if applicable.
Here's what I find weird: if I have xmonad execute ...
1
vote
1answer
94 views
Where is %PUBLICDOCUMENTS%? (shell:Common Documents)?
I need an expansion that gives the current location of public documents. %PUBLIC% expands to C:\Users\Public, but I haven't found any equivalent for public documents.
%PUBLICDOCUMENTS%, ...