[Hampshire] Pipe issues

トップ ページ

このメッセージに返信
著者: Leo
日付:  
To: Hampshire LUG
題目: [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