Questions tagged [path]
218 questions
3
votes
4 answers
How to avoid the ./ when executing a shell script?
I used to know a way to run my shell scripts just by typing there name as long as there were in my home folder or desktop. I hate having to type ./myscript.sh. I would like to be able to type just myscript.sh. How can I fix my terminal to do…

Kredns
- 496
- 1
- 8
- 15
3
votes
1 answer
Should I add SysWOW64 to my System Path to get 32bit programs in the path?
I have some 32-bit GNU programs that I want to add to the system path on my Windows7-64bit machine, such as Curl.exe, WGet.exe, AutoExNT.exe, etc. I don't want to have to alter the system Path environment variable at all and so I want to place them…

djangofan
- 4,182
- 10
- 46
- 59
3
votes
3 answers
How should I protect against relative paths in urls that try to access files outside of the served directories?
How can I make sure I am protected against relative paths like:
/catalog.php?F=S&BrandCode=AE///index.php%3foption=com_g2bridge&controller=../%2520../../../../../../../../../../../../../../proc/self/environ%2500
I have been getting these in my logs…

Kzqai
- 1,278
- 4
- 18
- 32
3
votes
2 answers
Where to set JAVA_HOME in Ubuntu
I am trying to configure Tomcat to know where JAVA_HOME is. I am used to Windows :) ...which file should I edit to add the Java info, and where is it located?

Genadinik
- 1,103
- 4
- 19
- 39
3
votes
1 answer
How do you use environment variables, such as %CommonProgramFiles%, in the PATH and have them recognized by services.exe?
I'm trying to add C:\Program Files\Common Files\xxx\xxx to the system PATH environment variable by appending %CommonProgramFiles%\xxx\xxx to the existing path.
After rebooting, I open a command prompt and check the PATH. It expands correctly.…

Brad Knowles
- 71
- 1
- 3
3
votes
2 answers
How to set PATH variable on Mac OS so that even non-terminal apps see it?
I need to add a directory to my PATH variable on Mac OS.
I added it in .bash_profile and .profile, and that works for the terminal.
But Emacs (http://emacsformacosx.com) still does not use the new PATH variable. (I'm trying to run latex from emacs,…

user9474
- 2,448
- 2
- 25
- 26
3
votes
2 answers
Make PATH variable changes permanent on openSuse
Okay, so I'm trying to do something that should be rather simple but for some reason I can't quite seem to make it work. All I simply want to do is add a path to the PATH environment variable in openSuse.
So far, I've edited the following line in…

Marlon
- 535
- 2
- 10
- 14
3
votes
1 answer
Permanently add to $PATH on MacOS
I am trying to add to my $PATH on MacOS (Monterey)
When I use
export PATH=$PATH:~/.composer/vendor/bin
It will add it to $PATH and I can see it when I use
echo $PATH
However when I reboot the computer, that item is removed from $PATH and needs to…

Lawrence Cooke
- 167
- 1
- 1
- 7
2
votes
0 answers
Configure NGINX by passing CLI parameters instead of config file
I am looking for a way to change some config parameters dynamically before running NGINX. Perfectly by using command line parameters. I want to write a bash script that takes for example two parameters:
root directory of files to be served,
name…

Jimmix
- 121
- 5
2
votes
1 answer
Using mod_rewrite to remove PATH_INFO from URL
UPDATE: Mostly solved. Now it only doesn't work if in the situation where you are trying to access http://www.example.com/any-real-file-without-an-extension/anything-afterwards-that-doesnt-end-in-a-slash.
I guess the server thinks that…

Ben Yep
- 23
- 5
2
votes
1 answer
Why is PATH different when launching Jenkins slave via launchctl?
I have a Jenkins slave running on macOS via ssh slave, then screen, then launching following script, which makes sure to reconnect the server if it goes down:
#!/usr/bin/env bash
function startSlave() {
java -jar /Users/user/slave.jar -jnlpUrl…

electronix384128
- 53
- 1
- 9
2
votes
1 answer
Calling a batch file using relative path
Oh gosh, gotta expose myself as a noob here ;)
In Windows, I need to execute a batch file in a subdirectory of the working directory. However, just running subdir/foo.bat cmd1 cmd2 does not work, and I get an error saying
The command "subdir"…

Franz
- 135
- 1
- 1
- 6
2
votes
2 answers
where is the "module" a command coming from - aka why it doesn't show up in alias?
Consider the following:
$ module
cmdModule.c(166):ERROR:11: Usage is 'module command [arguments ...] '
Modules Release 3.2.6 2007-02-14 (Copyright GNU GPL v2 1991):
Usage: module [ switches ] [ subcommand ] [subcommand-args…

Davide
- 151
- 8
2
votes
0 answers
HAProxy: replacing subdomains with paths
My previous question was too complicated and unclear. Hopefully this is more straight to the point...
Currently I'm using subdomains to access application UIs externally. Some allow access via paths:
example.com/sabnzbd
Others don't work with paths…

jztilly
- 21
- 3
2
votes
1 answer
How to know the current script FullName
My script call many other script and i need know each fullname (for log info).
but the same command doesn't work in Powershell_ISE

Alban
- 297
- 2
- 7