Lost my Way


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Lost my Way
# 1  
Old 01-31-2008
Lost my Way

I want to execute my own utilities from my bin folder without having to specify paths at run time - i.e. just enter name on command line - to do
this my search path needs to be set up at login time - when I do this the path is not getting set right apparently(?) - PATH echos OK but the search
path is not functioning(?) until I set it at the prompt -
For example:
--------------------------------------------------
login as: bstansel
Using keyboard-interactive authentication.
Password:
Last login: Thu Jan 31 10:52:06 2008 from administrator
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00$ echo $PATH
/usr/bin:/adminhome/bstansel/bin
-bash-3.00$ LookFor . skip
-bash: LookFor: command not found
-bash-3.00$ PATH=/usr/bin:/adminhome/bstansel/bin
-bash-3.00$ LookFor . skip
./gorm
-bash-3.00$
-bash-3.00$ cat .profile
# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
export PATH=$PATH:$HOME/bin
MAIL=/usr/mail/${LOGNAME:?}
-bash-3.00$
--------------------------------------------
It looks like the profile is working OK - the PATH looks OK - but the
LookFor utility is not found until after PATH is (re?)set - at which time it is found - ???

AHA (All Help Appreciated)

Many Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I am so lost !!!

I am taking an online Linux class, which is mandatory for me to graduate. Unfortunately I got the worst online teacher ever, he never respond to any e-mails. I have no idea what going on in this class so I am turning to you guys. Here is the questions for the week, Ok I don't expect anybody to... (1 Reply)
Discussion started by: Thunderbunny
1 Replies

2. UNIX for Dummies Questions & Answers

I am so lost...

I have been using linux now for about 6 months. I like it although it was quite a learning process. Pretty simple for the most part. Here is my prob... The first time I installed linux on my computer it went in just fine, no problems. It did eventually crash though and I had to re-install it.... (2 Replies)
Discussion started by: Treb
2 Replies

3. UNIX for Dummies Questions & Answers

I'm so lost...

Fair warning... I know nothing of Unix. That's why I joined this forum and I need your feedback desperatly. Here is the situation... I built an app using ASP and Northcode's SWF Studio v3 for a cd launcher tool for a client that develops software. They like the app and it works well on... (2 Replies)
Discussion started by: daJabberwocky
2 Replies

4. UNIX for Dummies Questions & Answers

ok im like lost and confused!!

:eek: im trying to make a website and im on a site that tells how... but, it says 2 access my unix account to make 1 online and im alrdy confused!! (1 Reply)
Discussion started by: blugsnorfia
1 Replies

5. Filesystems, Disks and Memory

Lost Data Lost Admin

First time so excuse my ignorance please. I may not be accurately describing the issue. I have inherited a small lab mostly SUN V120s. We lost power and are trying to recover. Nope no backups... The primary issue I have is 1 box is an Oracle Server. It has 2 36Gb harddrives. I am able to... (3 Replies)
Discussion started by: murphsr
3 Replies

6. UNIX for Dummies Questions & Answers

So lost

I have been reading up on starting a website, but i am still lost. I am in much need of assistance. Kind of a step by step because i still don't know where to start. please help. thank you (1 Reply)
Discussion started by: sweetie020602
1 Replies

7. Programming

Packets Getting Lost

I am working on a project, which has the following type of hardware setup. A special hardware device is receiving data from an external network interface. So we can have multiple such a hardware devices. Now these hardware devices will route the captured incoming data through the external... (4 Replies)
Discussion started by: S.P.Prasad
4 Replies

8. UNIX for Dummies Questions & Answers

Interested, but lost.

Alright, so I'm interested in using Unix, but I have a couple of pretty basic questions: 1) What's the relationship between Linux and Unix? Are they one and the same, or completely different? 2) Can you use Unix on a laptop? and 3) Where can you get Unix? Thanks for listening. (9 Replies)
Discussion started by: Ned
9 Replies

9. Shell Programming and Scripting

lost again

will this script work? I want to use it in unix. clear ans='y' While test $ans='y' do notfound() { echo $response " is not logged in" } found() { echo $response "is logged into " $name } name=`ps -eaf | grep "\<$response\>" | cut -b 80-85` if ; then name=`rsh server2 ps -eaf... (7 Replies)
Discussion started by: azman
7 Replies
Login or Register to Ask a Question
KLDCONFIG(8)						    BSD System Manager's Manual 					      KLDCONFIG(8)

NAME
kldconfig -- display or modify the kernel module search path SYNOPSIS
kldconfig [-dfimnUv] [-S sysctlname] [path ...] kldconfig -r DESCRIPTION
The kldconfig utility displays or modifies the search path used by the kernel when loading modules using the kldload(8) utility or the kldload(2) syscall. The following options are available: -d Remove the specified paths from the module search path. -f Do not display a diagnostic message if a path specified for adding is already present in the search path, or if a path specified for removing is not present in the search path. This may be useful in startup/shutdown scripts for adding a path to a file system which is still not mounted, or in shutdown scripts for unconditionally removing a path that may have been added during startup. -i Add the specified paths to the beginning of the search path, not to the end. This option can only be used when adding paths. -m Instead of replacing the module search path with the set of paths specified, ``merge'' in the new entries. -n Do not actually change the module search path. -r Display the current search path. This option cannot be used if any paths are also specified. -S sysctlname Specify the sysctl name to use instead of the default kern.module_path. -U ``Unique-ify'' the current search path - if any of the directories is repeated one or more times, only the first occurrence remains. This option implies -m. -v Verbose output: display the new module search path. If the path has been changed, and the -v flag is specified more than once, the old path is displayed as well. FILES
/boot/kernel, /boot/modules, /modules The default module search path used by the kernel. EXIT STATUS
The kldconfig utility exits 0 on success, and >0 if an error occurs. SEE ALSO
kldload(2), kldload(8), sysctl(8) HISTORY
The kldconfig utility first appeared in FreeBSD 4.4. AUTHORS
Peter Pentchev <roam@FreeBSD.org> BSD
June 15, 2001 BSD