The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
20 views

After adding vboxmanage to PATH, getting “ 'cmd' is not recognized as an internal or external command” [migrated]

Am trying to add virtualbox exe's to the windows PATH. But after adding "C:\Program Files\Oracle\VirtualBox" to the PATH env am getting the below error. And most of the usual commands are not ...
2
votes
0answers
25 views

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: ...
1
vote
0answers
15 views

How to change $PATH for crontab in Opensuse [duplicate]

I have a script written which works perfect on terminal however gives error when called through crontab. It took me a while that the problem is with the cron environment not my script. so I tried ...
0
votes
2answers
52 views

Powershell split-path formatting

I'm having some issues on some of the formatting. My code looks for the new files in a folder structure and returns those items, but I would like to trim the result to only show the first 3 folders ...
2
votes
1answer
33 views

How to know the current script FullName [closed]

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
1
vote
0answers
15 views

Edit apache environment path in OS X 10.10 Server

My phpinfo displays that the Environment Path for Apache is: /usr/bin:/bin:/usr/sbin:/sbin I would like to add: /opt/local/bin/ I'm using OS X 10.10 Server with the Website functionality of the ...
0
votes
0answers
49 views

How to modify “Path” environment variable on Azure?

I have an Azure Web Application developed in PHP and I try to add the Imagick library. The issue is that I have to set the location of some dll's in the PATH environment variable, but Azure does not ...
0
votes
1answer
311 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: ...
0
votes
2answers
21 views

Node.js executable issue

I have installed node.js from repositories (v0.10.25, Ubuntu 14.04.3, nodejs-legacy package). I need a specific version (v0.10.35) for a project. I installed n (sudo npm install -g n) and ...
1
vote
1answer
128 views

subshell is not created if run commands without a path?

I'm reading the book "Linux Command Line and Shell Scripting Bible" 3rd edition. On page 279, here I quote: "Command substitution creates what's called a subshell to run the enclosed command. A ...
0
votes
1answer
73 views

sudo (-E) doesn't preserve path, even when configured appropriately

I have circus installed in a python virtualenv using virtualenvwrapper, and I want to run it with sudo. Sounds simple, right? Unfortunately even after reading man sudo and man sudoers, I don't ...
0
votes
0answers
93 views

How to prevent users from creating long paths

Long file paths cause real problems when need to move/copy or delete large amount of data that the path is 350 character long (max character allowed by Windows is 256) I was wondering if anyone knows ...
1
vote
0answers
224 views

LDAP build script failing on openLDAP-2.4.31 ( ldapmodify -Y EXTERNAL -H ldapi:/// )

ORIGINAL QUESTION: I want to set the password to the backend admin so that I can change the LDAP ACL to what I need... needless to say I don't want my config posted all over the place, plus the .ldif ...
2
votes
2answers
75 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 ...
0
votes
1answer
180 views

MacOS Yosemite: Does setting PATH variable in /Library/LaunchDaemon work?

I launch a thing written in python from plists in /Library/LaunchDaemons in Yosemite and I want it to run some scripots. And it seems not to take PATH fro the plist file. For example if I have this in ...
0
votes
3answers
1k views

sed replace unix path with variable that contain another unix path [closed]

I need to replace Unix path via sed with variable that contain another unix path in a bash script Example: another_unix_path=/another/unix/path sed -i 's/ \/some\/path\/file.txt/ ...
0
votes
1answer
407 views

SVN : How to get path of repository knowing its URL?

I'm trying to backup my SVN respository with svnadmin dump command. So I must give it the path of my repository which I don't know how to find it. I'm using svn over http. How can I find this? FYI: ...
0
votes
1answer
58 views

PATH details disapear

I installed the following on Ubuntu 14.04.1 LTS as the Ubuntu user: nvm and node strongloop git postgres Everything worked fine after the installs. I was able to use which and all paths resolved. ...
1
vote
1answer
203 views

mcollective - different ruby path/environment

How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment? I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and ...
2
votes
1answer
283 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 ...
5
votes
1answer
709 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 ...
-1
votes
3answers
180 views

Command shows different results when I login as a user vs su to the user

I'm trying to run a simple command from an init.d script and I'm troubleshooting why the command doesn't work when I run it from my init.d script but works when I run it as my user. Can someone ...
1
vote
1answer
70 views

Finding strings in files with relative path

I don't understand why this two commands don't provide the same result (the differrence is only relative vs. absolute path), can somebody explain it? annika /srv/www/pages/com.example.www/www/povruc ...
1
vote
1answer
73 views

How to run an init.d script to run after $PATH is set

I created an init.d script that launches a system daemon. The daemon uses the system $PATH to launch other processes. The system path, however, does not include "/usr/local/bin" at the time the init.d ...
0
votes
1answer
39 views

Assigning different uri paths to different servers

I have the following situation: There is a domain with offers different services like a blog, a forum and a wiki whic are reachable via different URI paths all at e.g. IP 123.123.123.123: ...
0
votes
1answer
77 views

Nginx does not have access to centos path

Sorry for the rather confusing title, I am trying to understand this error. I have a php file, inside a folder like site.com/src/app/index.php and this site.com folder is placed in /var/www/html/ in ...
0
votes
2answers
271 views

CentOS - binary won't run unless typed with absolute path

I'm not sure if it's a quirk of the program I'm trying to run (amidelnx) or if it's something with the way some binaries in general function. Also, I've read this question but it is not the same as ...
0
votes
1answer
53 views

Is 'which' command always showing the right file / which binary is really being run?

I am using Ubuntu 12.04 LTS and I have apparently messed up my system with various versions of duplicity installations: first I had 0.6.18 installed from the default repo, then I tried using 0.6.23 ...
0
votes
0answers
246 views

Problems with @INC when updating Perl form 5.10 to 5.18 on Centos

I am on Centos 6 (as root) with Perl 5.10, also with a lot of modules installed (using yum and CPAN). I've tried to upgrade Perl to 5.18 and now have some problems with @INC. I receive messages that ...
0
votes
1answer
40 views

Does the user specific PATH in Windows roam across machines?

In Windows there are two environment variables which make up the PATH, a user specific PATH and the system wide PATH. Does anyone know if the user PATH roams across machines, or is it specific to a ...
2
votes
1answer
51 views

Inspecting how $PATH gets created

Is it possible to "listen" to a variable's value during the start of a new shell? I have a script that checks for the $PATH variable in the typical places, but I'd like to try something different. ...
1
vote
0answers
113 views

Wrong PATH in init script on boot

Since the update of the System on my Synology NAS (x86), I have some problems with my startup scripts. The Bash scripts are stored in /usr/local/etc/rc.d. The scripts were executed for sure, because ...
5
votes
3answers
9k 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: ...
2
votes
1answer
64 views

Command Line Script Issue

I've been working on a batchfile script for a few weeks now that should automate certain routine tasks I need to perform during my work. However, I've stumbled upon a problem which I haven't been able ...
1
vote
2answers
1k views

PHP App (Owncloud) Pages Requesting Incorrect Path for Assets

I have a VPS set up with php-fpm and nginx (with ssl). I have set up Tiny Tiny RSS already, and it works just fine. However, I recently attempted to set up Owncloud, and instantly hit a roadblock. I ...
3
votes
2answers
346 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 ...
12
votes
4answers
18k 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 ...
0
votes
1answer
266 views

Lighttpd, regex in conf, path including regex match

The background : - Lighttpd 1.4.28 - Debian 6.0.7 i686 Several developers are using this web server, and each of them has his own virtual host named after "username.mysite.tld". These hosts are ...
-1
votes
1answer
125 views

Changing path to basedir of mysql

When-ever I need to start mysql from command line, I need to cd to the base directory and then use mysql command as shown below: # cd /home/ec2-user/percona-5.5.30-tokudb-7.0.1-fedora-x86_64/ # ...
2
votes
3answers
2k 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 ...
-1
votes
3answers
249 views

How to replace a certain path from the PATH variable? [closed]

I am using Cygwin and would like to modify the following PATH via bash shell: /usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VSTSDB/Deploy:/cygdrive/c/Program ...
3
votes
1answer
19k 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, ...
2
votes
2answers
54 views

Unix how to determine if a program can be executed

I am writing a script to create the source environment. Handling the PATH part is easy. Though how should I check if a program can be executed correctly when its path is added into PATH? Using which ...
4
votes
2answers
347 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 ...
1
vote
0answers
787 views

Command not found, when it's in a directory on the path

I have the following environment variable set (trying for a 12-factor app approach): PATH="/home/hope/env/bin:$PATH" /home/hope/env/bin is the bin directory of a virtualenv, it has gunicorn and ...
2
votes
3answers
171 views

how to get [ current_path ] in shell bash prompt?

Is it possible to have the name of the current working directory in the prompt in shell ? Im working on OSX and CentOS in multiple projects under /srv/... and a mistake for wrong directory is quickly ...
0
votes
2answers
237 views

Red5 can't find Java

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
1
vote
3answers
584 views

which and sudo not using the same path

$ which reboot /usr/bin/reboot $ sudo reboot Sorry, user myusername is not allowed to execute '/sbin/reboot' as root What am I missing here?
3
votes
1answer
1k 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 ...
2
votes
2answers
287 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 ...