Questions tagged [path]
The path tag has no usage guidance.
222
questions
172
votes
5
answers
324k
views
How to remove the path with an nginx proxy_pass
I have a running web-application at http://example.com/, and want to "mount" another application, on a separate server on http://example.com/en. Upstream servers and proxy_pass seem to work, but for ...
109
votes
8
answers
135k
views
How do I set the global PATH environment variable on OS X?
I'd like to append to the global PATH environment variable on OS X so that all user shells and GUI applications get the same PATH environment.
I know I can append to the path in shell startup ...
103
votes
6
answers
312k
views
Adding a directory to $PATH in CentOS?
We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at /usr/lib/ruby-enterprise/...
80
votes
4
answers
53k
views
How to keep the full path with rsync?
When backing up with rsync, How do I keep the full directory structure?
For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named ...
43
votes
2
answers
89k
views
CentOS /usr/local/lib system wide $LD_LIBRARY_PATH?
I install custom software in /usr/local/lib. How do I set the PATH and LD_LIBRARY_PATH in CentOS 6 system-wide to use /usr/local/lib. I realize there may be more than one way. What's the simplest and ...
40
votes
4
answers
155k
views
Get directory containing the currently executed batch script
I use %0 in batch file to get the containing directory of the batch file but the result is :-
c:\folder1\folder2\batch.bat
I want just directory, without batch file name, like this :-
c:\folder1\...
31
votes
1
answer
21k
views
Make IIS see updated environment PATH variable
We've installed Oracle Express on a Windows 2003 Server and in the process it updated the PATH. We're trying to get IIS to see this change in the PATH but we can't figure it out. We've recycled the ...
30
votes
7
answers
186k
views
How can I modify a user’s PATH environment variable without logging out?
The question pretty much says it all; I have users who do not have permission to edit their own PATH environment variable and if they need to have it modified for some reason, they need to log out so ...
27
votes
3
answers
41k
views
How does one escape the " ` " (accent grave/backtick) in a path?
I tend to prefix oft-used files and folders with the "accent grave" character (non-shift tilde, the back-tick, or plain-old accent, whathaveyou..), as it is easy to get at, and let's me sort things ...
20
votes
4
answers
64k
views
Error - Unable to find `dot` command of the GraphViz package
Ubuntu precise (12.04.1 LTS)
I'm rather new to PEAR.
I installed PEAR. Then, using pear I installed phpdoc.
It seems to be working great except for the graphing functions.
I ran this command:
/...
16
votes
3
answers
51k
views
Windows Server 2012 GUI went missing after removing Active Directory
I'm sorry but i'm stuck in figuring out a problem i'm facing here. I removed the AD feature from server manager and after rebooting, my server 2012 gui wasn't there anymore. There's only command ...
13
votes
4
answers
16k
views
Escaping spaces in a remote path when using rsync over a remote SSH connection
When using SSH to connect rsync to a remote server, how do you escape spaces and such in the remote path? A simple backslash escapes the space for the local bash prompt, but on the remote machine the ...
13
votes
4
answers
18k
views
Environment Variables in PATH Not Expanded for non-Admin Command Prompt?
I have a Windows 7 machine which, when Command Prompt is run by a normal user, fails to expand environment variables in the %PATH%. If command prompt is instead run as administrator (right click, Run ...
13
votes
1
answer
27k
views
rsync requires rsync-path when remote rsync is in path
I am quite confused as to why rsync requires --rsync-path flag even when remote rsync is in path.
Consider:
$ rsync -avze 'ssh -p 22' --delete public/ [email protected]:~/public_html
bash: /usr/...
11
votes
3
answers
43k
views
How do I set the global PATH environment in a batch file?
The group policy in our environment overwrites the PATH variable every time I log on and, as I run a 'non-standard' computer, it gets it completely wrong (C:\Windows vs C:\WINNT, missing directories ...
10
votes
6
answers
6k
views
Prune duplicate entries from PATH variable
I modify my .bashrc frequently and then source it. However, when I have things like
export PATH="~/bin:~/perl5/bin:$PATH" in my file, then the PATH environment variable grows every time I source the ...
9
votes
3
answers
11k
views
why can't macports find make
I am trying to run macports like thus:
port install php5
When I do so, however, I get this error:
Error: Unable to open port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/...
9
votes
3
answers
14k
views
Override path to binary for particular user
My question seems to be trivial but I didn't manage to find anything helpful in internet.
I have a binary in
/urs/bin/binary
but it is outdated and newer version is available on some mount for ...
9
votes
1
answer
6k
views
Can't find binary, but path included in $PATH
So I tried to install Mercurial on Ubuntu 10.04.
First I used the ppa repo, but got a pythonpath error, which I gave up on.
Next try was install from source, everything went well, except it can't find ...
9
votes
2
answers
6k
views
IIS 7.5 (Express) applicationhost.config: Can a virtualDirectory's physicalPath be a relative path?
I'm configuring a site in applicationhost.config for IIS 7.5 Express:
<site name="default" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" ...
8
votes
1
answer
13k
views
PATH issues for init.d scripts on startup
I have a simple script that starts up a unicorn instance (on Ubuntu 12.04LTS).
#!/bin/sh
case "$1" in
start)
echo "starting"
cd /path && bundle exec unicorn -c /path/config/...
7
votes
2
answers
2k
views
How to change back to previous path quickly?
This is a basic linux question I think, but I really want to know.
For example, currently I am in /usr/bin:
[x@localhost bin]$ pwd
/usr/bin
[x@localhost bin]$ cd /
[x@localhost /]$
Now I want to go ...
7
votes
1
answer
4k
views
Command to refresh binary paths in CentOS?
This is probably really easy and I just can't seem to find it.
I'm moving binaries around between /usr/bin and /usr/sbin, and even though both folders are in my $PATH, moving one binary to the other ...
6
votes
3
answers
12k
views
Windows: How do I add a program to the system's path environmental variable from the command line?
I'm looking to permanently add a directory to the %PATH% environmental available on a large number of Windows machines. Is there any way to do this from a command line (cmd) so I can script up a ...
6
votes
1
answer
3k
views
remount /tmp for the current shell
I have a command which is hard-coded to use /tmp as its working directory.
/tmp is rather small, and the command is certain to fill it up, which will cause problems for other system processes.
I ...
6
votes
2
answers
10k
views
pkg-config on Mac Doesn't find Libraries
I have been installing a bunch of libraries lately from the GNOME sources on Mac. They use pkg-config.
Every time I run a configure, it complains that it can't find library XYZ, which I installed to /...
5
votes
3
answers
7k
views
Why does 'ansible -a "env"' return a different environment PATH than my user?
When I ssh into a remote server and run env I get back the following PATH:
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/myusername/bin
In contrast, ...
5
votes
2
answers
12k
views
PATH variable and quotation marks (windows)
I am having a weird problem with the PATH variable under windows:
My application is in a folder c:\app\bin and the DLLs for this application are in the c:\app\runtime folder. To run my program I ...
5
votes
1
answer
7k
views
Ansible become_user not picking up path correctly
Here's the code showing what I believe is a problem:
# Debugging path problems with sudo
---
- hosts: webservers
remote_user: root
tasks:
- name: echo path
command: echo $PATH
register: ...
5
votes
1
answer
13k
views
Robocopy uses relative path for Source and Destination paths
I'm trying to use RoboCopy in my TFS Build Template to copy some files, but for some reason it inserts "C:\Windows\system32" in front of my Source and Destination paths, even though I am passing in ...
5
votes
2
answers
925
views
Preventing bash tab completion of an environment variable with a FS path value from removing the environment variable name
Friends,
I am using GNU bash as my shell on Linux:
$ bash --version
GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU ...
5
votes
1
answer
52k
views
mklink to network share or UNC path or Mapped Drive?
Are there performance or permission or other considerations to think about when using a mklink path to a network share versus just a straight UNC path (or mapped drive for that matter).
For example, ...
5
votes
2
answers
8k
views
ErrorDocument in .htaccess, is it possible to use relative path?
This doesn't work:
ErrorDocument 401 ../../src/wrong_pwd.php
it renders the path as text, it really prints
../../src/wrong_pwd.php
and doesn't output the real file.
If I put the absolute path ...
4
votes
3
answers
1k
views
Why is my $PATH variable for root different when I use su root
When I was trying to run chkconfig as an ordinary user (on CentOS 5) I realized that I could not access it because the directory, sbin, is not in my $PATH. When I su to root it still doesn't work. I ...
4
votes
2
answers
949
views
Using 'which' command in cron job
I have a cron job that runs once a day on a Linux server and in the script it executes there is a test:
# Validate ffmpeg is installed
if [ $(which ffmpeg | grep -c "ffmpeg") -eq 0 ]; then
echo "...
4
votes
2
answers
410
views
Is `which` lying to me?
I installed git via apt-get, but found that the version was hopelessly outdated, so I then installed git from source. The end result is rather puzzling:
$ git --version
git version 1.7.0.4
$ which ...
4
votes
2
answers
7k
views
Why is the cron ENV different from the user's ENV?
On a new Ubuntu install, a user's PATH is:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
But in that same user's cron environment, it is:
/usr/bin:/bin
I ...
4
votes
2
answers
4k
views
Changing PATH Environment Variable for all Users. (Ubuntu)
I recently compiled Ruby Enterprise Edition (REE) on an Ubuntu 8.04 server.
I would like to update my PATH to ensure this new version of Ruby (found in /opt/ruby_ee/bin) supersedes the older version ...
4
votes
2
answers
739
views
Strange PATH when use sudoers via ldap
I have a working LDAP authentication environment. LDAP server is on ubuntu 12.04 machine while client are all centos 6.4 machines. Recently I configure sudoers in LDAP following this article http://...
4
votes
1
answer
4k
views
Prevent setx to expand an environment variable?
I can add to the PATH variable from the console using the following command:
setx PATH "%JAVA_HOME%\bin;%PATH%" /m
However, when I check the PATH variable afterwards the JAVA_HOME variable has been ...
3
votes
4
answers
1k
views
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 ...
3
votes
2
answers
3k
views
Running a program remotely with SSH, but it won't use my .bashrc and the PATH is wrong
I'm trying to run a command remotely with SSH, but my problem is that when I do that, my .basrhc doesn't get executed, and so the PATH is all wrong and my script is breaking.
What I'm doing is
ssh ...
3
votes
3
answers
2k
views
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../../../../../../../../../../../../../../...
3
votes
2
answers
2k
views
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?
3
votes
2
answers
6k
views
using powershell to update system path doesn't immediately work?
I am trying to use powershell to update Windows system path by :
$oldpath = (Get-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name ...
3
votes
1
answer
24k
views
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 ...
3
votes
2
answers
533
views
Per-application library paths on CentOS
Context:
After a recent version upgrade of a bunch of our server software, I've found myself in a dilemma:
I have two sets of applications (Zend server and assorted utils, and a bunch of PostgreSQL ...
3
votes
2
answers
25k
views
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 ...
3
votes
1
answer
11k
views
Cannot access svn repository in correct path
My repository directory is /var/www/svn and access file is /var/www/svn-auth
and I create repository project1 in svn directory
My configuration
svn.mydomain.com.conf
<VirtualHost 127.0.0.1:...
3
votes
2
answers
3k
views
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 ...