Re: [Hampshire] Pipe issues

Top Page

Reply to this message
Author: Leo
Date:  
To: Simon Reap
CC: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Pipe issues
Simon Reap wrote:
>
> I would put the grep string in single quotes - anacron may be messing up
> the trailing $
>
> (BTW, did anyone else read the subject of this email and assume it was
> carrying on the armoured ethernet thread?)
>


That didn't help either, but it did give me an idea. I did a ps -ef
while anacron was getting my script to run and noticed this:
grep -v remaining\s*$

without quotes, so I've now changed my script to try:
program | grep -v \"remaining\\s*$\"
and
program | grep -v \'remaining\\s*$\'

which means ps -ef gives
grep -v "remaining\s*$"
and
grep -v 'remaining\s*$'

However it still doesn't work when run from anacron :(

(Sorry for the confusion)

Leo