you can create a simple shell script to do that.
Just use vi and create a file, inside the file you will put the necessary proccesses, when the event occurs "mail admin@admin"
$1 is the text file I use. As I am the one who creates the text file, I can put the following in:
From: Pen Name <Stoke@slightlysillyaddress.com>
To: Stoke <Stoke@sillyemailaddress.com>
Subject: Email Success!
Message goes in here.
~~~~~~~~~~~~~~~~~~~~~
I found this on the internet and tried it and it worked. Now the event is to figure out how much disk space each user is using and when it reaches a certain limit to mail a message that says to please erase some messages.
I am just getting started trying to figure it out. I would have to use a variable name for the user so the above approach may not work so well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.