On Wed, 20 Jun 2001, R.I.P. Deaddog wrote:
> On Tue, 19 Jun 2001, Sebastian Dransfeld wrote:
>
> >
> > I have submitted this patch before, and I think it's sane. Please look at
> > it an say if I'm insane.
> >
> > seb
> >
> > --- autofs.old Tue Jun 19 17:19:24 2001
> > +++ autofs Tue Jun 19 18:06:26 2001
> > @@ -267,10 +267,10 @@
> > TMP1=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >&
>2; exit 1; }
> > TMP2=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >&
>2; exit 1; }
> > getmounts >$TMP1
> > - ps ax|grep "[0-9]:[0-9][0-9] $DAEMON " | (
> > + ps axwww|grep "[0-9]:[0-9][0-9] $DAEMON " | (
> > while read pid tt stat time command; do
> > echo "$command" >>$TMP2
> > - if ! grep -q "^$command" $TMP2; then
> > + if ! grep -q "^$command" $TMP1; then
> > while kill -USR2 $pid; do
> > sleep 3
> > done
>
> Sorry to be picky..... two w's is enough, the third one is useless :P
Oki, learn new things every day. Just saw 3 w's where used somewhere else.
Never checked the differnce between one and more w's.
seb