Help... I ran this line and I do get an email with an attachment, but the attached file is empty.
grep "$(date +"%b %d")" order.log|grep "SEVERE"|tee ord_err.log|uuencode ord_err.log ord_err.log|mailx -s "test"
xyz@xyz.com
I ran just this part of it: grep "$(date +"%b %d")" order.log|grep "SEVERE" and I do get output as seen below:
Nov 18 05:02:26 [SEVERE] Ord <R00055430405-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000553218-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000554462-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000553781-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000552862-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000553084-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000553640-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000550070-SFI> has status <S> and therefore can't be deleted.
Nov 18 08:47:17 [SEVERE] Ord <P00000553780-SFI> has status <S> and therefore can't be deleted.
Question is, why is it sending a blank file?