$ mailme(){ mailx -s “$@” $USER <<< "$@"; }

Usage: mailme message

This is a useful function if you want to get notified about process completion or failure. e.g.

mailme “process X completed”

View this command to comment, vote or add to favourites
View all commands by sharfah

commandlinefu.com

by David Winterbottom (codeinthehole.com)



Tags: