Emailing output comand line

I recently had to prove the update status of apache as part of a PCI scan, and the best method for obtaining the output, was to email it to myself, like so

rpm -q --changelog httpd | mail -s "Subject" user@example.com

This makes it much easier to review and handle large outputs without having to be on the original linux system.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *