Re: Help runninh .sh files



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.


How do I recreate these links on my new machine?

Do a "man basename" to see how you might write a script to
quickly link all files of the form xyz.sh to xyz

Good luck,
Dan Martin


Cheers!

-Kevin

.



Relevant Pages

  • Re: GAC
    ... program's execution. ... Kevin Yu ... "This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.dotnet.general)
  • Re: urlMappings interaction with web.config hierarchy
    ... Presumably I either need a way to manually load configuration files before the Rewrite happens, or I need a way to execute a .aspx class as if it were located at a different location. ... I have written custom url mapping modules, but nothing I know how to do will allow me to solve my problem. ... that's not the currently execution directory, use the GetSection(string, ...
    (microsoft.public.dotnet.framework.aspnet)
  • delete button problems in datagrid
    ... i'm thinking its a problem with the database but here is the code: ... because i put some trace.write's in there to follow execution. ... it just doesnt do anything except post back. ... on which button they push in the custom box and get it to the codebehind for ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)