Hey there! I know it’s been a month since my last post, I’m sorry about that but I’ve been pretty busy this days, having a lot to do at work and also being a full time student, so anyway, this time I’m sharing with you a nifty tip regarding notifications using mailx on UNIX, so without further ado, here’s the actual code:
#!/bin/ksh
#
# mailx settings:
#
to=“someone@somewhere.com”
subject=“[Notification] Something happened.”
body=“Lorem ipsum dolor sit amet et cétera.”
#
# run and notify:
#
runSomething && (echo $body | mailx -s “$subject” “$to”)
I hope you find it interesting, thanks much for reading and don’t hesitate to leave a comment!








![Ubuntu Feisty Fawn + Oracle Database 10g XE [WebApp] Ubuntu Feisty Fawn + Oracle Database 10g XE [WebApp]](http://farm2.static.flickr.com/1345/1086311454_f6fc5002f5_t.jpg)
0 Responses to “UNIX Programming: Simple Notifications With mailx”