Hi all,
I need a bash script to do the following:
A list of currently running proccess's owned by root!
Amount of time the machine has been up and load average
List of all used and unused space on OS partition
List of all users online(on machine)
Also if the HD space is below 5% then email send an email to a specified email address or default with date, and username of person who executed this script!
Then it needs to put all of this into an email and email to an inputted email address and if not entered email to a defualt email address.
Anyone give me any idea of what to do? PLEASE
I need a bash script to do the following:
A list of currently running proccess's owned by root!
Amount of time the machine has been up and load average
List of all used and unused space on OS partition
List of all users online(on machine)
Also if the HD space is below 5% then email send an email to a specified email address or default with date, and username of person who executed this script!
Then it needs to put all of this into an email and email to an inputted email address and if not entered email to a defualt email address.
Anyone give me any idea of what to do? PLEASE