Sponsored Content
Top Forums UNIX for Dummies Questions & Answers PLease HELP!!! PATH variable issue Post 302532349 by siddhans on Monday 20th of June 2011 04:58:30 PM
Old 06-20-2011
if i go to etc/profile I see different path than /usr/bin:/usr/local/bin:/usr/bin/usr/sbin:/usr/ucb:/usr/local/bin


So where is this PATH variable located?

---------- Post updated at 03:58 PM ---------- Previous update was at 03:56 PM ----------

Quote:
Originally Posted by Corona688
Put export variable=whatever in your ~/.bash_profile and it should get run when you run bash -l.
So for setting global variable which means if i log in to 2 instances of putty and see the same path variable I need to modify ~/.bash_profile??? Is that correct???


What about the .profile in my home directory?? How is that different??
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed variable substitution when variable constructed of a directory path

Hello, i have another sed question.. I'm trying to do variable substition with sed and i'm running into a problem. my var1 is a string constructed like this: filename1 filerev1 filepath1 my var2 is another string constructed like this: filename2 filerev2 filepath2 when i do... (2 Replies)
Discussion started by: alrinno
2 Replies

2. Red Hat

PATH issue on linux

If PATH is set to ../bin:../sbin:/usr/bin:/usr/local/bin (chunk of path string). Sometime when I try to execute ls command it says ../bin/ls not found. According to my understanding "ls" should be searched in all the path varibales that we set in the PATH varaibale. Is there any reason for the... (5 Replies)
Discussion started by: hansini
5 Replies

3. UNIX for Dummies Questions & Answers

issue with PATH

hello On Debian Lenny, I first ran apt-get install git-core and then removed it to install from source. The trouble is that when I typed git --version, I am get: -bash: /usr/bin/git: No such file or directory of course, git is now in /usr/local/bin I don't understand why since... (1 Reply)
Discussion started by: JCR
1 Replies

4. Shell Programming and Scripting

remove a path from PATH environment variable

Hi I need a script which will remove a path from PATH environment variable. For example $echo PATH /usr/local/bin:/usr/bin:test/rmve:/usr/games $echo rmv test/rmve Here I need a shell script which will remove rmv path (test/rmve) from PATH... (9 Replies)
Discussion started by: madhu84
9 Replies

5. Shell Programming and Scripting

one liner to extract path from PATH variable

Hi, Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable? for eg: suppose the PATH is being set as follows PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4 ... (2 Replies)
Discussion started by: royalibrahim
2 Replies

6. Shell Programming and Scripting

Appending a path in user's PATH variable

Hello Folks, I want to append a path in user's PATH variable which should be available in current session. Background Numerous persons will run a utility. Aim is to add the absolute path of the utility the first time it runs so that next runs have the PATH in env & users can directly run... (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

7. Shell Programming and Scripting

Path a variable to sed that includes a path

Hi I'm trying to select text between two lines, I'm using sed to to this, but I need to pass variables to it. For example start="BEGIN /home/mavkoup/data" end="END" sed -n -e '/${start}/,/${end}/g' doesn't work. I've tried double quotes as well. I think there's a problem with the / in the... (4 Replies)
Discussion started by: mavkoup
4 Replies

8. Shell Programming and Scripting

Variable value substitution issue with awk command issue

Hi All, I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command. The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies

9. UNIX for Dummies Questions & Answers

Prompt path display issue

I use the following command to print the current directory above the command prompt set prompt="`exec pwd`\n$USER@`hostname -s` %B: % > " The output is something like this <current path> $USER@hostname > But when I try to CD to any other directory and press the return key, the... (6 Replies)
Discussion started by: aelhosiny
6 Replies

10. Shell Programming and Scripting

ksh - variable to be set to windows path issue

Greetings Experts, I need to pass a parameter to ksh and the value is windows path eg: sh abc.txt C:\Users\chill3chee\Desktop No matter I try with \ delimiter, still could not get this exact value assigned to the shell variable which was checked with echo. Tried with using... (2 Replies)
Discussion started by: chill3chee
2 Replies
svscanboot(8)						      System Manager's Manual						     svscanboot(8)

NAME
svscanboot - starts svscan(8) in the /service directory, with output and error messages logged through readproctitle(8). svscanboot is available in daemontools 0.75 and above. SYNOPSIS
svscanboot DESCRIPTION
svscanboot runs the pipeline svscan /service 2>&1 | readproctitle service errors: ..... with 400 dots. The last 400 bytes of error messages from svscan(8) will be visible to ps(1) through readproctitle(8). svscanboot sets $PATH to /command:/usr/local/bin:/usr/local/sbin: /bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin (all in one line, no space) and clears all other environment variables. Program writers are encouraged to use globally allocated names in /command. SEE ALSO
supervise(8), svc(8), svok(8), svstat(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), tai64nlocal(8), setuidgid(8), envuidgid(8), envdir(8), softlimit(8), setlock(8), ps(1) http://cr.yp.to/daemontools.html http://cr.yp.to/slashcommand.html svscanboot(8)
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy