Little script I put together - OS X
trgc
Script mails the email of your choice the time and any changes to ports since the last time it was ran. Still tweaking it but wanted to share progress.

[Image: jvmelWLlIquoX.jpg]

Code:
cp ports ~/.scripts/ports_old
port installed > ports

date >> mail
echo >> mail
echo Port changes: >> mail
diff -u ports_old ports | sed -n '1,2d;/^[-+]/p' >> mail
mail -s "System Report" {email address} < mail
rm mail




Members  |  Stats  |  Night Mode