Questions tagged [system-variable]

146 questions
0
votes
2 answers

Unable to get a system variable work for manuals

I have the following system variable in .zshrc manuals='/usr/share/man/man<1-9>' I run unsuccessfully zgrep -c compinit $manuals/zsh* I get zsh: no matches found: /usr/share/man/man<1-9>/zsh* The command should be the same as the following…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
0
votes
0 answers

How to add MySQL Server bin path to System Path Variables using Python

I have created a automated script to install and start MySQL Server In which I have last step to add MySQL bin directory to System Variables Here is snippet of that code: try: command = f'setx PATH "%PATH%;{bin_path}"' process =…
0
votes
0 answers

How can I react to event on system variable defined in CAPL script?

I defined a system variable in my CAPL file that I use to set up different modes in my script. I declared it in my CAPL file and not in my CANAlyzer window in order to allow the script to work with differents…
0
votes
1 answer

Adding a value to existing system variable (powershell)

[Enviroment]::SetEnviromentVariable("Path", "d:/test/bin;c:/test", "Machine" If the variable already exists with other values in it; how can I adjust this script to not overwrite existing entries. While adding the new additional values?
John Doe
  • 13
  • 3
0
votes
1 answer

'hdfs' is not recognized as an internal or external command, operable program or batch file

I am following this instruction to install hadoop 3.3.1 on Windows 10 machine, I followed all the steps as it says but when I reached to step 6, after replacing the bin folder, it asks to run the following command: `– Format the NameNode – Open cmd…
user20551429
  • 99
  • 1
  • 6
0
votes
1 answer

Azure pipeline system variables

Do you know how to derive path for system variables $(System.ArtifactsDirectory) and $(Pipeline.Workspace) when deployment job running in Azure pipeline? e.g. If I enable debug, then in logs I can see below: $(System.ArtifactsDirectory) ->…
0
votes
0 answers

System path variables of Conda in Pycharm availability

TLDR: Why does PyCharm not have System variables available to terminal? Cen it get them somehow? In PyCharm 2022.1.4 I use conda environment. My file structure of the PyCharm project is as follows ./conda (there is the conda…
0
votes
1 answer

PATH system variable capitalization in Java

So i went through all kinds of similar questions but couldn‘t find one specifically answering THIS: From what i know, the JAVA_HOME system variable is case-sensitive and should always be capitalized. But what about the (optional) PATH variable?…
0
votes
2 answers

The JMETER_HOME environment variable is not defined correctly

I'm getting this error when trying to run this jmeter sentence from a maven project in java. jmeter -g DIRECTORY -o DIRECTORY When I run it in cmd it works perfectly but when I try to run it using…
0
votes
0 answers

How to run npm install with ANT without having nodejs path in system variable?

I am doing npm install with this task which is running fine only if I have nodejs path in my system variable I…
0
votes
1 answer

java command works in command prompt but not in powershell

I have following problem. I installed new OpenJDK 17: c:\java\jdk-17.0.2 I've set up JAVA_HOME to it and added to path: JAVA_HOME\bin in cmd when I type java -version it works. But when I run it from VS code or powershell it says following: Error:…
0
votes
1 answer

npm start not working after changing PATH system environment variable

When i try to start my react application with npm start, i get the following error: events.js:377 throw er; // Unhandled 'error' event ^ Error: spawn powershell ENOENT at Process.ChildProcess._handle.onexit…
0
votes
0 answers

Why are there two different syntaxes for azure-pipeline system variables?

As the ADO documenation on using system variables in pipeline conditions is not very clear, I came here to find an answer. But I found two. condition: eq(variables.buildSourceBranchName, 'main') and condition: eq(variables['Build.SourceBranchName'],…
0
votes
1 answer

Adding directory to Systemvariables Path in CMD

Iam trying to add a directory permanently to Path via CMD. When i try to use the command: setx path "%path%;C:\Program Files (x86)\chromedriver\chromedriver.exe" it only saves it to the uservariables Path. Is there a way to add it to the…
LordB
  • 13
  • 1
  • 3
0
votes
0 answers

What's the recommended way in Java to make a piece of code available only when needed?

The question regards an endpoint that I want to make available only for demoing and should not be part of the project in production. Therefore I need to find a way of making the piece of code that reveals this endpoint available only when it should…
Noam_I
  • 7
  • 3