Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
1answer
14 views

Create Percentage Sign Variable to use in Environment Variables

In Windows 10, some environment variables actually use percentage signs to refer to paths. For example, the PSModulePath environment variable looks like this (ignore the additional one I marked out): ...
2
votes
2answers
92 views

Set PSModulePath Environment Variable with PowerShell in Windows 10

I don't understand this. So currently my system environment variable named "PSModulePath" looks like this: %ProgramFiles%\WindowsPowerShell\Modules;%SystemRoot%\system32\WindowsPowerShell\v1.0\...
0
votes
0answers
19 views

What is the easiest and shortest way to know java installation folder in bash?

The only way i know right now is- echo $(/usr/libexec/java_home) I tried editing .bash_profile to add export JAVA_HOME=/usr/libexec/java_home but still it didnt do the trick, so any other ...
1
vote
1answer
24 views

Unix/Linux - service unit file cannot recognize env variable set in /etc/environment

I have an environment variable setup correctly in /etc/environment I have ensured that it loads correctly via /etc/profile modification. and I can echo it to confirm. but when I created the unit ...
0
votes
0answers
72 views

Windows 10 environment variable PATH not getting updated

Inspired by the following video link : https://www.youtube.com/watch?v=JQ58d3BEV_8 I tried to change the PATH variable of my system and add the path that has been mentioned there . Ii have a ...
0
votes
1answer
39 views

pip command error during installation of requirements.txt

When I run the command py -2.7 -m pip install requirements.txt, I'm getting the error but I have already upgraded it but I'm still getting error in installing requirements.txt. When I use the ...
1
vote
1answer
80 views

Setting an environment variable in Windows 10: gPodder

I have just installed the podcast client gPodder (https://gpodder.github.io/). I am trying to change the default download directory, and the manual indicates that you set the environment variable ...
0
votes
0answers
30 views

Registering an Application to Custom URI Scheme with environment variable

I'm following the guide here on Microsoft's site to register an application to a custom URI scheme. This works if I can provide a static path to the executable to run shell open command ...
0
votes
0answers
19 views

Where does $HOME variable comes from and why I can't change it? [duplicate]

I know this is stupid, but last 30 minutes I am trying to change $HOME variable to other value, doing $Env:HOME = "desired value" did nothing for me, I tried couple other suggestions from the first 10 ...
1
vote
1answer
26 views

Add ~/projects/*/bin directory in environment PATH (Ubuntu 16.04)

Everything is in the title. I know how to add new path in the environment PATH variable but I would like to make it recursive by automatically adding /bin folders of all my future projects. Something ...
1
vote
1answer
86 views

Batch file not returning correct value after using bat to exe

I'm having lots of issues with this script. It's supposed to read the a file (that the user specifies) then save it to the storeresult environment variable. I'm using a BAT To EXE converter that ...
2
votes
0answers
53 views

Globally set environment variables for gpg-agent in MacOS High Sierra

I want to use gpg-agent instead of ssh-agent in MacOS High Sierra. To achieve this I need to set globally two environment variables: GPG_TTY=$(tty) SSH_AUTH_SOCK=${HOME}/.gnupg/S.gpg-agent.ssh This ...
0
votes
0answers
28 views

How to get values, log into server and run commands using PuTTY with the values

I am trying to create an automated (batch) script (i.e., for Windows) to collect hostname and instance name (SID), open PuTTY using my username/password & host to login into the server and issue ...
0
votes
1answer
47 views

How to override environment path variable to call curl from custom path instead of system32 path?

I have a path for folder containing curl.exe file (C:\My\Custom\Directory\) added to Path Environment Variable. The problem is that when I call curl from command line, it runs another curl executable ...
0
votes
2answers
53 views

automatically setting an environmental variable before invoking GUI app

I have a windows GUI app, say prog.exe, which is located in a folder in the system path. The app is not mine, and all I have is binary, so I can't change the program. I have a file type, say *.typ, ...

15 30 50 per page