I have wriiten a small script that does similar to a df -k called dfk
I have placed it on to several of my clients servers.
What do I need to do to get the output of the dfk mailed to me instead of me logging on and collecting say every 5 hours.
run your 'dfk' script and output it to a file, say
dfk > dfkresults.txt
then, add to your script,
-------------snip---------------------
mail -s "dfk results" youremail@address.com < dfkresults.txt
-------------snip---------------------
that should work
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.