Questions tagged [path]

218 questions
1
vote
1 answer

Bash, script that check soft

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 [ -f "/bin/grep" ] && [ -x "/bin/grep" ] ; then echo …
Valeriu
  • 43
  • 1
  • 2
  • 8
1
vote
2 answers

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/mydomain/customers/custumer1; } location…
1
vote
2 answers

OSX Leopard - PATH change doesn't persist

I tried to change the $PATH using the following command: export PATH=/opt/subversion/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin (i use the full variable…
elado
  • 109
  • 5
1
vote
0 answers

How to change $PATH for crontab in Opensuse

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 few options after reading various posts online: * *…
1
vote
0 answers

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 Server.app
1
vote
2 answers

System path does not extend to all accounts?

In Control Panel->System->Advanced->Environment Variables, the PATH variable in the bottom part (the system, not just my profile) contains my perl path. Yet when I try to run system('perl ...') from a mod_perl2 script, it can't find the…
Kev
  • 984
  • 4
  • 23
  • 46
1
vote
1 answer

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 subshell is a separate child shell generated from …
user312130
  • 11
  • 2
1
vote
0 answers

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 files are correct. I just cannot connect to the…
MarkJL
  • 131
  • 8
1
vote
1 answer

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 /Library/LaunchDaemons/com.foo.foo.plist
Stevko
  • 21
  • 3
1
vote
1 answer

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 client. I'm trying to use the puppetlabs 'shell'…
shearn89
  • 3,403
  • 2
  • 15
  • 39
1
vote
1 answer

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 # find /srv/www/pages/com.example.www/www | xargs…
1
vote
0 answers

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 some modules are not able in @INC, I've solved…
tester3
  • 165
  • 2
  • 8
1
vote
0 answers

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 I have a Server running on root and it's starting…
xlw12
  • 111
  • 2
1
vote
2 answers

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 visited the index page to do the initial set up,…
MetaNova
  • 171
  • 1
  • 6
1
vote
3 answers

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?
John Smith Optional
  • 502
  • 2
  • 9
  • 18