The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
72 views

same label along MPLS label switched path, is it possible?

I am a true beginner as far as MPLS is concerned and I was wondering if this would be possible; To be more specific assume a LSP (Label Switched Path) from Host A -> Router 1-> Router 2 ...
2
votes
1answer
299 views

taking care of long filenames

Yesterday I deployed a simple backup based on rdiff-backup on a windows server machine. Everything went fine...almost. Obviously our customer had a lot filenames/paths exceeding 250 chars. Every new ...
0
votes
1answer
17 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 ...
3
votes
3answers
3k 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 ...
4
votes
6answers
2k views

Prune duplicate entries from PATH variable

I modify my .bashrc frequently and then source it. However, when I have things like export PATH="~/bin:~/perl5/bin:$PATH" in my file, then the PATH environment variable grows every time I source the ...
1
vote
0answers
76 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 ...
0
votes
1answer
46 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
250 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
45 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
36 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
26 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
0answers
24 views

HAProxy: Balance between two paths on the same server

I need to balance between two paths on the same HTTP server using HAProxy. I.e. Opening myserver Should balance between myserver/path1 and myserver/path2 In my haproxy.cfg I tried using: listen ...
9
votes
2answers
4k views

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 ...
3
votes
1answer
2k views

PATH issues for init.d scripts on startup

I have a simple script that starts up a unicorn instance (on Ubuntu 12.04LTS). #!/bin/sh case "$1" in start) echo "starting" cd /path && bundle exec unicorn -c ...
0
votes
0answers
30 views

Use url path to make proxy condition in Apache

Having only one DNS, www.example.com, how can I distinguish the path to make conditions? For example, inside a VirtualHost what I want to do is: ServerAdmin admin@example.com ServerName ...
6
votes
3answers
10k views

Window 256 characters path name limitation

after a long research, I finally found out that pathnames cannot be longer than 256 characters even in the latest Microsoft Windows 7. I really don't get it why there is such a stupid limitation, ...
69
votes
8answers
75k views

how to set global PATH on OS X?

I'd like to append to the global PATH 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 ...
0
votes
1answer
24 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
0answers
422 views

Set JAVA_HOME is not working

I'm trying to set JAVA_HOME in CentOS 6.5 by editing the file ~/.bash_profile and adding this line at end: PATH=$PATH:$HOME/bin export PATH export ...
0
votes
1answer
48 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 ...
1
vote
1answer
725 views

“Path Not Found” when attempting to write to a sub folder within a mapped drive

We have an interesting issue with one of our server shares, or possibly, our Win 7 desktops. When our users try to save files in a sub folder, either via copy/paste or through an application, to a ...
0
votes
2answers
109 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
49 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
145 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
2answers
265 views

Long file path returning 404 for “hello.htm”

I have a long file path that works on my server, but a simliar path returns a 404 error when it is on my clients (IIS6) server (http://ddmat.com/). Here's the functioning file path on my server: ...
2
votes
3answers
3k 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: ...
0
votes
1answer
635 views

How to set global PATH on OS X Server 10.6.6?

I'm running Tomcat on OS X Server 10.6.6 under the normal Web component that comes with the OS. This has worked fine so far, but I need to add some entries to the $PATH environment variable for ...
0
votes
1answer
31 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
7k 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
1answer
38 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. ...
0
votes
0answers
35 views

Cloud9 set relative url

I was looking a lot but haven't found any information how to run Cloud9 not only in root but also in a relativeUrl like localhost:3131/user_1. I edited baseUrl param in ...
0
votes
0answers
44 views

Nginx: Switch path depending on location

I'am very new to nginx and I have to realize a location switch. We have a single point of entry https://www.main.de/. At this single point of entry I have to split up the requests depending on the ...
4
votes
2answers
200 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
2answers
755 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 ...
2
votes
1answer
52 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 ...
19
votes
4answers
70k views

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 :- ...
2
votes
1answer
140 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 ...
0
votes
1answer
124 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
45 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/ # ...
23
votes
2answers
12k views

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 ...
1
vote
3answers
275 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 ...
6
votes
5answers
24k views

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 ...
1
vote
2answers
9k views

Make PATH variable changes permanent on openSuse

Okay, so I'm trying to do something that should be rather simple but for some reason I can't quite seem to make it work. All I simply want to do is add a path to the PATH environment variable in ...
-1
votes
3answers
131 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 ...
2
votes
2answers
48 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 ...
0
votes
3answers
542 views

How to get executable path on Linux

I am calling a 'executable' on Linux. One way by console and another from PHP script. They both call other executable (i see it by version of file). So I need a way to display a path to executable ...
1
vote
0answers
386 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 ...
1
vote
2answers
4k views

Subdomain vhost.conf on Plesk 11

I'm using Plesk 11.0.9 - centOS and I'd like to change the vhost.conf file for a subdomain, but the path I'm using seem to be wrong : /var/www/vhosts/sub.domain.lu/conf/vhost.conf Is it the right ...
2
votes
3answers
109 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 ...
2
votes
2answers
182 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 ...