Re: Help runninh .sh files
- From: "Dan Martin" <dc.martin@xxxxxxxxxxx>
- Date: 24 Oct 2006 06:38:23 -0700
Kevin wrote:
Hello all,
We are replacing a SCO system. Our old system had many custom .sh files
in the /usr/bin directory. These files could be executed from any
directory including / by just typing the file name.
Example:
/usr/bin/file.sh could be executed from / by typing "file"
Kevin, did you use "file" literally or as an example. If the former,
what does /usr/bin/file.sh do? If you type "file", I would think
that /bin/file is being executed.
in /usr/bin there is an entry for every file like file -> /usr/bin/file
Not file -> /usr/bin/file.sh ? This would be a sym link.
Check your path
echo $PATH
to see the search order for execution.
I suggest you move all of your .sh files to some other directory,
then inlcude that directory in your path.
You might also want to test for the existence of like-named files
in /etc, /bin, and /usr/bin before re-creating links to the .sh files.
Do a "man basename" to see how you might write a script to
How do I recreate these links on my new machine?
quickly link all files of the form xyz.sh to xyz
Good luck,
Dan Martin
Cheers!
-Kevin
.
- References:
- Help runninh .sh files
- From: Kevin
- Help runninh .sh files
- Prev by Date: Re: Help runninh .sh files
- Next by Date: Re: Dbxtra coredump
- Previous by thread: Re: Help runninh .sh files
- Next by thread: java.5.0_upd6 update on OSR6
- Index(es):
Relevant Pages
|
|