Questions tagged [path]

218 questions
5
votes
2 answers

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 it will render the contents of /var/www/home (I…
Andrea Ambu
  • 480
  • 1
  • 8
  • 13
5
votes
2 answers

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 modify the PATH variable with a *.bat file usually…
Heinrich
  • 900
  • 5
  • 21
  • 35
4
votes
2 answers

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 looked at all the user's dot files in the home…
John Bachir
  • 2,364
  • 7
  • 29
  • 37
4
votes
2 answers

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…
user1817188
  • 183
  • 1
  • 8
4
votes
1 answer

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 expanded so that the actual PATH looks like…
Svish
  • 6,977
  • 15
  • 38
  • 45
4
votes
1 answer

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 absolute paths. I know that the robocopy.exe is…
deadlydog
  • 388
  • 1
  • 5
  • 10
4
votes
2 answers

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 git /usr/local/bin/git $ /usr/local/bin/git…
4
votes
2 answers

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 in /usr/local/bin. (I still want the old version…
4
votes
3 answers

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 realize that the $PATH variable is the same as the…
Ron
  • 157
  • 1
  • 9
3
votes
2 answers

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 PATH).path $newpath =…
jack.chen.job
  • 123
  • 2
  • 6
3
votes
2 answers

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 "error: ffmpeg is not installed!" | tee -a "$log" …
Neal Bailey
  • 75
  • 1
  • 5
3
votes
1 answer

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 ServerName svn.mydomain.com
hsgu
  • 149
  • 1
  • 2
  • 7
3
votes
2 answers

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 www.remotehost.com 'my_command' I've also tried…
Josh Gibson
3
votes
2 answers

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 management utilities) that both heavily use a…
Zac B
  • 841
  • 1
  • 15
  • 27
3
votes
4 answers

How to fix Puppet fully-qualified parameter path error?

I regularly but randomly get the following error message when I run the puppet client on machines (non-daemonized): err: Could not create : Parameter path failed: File paths must be fully qualified warning: Not using cache on failed…
David Gardner
  • 1,509
  • 2
  • 13
  • 25
1 2
3
14 15