[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script problem



On Sun, 25 Oct 1998, Itamar S.-T. wrote:

> Ze'ev Maor wrote:
> 
> > see that sometimes you get 2 lines of output - i.e. the grep actually
> > started running while the ps was running - and sometimes you'll only get
> > one, depends on load average/cpu scheduling.)
> 
> The pnserver always has two processes running, so $numps < 2 always works  if it
> includes the grep or not.
> 
> I do /usr/local/pnserver/checkpn and it doesn't *do* anything.  And I did chmod
> +x it. But if I cd to /usr/local/pnserver and then run ./checkpn it runs fine.

This is not a M$ OS. Scripts don't just do nothing without complaining.
What is the output when it 'does' something, and what happens when it
'doesn't'. Use script and post the result.

Peter