[NTLUG:Discuss] Script help

Wayne Walker wwalker at solid-constructs.com
Tue Sep 14 11:58:41 CDT 2010


On Tue, Sep 14, 2010 at 11:18:23AM -0500, Patrick R. Michaud wrote:
> On Tue, Sep 14, 2010 at 09:15:11AM -0700, Fred wrote:
> > I wrote a little script that works just fine when I invoke it manually
> > but when I put it into the /etc/init.d startup scrip "local" (where I have
> > other misc scripts) it refuses to start... or continue to run after the
> > rc5.d quits, or whatever. Bottom line is that when I do a ps -ef |grep 
> > <scriptname>
> > it is not running.

Most likely, you program depends on your user's PATH.  When run by init,
the PATH is likely /bin:/usr/bin

> Out of curiosity, why not use cron to run it periodically 
> instead of always running and sleeping?

Agreed, cron is underutilized.

-- 

Wayne Walker
wwalker at solid-constructs.com
(512) 633-8076
Senior Consultant
Solid Constructs, LLC



More information about the Discuss mailing list