[Hampshire] Pipe issues

Top Page

Reply to this message
Author: Leo
Date:  
To: Hampshire LUG
Subject: [Hampshire] Pipe issues
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?

Thank you,
Leo