Subject: Re: /etc/rc.d scripts and $PATH
To: Peter Seebach <seebs@plethora.net>
From: Greg A. Woods <woods@weird.com>
List: current-users
Date: 09/15/2003 15:22:30
[ On Monday, September 15, 2003 at 04:02:24 (-0500), Peter Seebach wrote: ]
> Subject: /etc/rc.d scripts and $PATH
>
> In days of yore, there was no convenient way to access stat(2) from a command
> line, so I wrote a utility named, inventively, 'stat'.
> 
> So now, if I try to run some rc.d scripts from a prompt, they fail because
> my $PATH is wrong.  Shouldn't rc.d scripts set their paths to /usr/bin and
> /usr/sbin (or whatever) preemptively?

I think the right question would be:  why isn't your "stat" utility
sitting in /bin where: (a) it will be around at the time _any_ rc.d
script might need it; and (b) all good, small, low-level, user-land,
system tools reside?  :-)

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>