Questions tagged [path]

210 questions
146
votes
5 answers

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 one issue: upstream luscious { server…
berkes
  • 1,975
  • 3
  • 15
  • 18
104
votes
8 answers

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 scripts, but those settings are not inherited by GUI…
lajos
  • 1,315
  • 4
  • 14
  • 8
102
votes
6 answers

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/bin) directory to make it the default Ruby…
vonconrad
  • 1,271
  • 2
  • 9
  • 9
77
votes
3 answers

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 backup. I want to have (locally)…
Adam Matan
  • 12,504
  • 19
  • 54
  • 73
41
votes
2 answers

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 most standard way?
unixman83
  • 1,912
  • 8
  • 25
  • 33
37
votes
4 answers

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\folder2\ How can I do it? Maybe I should filter the…
28
votes
1 answer

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 app pool and the IIS site with no success. Is there…
Mark
  • 1,991
  • 6
  • 18
  • 18
26
votes
6 answers

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 an Admin can log in and change the PATH for them,…
ninesided
  • 499
  • 2
  • 7
  • 9
20
votes
4 answers

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: /var/www/site5 $ phpdoc -f models/classes.php -t…
Buttle Butkus
  • 1,719
  • 8
  • 32
  • 45
19
votes
3 answers

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 alphabetically, while letting me choose to show a…
mralexgray
  • 1,213
  • 3
  • 12
  • 29
16
votes
3 answers

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 prompt to deal with. I tried to enable back gui based…
mfmz
  • 169
  • 1
  • 1
  • 6
12
votes
1 answer

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/ pmatos@domain.com:~/public_html bash: /usr/local/bin/rsync: No such file or directory rsync:…
Paulo Matos
  • 279
  • 2
  • 3
  • 10
12
votes
4 answers

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 as administrator) then %PATH% is appropriately…
11
votes
3 answers

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 etc). Currently, I manually change it every time I…
TallGuy
  • 213
  • 1
  • 2
  • 8
10
votes
4 answers

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 space is then being read as a break in the path,…
purefusion
  • 245
  • 1
  • 3
  • 9
1
2 3
13 14