LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't modify PATH globally for SOAP interaction... (https://www.linuxquestions.org/questions/linux-newbie-8/cant-modify-path-globally-for-soap-interaction-122295/)

crazybio 12-03-2003 10:40 AM

Can't modify PATH globally for SOAP interaction...
 
Hello,

I am a linux newbie. I am trying to get a path to a program in the environment PATH. I tried modifying the /etc/profile and adding to PATH, but it doesn't seem to work using the following:

PATH=/usr/local/bin/MEME/meme.3.0.4/bin:$PATH
export PATH

When I log out and log back in, I type printenv PATH, but the PATH does not contain the new program path!!!

I am trying to get the location to the program in the global PATH environment so that any user will be able to call the program without having to modify every user's .bash_profile.

Then I discovered that SOAP interactions or CGI scripts do not load the bash environment (is this correct?). I have a SOAP server that is supposed to run the program, but since it can't see it in the PATH environment, it doesn't work. I am at my wits end after having tried for 3 days. Please help!! Thanks in advance.

crazybio 12-03-2003 10:45 AM

I forgot to add that the system call that runs the meme program within a perl method explictly states the correct path to the program. I also added a BEGIN block that modifies the PATH using $ENV{PATH} = '/usr/local/bin/MEME/meme/bin:/usr/local/bin:/usr/bin:/bin';

Tinkster 12-03-2003 01:29 PM

Try to put something like
Quote:

soap.sh
Code:

#!/bin/sh
export PATH=$PATH:/usr/local/bin/MEME/meme.3.0.4/bin


in /etc/profile.d


Cheers,
Tink


All times are GMT -5. The time now is 05:12 PM.