Questions tagged [path]
218 questions
2
votes
1 answer
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 loads the daemon. So, I have to stop/start the…

tahoar
- 121
- 1
2
votes
1 answer
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. Here's what I'm thinking:
Instead of just guessing…

brock
- 123
- 3
2
votes
4 answers
Path for Windows Services?
I've got a service that I need to start as a different user to 'Local System'
There is a user specific PATH I need to add to the default path in order for the service to work correctly.
The default PATH is A;B;C;
I've setup the users PATH X; so that…

Cephas
- 443
- 1
- 4
- 10
2
votes
1 answer
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 to figure out yet.
I'm using a USB Stick that…

Dempsey FoxDie Van Assche
- 157
- 1
- 5
2
votes
2 answers
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 is not sufficient as it's only check the existence…

Stan
- 1,387
- 6
- 24
- 40
2
votes
0 answers
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 python in it, among other things. But running…

Brian Hicks
- 185
- 1
- 8
2
votes
3 answers
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 made.
I would like to have
[current_path] in my…

Rubytastic
- 223
- 1
- 2
- 14
2
votes
1 answer
linux PATH issue between /usr/bin/ and /usr/local/bin
Environment:
linux novice :)
tmux 1.1 was installed using apt-get
tmux 1.6 was downloaded, configured, built, and installed from source
tmux 1.1 was removed using apt-get
Problem:
running tmux from path tries to run it from /usr/bin instead of…

bVector
- 140
- 2
- 10
2
votes
4 answers
Run compiled c program from any location
Quick question. After compiling a program, I always have to explicitly tell it to run from the current directory by prepending ./ to the name. For example $ ./testprog -argument1
Is there a way to set up some kind of alias which would allow me to…

Headspin
- 129
- 2
2
votes
1 answer
Is is better to edit the paths file or exporting PATH in .bashrc/.bash_profile?
I have noticed that almost every website tells you to add something like export PATH=/usr/local/share/python:$PATH in your .bashrc or .bash_profile when modifying a PATH.
When you want to know what your PATH is, you can echo $PATH, but you get this…

hobbes3
- 615
- 2
- 10
- 23
2
votes
3 answers
how to run mysql v5.5 on redhat linux
I am new to both linux and also mysql but somehow by obtaining help from net I have installed mysql v5.5 on redhat. It starts fine, I have confirmed this by running command: "/etc/init.d/mysqld status"
I have installed required packages as well:…

Harshdeep
- 123
- 4
2
votes
1 answer
Setting Apache's PATH environment to match users
Using PHP 5.3 as an Apache module with Apache 2, on OS X 10.7.
When I open Terminal and enter echo $PATH I…

Jack Sleight
- 211
- 2
- 8
2
votes
3 answers
IP address of virtual server?
I have a virtual server (shared hosting), with a domain name (and several sub-accounts, each one a separate site also with its own domain name)
I was wondering if there was a way to find out the IP address of a domain name. I tried to ping it, but…

Mark
- 23
- 1
- 1
- 3
2
votes
7 answers
How do I figure out which file is being executed?
I have two files: abc.exe and abc.cmd - both along the path somewhere. abc.exe is a command-line utility. abc.cmd is a wrapper around abc.exe.
When I type "abc" in the command prompt, how can I figure out which file is being run and the full path…
user10014
2
votes
4 answers
Editing $PATH in Linux
I'm working on a linux client and I need to add my home directory path to $PATH but I was unable to do that.
I tried to find .bash_profile file and also .bashrc file but both are missing.
Please let me know how to achieve this.
Srikk