[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Getting the location of the of the nmh executables fro
Re: [Nmh-workers] Getting the location of the of the nmh executables from a script
Tue, 27 Jan 2015 13:31:05 -0500
The problem, I meant to add to my email but forgot, is that this below
script will (well, should) find itself first. You have to teach the
script to recognize itself and go for the next match. Again, not sure
how to do that off the top of my head. I'm pretty sure $0 conatins the
name of the script as it was invoked, and not necessarily its full proper
--hymie! http://lactose.homelinux.net/~hymie address@hidden
>while [ "x$P" != "x" ]
> D=`echo $P | cut -d: -f1`
> if [ -f $D/scan ]
> echo "found $D/scan"
> exit 0
> P=`echo $P | cut -s -d: -f2-`
>echo "did not find scan"
>>How, from a script, can I get the location of the nmh executables. I don't
>>mean the location of the "fancy" executables that `mhparam libexecdir`
>>gets me, but the location of the "user" executables, like scan.
>>Yes, I know, it will be in $PATH, but I want to make sure that I get
>>the right component of $PATH.
Re: [Nmh-workers] Getting the location of the of the nmh executables from a script, hymie, 2015/01/27
- Re: [Nmh-workers] Getting the location of the of the nmh executables from a script,