1
vote
1answer
286 views

Perl sendmail attach log files match date format

I want to send log files matching date format, e.g. YYYY-MM-DD-*.log as attachments in Perl script. In BASH, this can be easily done by: [ -f $DIR/explog/$(date "+%Y-%m-%d")-*-host1.log ] && ...
2
votes
1answer
404 views

How can I send emails from the command line with recipient tab-completion and proper file attachment?

A year ago I tried a couple of different email senders because I wanted to simplify sending emails from the command line. There are a couple of tools for it, I tried (I don't remember exactly): ...