If you ever find yourself deep within the console of a remote Unix/Linux server, locked down by a thousand firewalls and in quick need of saving a log file for later analysis then your best friend could be the mail command! Just type the following, replacing me@example.com with your email address, naturally 😉
1 |
cat secret.log | mail -s "Secret API Log File" me@example.com |