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
2answers
26 views

Accidently deleted PATH environment variable - how do I get it back?

I had to add the JDK path in the system variables which is under environment variables, but by mistake I deleted the default path which was present in the Path and pasted the JDK path. So how do I ...
0
votes
1answer
25 views

Batch script to take the output of a command and create a variable out of it?

For example, I want to search for a file where /r C:\ "myfile.txt" and then make the output of that command which would be the file path to "myfile.txt" a variable I choose, So then the path to ...
3
votes
0answers
24 views

How to determine whether a folder in %PATH% is required in Windows 7

How can I determine whether a particular folder in the PATH environment variable is used by the system? Recently, some software that relied on the system PATH stopped working b/c another package ...
1
vote
1answer
15 views

Why does 'export foo=1' not get read when I use ssh?

I'm trying to set a remote environment variable explicitly in an ssh command: ssh worker-2 "export OPENBLAS_NUM_THREADS=1; echo $OPENBLAS_NUM_THREADS" Strangely, this prints just a blank line, but ...
-1
votes
0answers
21 views

Deleted environment variables [on hold]

I think I deleted some environment variables by mistake, how can i restore them without losing my computer's data (files) ?
0
votes
0answers
19 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
1answer
17 views

crontab and binaries in /usr/local/bin

I am working in Redhat and have few programs located in folder /usr/local/bin I would like to call from crontab for root user. I thought that by putting binaries in that folder would be sufficient to ...
0
votes
0answers
24 views

Broken sudo commands

How to repair sudo to use standard commands? I cannot use any command with sudo.
2
votes
0answers
39 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 ...
0
votes
2answers
42 views

Two environment variables with the same name

I tried adding an 'Environment variable' with the name "PATH" but I found another entry with the same name. can I change the old one to a different name? I tried openning "GPAC" folder, but didn't ...
0
votes
2answers
23 views

Setting environmental variables for apache user www-data

I want to set the environmental variable GNUPGHOME=/path/to/home for the apache user www-data. I tried setting GNUPGHOME inside /etc/profile with if [ "`id -u`" -eq 33 ]; then export ...
-1
votes
1answer
32 views

Using /usr/bin/env to change directory [closed]

I want to automatically execute commands with the prefix /usr/bin/env $/usr/bin/env composer install (this runs OK) $/usr/bin/env cd public (failed ---> /usr/bin/env: cd: No such file or ...
0
votes
1answer
14 views

Using Environment Variables in an AD Profile Path

When I set a profile in an AD object, I need to use a predefined environment variable, %BUILDID%. So the path would be \SVR-STAFF\Profiles$\%BUILDID%\Administrator.v2 ... But the path doesn't work. ...
0
votes
1answer
30 views

How to set R environment variables on Linux

I call a r script from PHP and it works well. I just call it using this function shell_exec("Rscript play.r"); To do that I had to make setting in environment variables in Windows to the R ...
0
votes
1answer
43 views

Windows 8 'setx' is not recognized as an internal or external command

I'm trying to edit an environment variable, but i'm getting an error that 'setx' is not recognized as an internal or external command, operable program or batch file. I can use the set command, but ...
0
votes
1answer
41 views

How to remove path from PATH variable in fish

I am using fish as my shell in Debian and recently (after some upgrade) whenever I try to use command completion I have: set: No such file or directory set: Could not add component ...
0
votes
1answer
25 views

Win7 loses PATH from user profile

Recently, a very weird thing started to happen that has not happened before: Suddenly, from out of nothing Windows 7 & "forgets" the part from PATH from the user profile. As can be seen on the ...
-1
votes
1answer
30 views

I don't see 'path' under environment vaariables

I am trying to set path for Python but I have no 'path' under environment variables. Below is a link for the original issue as well a screen shot. How can I fix this?
2
votes
0answers
32 views

Windows: Execute program as admin with current environment and with elevation [duplicate]

This question is different from Run as administrator from command line on Windows 8 and I wrote why: I want to run a program a) as a different user b) get elevated privileges (which is additionally ...
0
votes
0answers
26 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
42 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 ...
0
votes
1answer
16 views

How do I unset “!::” environmental variable in bash?

I have a build script that is failing because it tries to unset an environmental variable called !::. That fails: $ unset -v '!::' sh: unset: `!::': not a valid identifier How do I unset that ...
0
votes
1answer
23 views

exporting bash paths with same variable name

I'm looking at my bash profile and not really understanding what I see. I think I see a variable (PATH) being redeclared - though this can't be true as all my programs seem to work. Can you help me by ...
0
votes
0answers
84 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. ...
2
votes
2answers
101 views

Issue with environment variable

Please help me running below command from user2 account. I cannot figure out what's the issue with this. [user2@localhost bin]# sudo -u user1 /opt/Tomcat/bin/shutdown.sh Neither the JAVA_HOME nor the ...
0
votes
1answer
39 views

Java version not recognized when JAVA_HOME defined for a particular USERACCOUNT

I have been struck with problem on my development box. I have JRE6 on my system and NO ADMIN RIGHTS. Used this command to add user variables rundll32 sysdm.cpl,EditEnvironmentVariables I have ...
8
votes
2answers
728 views

How do I make a batch file be able to run on other computers

When I create a batch file on my computer to execute start c:\Users\________\Whatever\..., it works on my machine. How can I get it to work on someone else's machine, since their username isn't my ...
0
votes
0answers
20 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
20 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
29 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 ...
0
votes
0answers
55 views

Recover environment variables windows 8 with out system restore?

I nuked my path variable on a Windows 8 machine accidentally. I then copied the 'basics' from another Windows 8 machine, set up systemroot, and all my user variables such as java_home, etc. This is ...
0
votes
1answer
51 views

How to call a Windows Environment Variable in a Shell script?

It is possible to call Windows Environment Variables in a bat script by defining e.g. %JAVA_HOME%. It looks like this is not possible using CygWin and shell scripts. Is it possible to call Windows ...
0
votes
1answer
33 views

Path variable seem to be ignored

Don't know why but some paths listed in the path variable seem to be ignored. For instance, processing, that when is executed from the right folder it runs without problem, but it is ignored whenever ...
1
vote
1answer
75 views

Environment variables and commands lost after Windows 8.1 upgrade

No sooner did I upgrade to windows 8.1 from windows 8, I found that I was unable to run commands from commandline like python, pip, cat,ls etc which are installed in the system when windows 8 existed. ...
0
votes
1answer
143 views

Forcing programs to be installed to another drive

I have an SSD as my main Windows drive, with a 640GB 2.5" HDD, partitioned to store programs and user settings, and also to act as backup (it's the only thing I had lying around at the time of ...
0
votes
1answer
21 views

Adding App to Path on Mac OS X

I'm in the process of migrating from Windows to Mac OS X. Right now, I'm trying to use this plugin in an application. The plugin states: Make sure you can find Magick++-config in your PATH. My ...
0
votes
0answers
19 views

set/modify environment variable for gnome/kde at runtime

Is there a way to modify or set environment variables in gnome or kde at runtime, ie. after logging in? I specifically need this for gnome, but knowing the kde method would be really useful too. If ...
1
vote
1answer
13 views

env command shows 3 times same path

When i run env it shows 3 times /usr/bin under PATH . Same for every path under PATH title. For example - my scala bin directory shows 3 times . However, in my .bash_profile, it is written just one ...
0
votes
0answers
16 views

Java with multiple versions on Windows [duplicate]

I have both Java 6 & 7 installed on my machine. My Windows' PATH variable has Java 6 JRE's location added to it. But when I open Command Prompt or Windows PowerShell and type java -version it ...
1
vote
0answers
36 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 ...
0
votes
0answers
39 views

Phusion Passenger Showing Environment Variables

I'm getting some Phusion Passenger errors with Ruby On Rails Problem is it's showing my environment variables in the error report. This is great in development, but what happens if my server faulters ...
1
vote
1answer
25 views

Apache VirtualHost - Specific Env Vars

Successfully using SetEnv with virtualhosts on Apache2 Wondering if there's a way to set virtualhost specific env vars, or whether setting them at Apache-level makes them "global" / system-wide? We ...
1
vote
0answers
47 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 ...
0
votes
3answers
96 views

Win7 resets HKCU/Environment/Temp and TMP on login

I once had a fresh installation of Win7 on an SSD drive. Bearing in mind what you always hear about write cycles on these things, first thing I did was changing the TEMP/TMP variables of SYSTEM and my ...
1
vote
0answers
13 views

Environment variable with different value [duplicate]

I operate a windows system with several applications, that all need a special home variable. But if I set this "home" variable, all applications use the same value. Is there a way to set this ...
0
votes
3answers
173 views

How can I add a program path to the Windows environment variables for easy command line access?

Let's say I want to add the following path to the Windows environment variables: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe Such that I can simply type the following from a command line without using ...
0
votes
1answer
67 views

Environment Variable ORACLE_UNQNAME not defined

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From ...
2
votes
1answer
173 views

What's the ZSH equivalent of BASH's $PROMPT_COMMAND?

BASH supports a $PROMPT_COMMAND environment variable that defines a command to be executed before any first-level interactive prompt. I'm looking for a ZSH equilvalent of that. The documentation says ...
0
votes
0answers
149 views

setting https_proxy environment variable in a secure way

The following is the standard way suggested to set the environment variable for the https_proxy: export https_proxy=<username>:<password>@<proxy>:<port> But it clearly ...
0
votes
1answer
38 views

Does the order of the directories listed in the Windows PATH variable affect system performance in any meaningful way?

I've noticed that when programs add their directory to the PATH environmental variable, most append it to the end but a few add it at the beginning, before the windows directory. So it made me wonder, ...