Questions tagged [path]
The path tag has no usage guidance.
209
questions
1
vote
0
answers
22
views
Nginx - Block access to portion of path only, to all but specified IP range
I'm trying block access to a portion of a path via Nginx, unless the source IP is within a specified range.
I think I've got this mostly working through much trial and error, but I seem to run into ...
0
votes
1
answer
25
views
Setup A Default Redirect In Nginx
I need a way to redirect clients when no existing path is defined. When I put a return 301 config in, nginx seems to ignore any location configs. It redirects everything.
The hostname in the ...
0
votes
0
answers
75
views
How do I use the pgpass.conf file to allow promptless connection to a database
for testing purposes I have a postgres service/database running on my local computer. Right now I am using a batch file to change default userlogin, but I cannot use SET PGPASSWORD to pass along a ...
1
vote
1
answer
130
views
Wine in Docker - "reg add" only keeps effects temporarily
Ive been bashing my head against a wall about this.
I'm looking to add an executable to the PATH under wine on Ubuntu 20.04.
Trying to configure this from the dockerfile, but having a weird issue.
...
1
vote
1
answer
6k
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 ...
-2
votes
1
answer
353
views
Programatically get full path to binary in powershell (which, where, Get-Command)
How do I get the absolute path to a given binary and store it to a variable?
What is the equivalent to the following for Linux Bash in Windows Powershell?
user@disp985:~$ path=`which gpg`
user@disp985:...
0
votes
1
answer
83
views
I need to rename a file and insert a date
I'm trying to set a daily process to locate a file, rename it and insert the previous date in the file name. I want the file to be named "Filename_MMddyyyy.csv" with MMddyyyy being the ...
0
votes
1
answer
134
views
su - with automatic change directory once su command is done in shell scripting
im not familiar in shell scripting but im trying to achieve at least this script but my problem is once superuser rt is done logging in it brings me to this
[rt@superuser root]$
instead of reading ...
0
votes
1
answer
159
views
Azure App Service portal not working after misconfiguration
I was trying to setup path mappings for my PHP Azure Web App, I was attempting to every virtual path under a certain path directory redirect to a single PHP index file.
So for example:
/myapp/ would ...
1
vote
1
answer
93
views
Where shared object is located in Linux
I want to know, where .so file information got stored in linux? I am looking for libruby.so.2.6.
When I searched in internet, ld.so first starts the search with LD_LIBRARY_PATH and then it will look ...
0
votes
1
answer
522
views
Libruby.so library not in default library location
I have installed rh-ruby26 on my machine as a root user and it got installed under /opt/rh/rh-ruby26/root/bin/ruby..when I have tried to execute a script , am getting "error while loading shared ...
1
vote
0
answers
85
views
Setting Apache SSL path dynamically based on domain
Trying to replace SSL path with the current domain.
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAlias *
UseCanonicalName ...
0
votes
0
answers
53
views
Redirect request of subdomain to server/path
Currently, we are having two webservers, the first one is directly handling request from domain1.com. I'm trying to deploy another webserver in which it will handle request from sub.domain2.com. ...
0
votes
1
answer
543
views
I broke my terminal trying to set up PATH environment to bin the JAVA directory and now nothing works, no bash commands, etc. Can I reset?
Basically I was just trying to set up a PATH environment variable that pointed to the /bin directory inside the main Java directory.
I did this by doing: sudo nano /etc/paths.
But then couldn't get ...
1
vote
0
answers
76
views
Terraform, specifying location for vms on datastore
I was wondering as I couldn't find it in the documentation or I've missed it a lot.
I am using Terraform 0.12.9 with newest vsphere provider. My goal is to do a clone from a template and it basically ...
1
vote
0
answers
923
views
Configure NGINX by passing CLI parameters instead of config file
I am looking for a way to change some config parameters dynamically before running NGINX. Perfectly by using command line parameters. I want to write a bash script that takes for example two ...
-1
votes
1
answer
350
views
Can't change global PATH environment in ubuntu 18.04
I tried editing /etc/environment, changed it by removing games and adding my swift installation location, so now it looks like:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/...
0
votes
1
answer
34
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
1
answer
25
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
1
answer
156
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
0
answers
2k
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
...
1
vote
1
answer
2k
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
1
answer
343
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
1
answer
152
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
2
answers
7k
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
1
answer
2k
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
2
answers
466
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
1
answer
25
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\...
3
votes
2
answers
5k
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
1
answer
45
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 ...
2
votes
1
answer
2k
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-...
2
votes
1
answer
5k
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
1
answer
271
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
1
answer
938
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
1
answer
49
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
1
answer
80
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
2
answers
1k
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
0
answers
2k
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 ...
0
votes
1
answer
2k
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 ...
5
votes
3
answers
5k
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
0
answers
471
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
0
answers
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
2
answers
3k
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
1
answer
415
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
0
answers
80
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 ...
5
votes
1
answer
6k
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
2
answers
55
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
1
answer
1k
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
1
answer
2k
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
0
answers
2k
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 ...