in Unix, Web

Email yourself a log file

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 [email protected] with your email address, naturally ;-)

cat secret.log | mail -s "Secret API Log File" [email protected]

Write a Comment

Comment