LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2003, 10:40 AM   #1
crazybio
LQ Newbie
 
Registered: Dec 2003
Distribution: red hat 8
Posts: 2

Rep: Reputation: 0
Unhappy 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.
 
Old 12-03-2003, 10:45 AM   #2
crazybio
LQ Newbie
 
Registered: Dec 2003
Distribution: red hat 8
Posts: 2

Original Poster
Rep: Reputation: 0
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';
 
Old 12-03-2003, 01:29 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify the root path at boot time jayhel Slackware 3 08-26-2005 11:40 PM
How to modify the system-wide PATH jayhel Slackware - Installation 8 04-22-2005 03:00 AM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
Globally set PATH for all users glock19 Red Hat 8 11-09-2003 02:25 PM
removing path variables globally Nevetsmik103081 Linux - General 1 07-05-2003 01:17 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration