Use valid Mbox file for mail

This commit is contained in:
Emilio Pinna 2018-06-17 11:28:23 +01:00
parent 06966c8cd4
commit 7fa5b1e16e

View File

@ -1,11 +1,17 @@
--- ---
functions: functions:
execute-interactive: execute-interactive:
- code: | - description: This creates a valid Mbox file which may be required by the binary.
mail -f /etc/hosts code: |
TF=$(mktemp)
echo "From nobody@localhost $(date)" > $TF
mail -f $TF
!/bin/sh !/bin/sh
sudo-enabled: sudo-enabled:
- code: | - description: This creates a valid Mbox file which may be required by the binary.
sudo mail -f /etc/hosts code: |
TF=$(mktemp)
echo "From nobody@localhost $(date)" > $TF
sudo mail -f $TF
!/bin/sh !/bin/sh
--- ---