3 Mar
2015
3 Mar
'15
11:08 p.m.
This seems simple enough...I'm just not script wizard. If someone can throw together a starting point I can test and tweak it from there. It seems to me:
- Read /var/mail/mail.err or specified logfile
- For each "failed: read(/var/mail/attachments/aa/bb/attachmentHash-userHash" line, a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists i. If attachmentHash is missing display such for possible backup searching. b. create link attachmentHash-userHash to hashes/attachmentHash
- Continue to end of file
Can this be done via "pure" BASH? Need sed/awk as well?
-- Daniel