Questions tagged [path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
165 votes
5 answers
309k 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 ...
berkes's user avatar
  • 2,205
108 votes
8 answers
134k 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 ...
lajos's user avatar
  • 1,345
103 votes
6 answers
306k 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/...
vonconrad's user avatar
  • 1,281
80 votes
4 answers
52k 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 ...
Adam Matan's user avatar
  • 13.4k
42 votes
2 answers
88k 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 ...
unixman83's user avatar
  • 1,932
38 votes
4 answers
152k 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\...
Mohammad AL-Rawabdeh's user avatar
31 votes
1 answer
20k 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 ...
Mark's user avatar
  • 2,091
29 votes
7 answers
177k 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 ...
ninesided's user avatar
  • 539
26 votes
3 answers
39k 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 ...
mralexgray's user avatar
  • 1,393
20 votes
4 answers
63k 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: /...
Buttle Butkus's user avatar
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 ...
mfmz's user avatar
  • 169
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 ...
purefusion's user avatar
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 ...
Steve Vigneau's user avatar
13 votes
1 answer
26k 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/...
Paulo Matos's user avatar
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 ...
TallGuy's user avatar
  • 213
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 ...
Christopher Bottoms's user avatar
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/...
GeoffreyF67's user avatar
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 ...
Viktor Stolbin's user avatar
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 ...
floorish's user avatar
  • 253
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="/" ...
stakx's user avatar
  • 195
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/...
Peterdk's user avatar
  • 183
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 ...
Freewind's user avatar
  • 231
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 ...
Locane's user avatar
  • 429
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 ...
HopelessN00b's user avatar
  • 53.9k
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 ...
bryan_basho's user avatar
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 /...
Ryan Rosario's user avatar
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, ...
Pretzel's user avatar
  • 103
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 ...
Heinrich's user avatar
  • 900
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: ...
Joshua Grigonis's user avatar
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 ...
deadlydog's user avatar
  • 438
5 votes
2 answers
915 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 ...
Sara Jones's user avatar
5 votes
1 answer
51k 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, ...
matt wilkie's user avatar
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 ...
Andrea Ambu's user avatar
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 ...
Ron's user avatar
  • 157
4 votes
2 answers
926 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 "...
Neal Bailey's user avatar
4 votes
2 answers
404 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 ...
Josh Bleecher Snyder's user avatar
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 ...
John Bachir's user avatar
  • 2,364
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 ...
Wally Glutton's user avatar
4 votes
2 answers
720 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://...
user1817188's user avatar
4 votes
1 answer
3k 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 ...
Svish's user avatar
  • 7,117
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 ...
Kredns's user avatar
  • 496
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 ...
user avatar
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../../../../../../../../../../../../../../...
Kzqai's user avatar
  • 1,288
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?
Genadinik's user avatar
  • 1,123
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 ...
jack.chen.job's user avatar
3 votes
1 answer
21k 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 ...
Lawrence Cooke's user avatar
3 votes
2 answers
516 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 ...
Zac B's user avatar
  • 841
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 ...
Marlon's user avatar
  • 535
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:...
hsgu's user avatar
  • 149
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 ...
user9474's user avatar
  • 2,468

1
2 3 4 5