Re: [Hampshire] Pipe issues

Top Page

Reply to this message
Author: Leo
Date:  
To: Jim Kissel
CC: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Pipe issues
Unfortunately that didn't make a difference.

Jim Kissel wrote:
>
>
> Leo wrote:
>> I've got a shell script that calls a program and pipes its output to
>> grep, i.e.
>>
>> #!/bin/bash
>> ....
>> program | grep -v "remaining\s*$"
>> ....
>>
>> When I run the script this works fine (i.e. no lines output ending in
>> remaining). However if I set the script to run using anacron then I
>> always get an email with loads of lines with "remaining" on the end of
>> them. I've tried loads of things to attempt to debug it, but to no
>> avail. Can anyone help?
>>
> set $PATH just after #!/bin/bash to what ever your local environment has
> it set to.
>
> YMMV
>