Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [path]

The tag has no usage guidance.

0
votes
1answer
15 views

Loading new paths from each line on a text file with eval dont update $PATH variable on bash

Having to set a lot of paths on $PATH then wrote this code to load it from a text file: #!/bin/bash cd ~ echo '#++++++' >> ./pathlstbkp cat ./pathlst >> ./pathlstbkp while ...
1
vote
1answer
14 views

Odd requests for urls that are the *body* of my CSS files

I'm not sure quite how to express this but my NodeJS server has recently been getting errors because some middleware library is unable to parse certain parameters from urls. When I look at which urls ...
1
vote
1answer
66 views

TFS: Inconsistencies in git web source code browser

We have been using on premise Team Foundation Server v. 15.117.27414.0. Everything has been working fine, except on the project's web portal, on the Code page (code explorer), all of the files that ...
0
votes
0answers
162 views

haproxy redirect URL path to another path

haproxy version 1.5.18 I want to redirect: /document/(.*)/(.*)/somefile => /anotherPath/somefile For example: redirect /document/20181/20182/a_good_pic.jpg => /anotherPath/a_good_pic.jpg ...
0
votes
1answer
30 views

Using credential name to map network folder that has identical form

We have a network share over vpn to a windows server in a different city. each person has a username to access the folder (and only that specific folder) his/her folder is same as username. user os is ...
0
votes
1answer
104 views

Find unique paths in one text file from two files using powershell

I have two text files with a list of paths. They share some paths but they also have their own unique paths as well. Each path is on different line and there are thousands of lines on each txt file. ...
1
vote
1answer
102 views

Windows PATH Variable with a Drive-letterless path

At work, we have a setup where our product's source code is mounted to a drive letter, and if you want to have different builds, you have different drives. The build tools are reached by adding ...
0
votes
1answer
961 views

PowerShell Get-ChildItem - Path Too Long

I have been stuck with trying to format my output table for a Get-ChildItem command. I have created a script to scan a directory defined in $Source to search for files defined by $Months and $Size. ...
0
votes
1answer
560 views

Apache 2.4 Proxy Css and Js path

I got Apache Web Server 2.4, and a JBoss 7 exposing a web project. Since I'm working locally I made an /etc/hosts/ domain entry like: 127.0.0.1 testmask And put this virtual host config inside ...
1
vote
2answers
57 views

How to extract the last two (or any number) directories from a path with sed?

I'm really looking for a generic solution here, but for the sake of example, let's say I'm looking for the deepest 2 directories in a path. e.g.: Given a path /home/someone/foo/bar, how can I use sed (...
0
votes
1answer
23 views

Paths of files on Google Nearline changed

While I was recovering files by CloudBerry, I realized that the paths of nearly all files on the Google Cloud are altered. It should be G:\2014\Photo Video Source Files\UTS construction video\...
1
vote
2answers
1k 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 ...
1
vote
1answer
39 views

What's the most common and recommended directory for a web application on FreeBsd? [closed]

I have a website on a FreeBSD server which is reachable from the Internet. I know I can run it from whichever directory I wish. But still, which directory is more right, common and recommended? At the ...
1
vote
1answer
458 views

Using mod_rewrite to remove PATH_INFO from URL

UPDATE: Mostly solved. Now it only doesn't work if in the situation where you are trying to access http://www.example.com/any-real-file-without-an-extension/anything-afterwards-that-doesnt-end-in-a-...
1
vote
1answer
2k views

Why is PATH different when launching Jenkins slave via launchctl?

I have a Jenkins slave running on macOS via ssh slave, then screen, then launching following script, which makes sure to reconnect the server if it goes down: #!/usr/bin/env bash function startSlave(...
0
votes
1answer
195 views

usb drive persistent mapping(ubuntu 16.04)

I'd like to map an usb drive to a path under ubuntu 16.04. The idea is to use rsync to backup some folders to this usb drive whenever I plug it. Is there any way for the system to recognize the usb ...
1
vote
1answer
597 views

Removing a recursive folder that's not recursive in windows fails with “Source Path Too Long”

I seem to have managed to get an Application Data folder recurse into itself somehow, doesn't look recursive but somehow still is and now I find myself unable to remove that folder. The folder itself ...
0
votes
1answer
44 views

Google compute engine Debian, $PATH getting reset after exiting from Putty

I have a debian instance on Google cloud. I needed to host a Play! Framework project. For this I installed a software Activator and added it to path as follows export PATH=/home/user/activator-dist-1....
1
vote
1answer
73 views

Bash, script that check soft [closed]

i have a script on bash: s=0 if [ -f /usr/bin/curl ] && [ -x /usr/bin/curl ] ; then echo "Utility ...... curl [ ok ]" else echo "Utility ...... curl [fail]" s=1 fi if [ -...
0
votes
2answers
461 views

nginx multiple paths (too many)

i got this working nginx config: server { listen 80; server_name mydomain.com; root /var/www/mydomain/wordpress; index index.html index.php; location /customer1 { alias /var/www/...
0
votes
0answers
1k views

Network path was not found while joining domain (samba)

I have my AC server on 10.0.0.2 (debian, samba installed). From PC1 (notebook, windows 7 professional) I can easy join my domain and all things are good. But from PC2 (windows 7 professional too) I ...
-1
votes
1answer
1k views

How can I modify the $PATH used by my vagrant provisioning script?

I have a shell script in /etc/profile.d that adds some directories to my $PATH, but vagrant doesn't see when running a privileged provisioning script. This uses sudo and sudo does not see this ...
0
votes
0answers
77 views

centos unrar filename after binary move

I have files on my centos7 linux server. I'm using rar x filename to compress them for storage. Today I needed to open a file.rar. My problem is this: after compressing I'm uploading the file to ftp ...
5
votes
3answers
3k 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, ...
2
votes
0answers
351 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
1k 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
252 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
69 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 ...
3
votes
1answer
4k 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
48 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
757 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
747 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 ...
1
vote
0answers
986 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 ...
3
votes
2answers
4k 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 ...
1
vote
1answer
347 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
9k 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/ '$another_unix_path'...
0
votes
1answer
1k 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
70 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
323 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
2k 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
2k 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
438 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
228 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 #...
2
votes
1answer
322 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
82 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: www....
0
votes
1answer
113 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
494 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
57 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 ...
1
vote
0answers
290 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 ...