I am looking to write a script will tell me what disk usage is being used and processes.
This script will be required to run several times a day, could you please help.
Regards
Simon Simon Peter Wickham
Email: s.wickham@zoom.co.uk
Thank you for getting back to me the purpose of the script is to moniter system usage and then write them either as a text file or as a csv so i am able to improve system performance .
I have ran the command top -s1 which is fine but due to i am working on the system constat it would be easier to run the script every say 2 hours.
hope this can help you to help me
Regards
Simon Simon Peter Wickham
Email: s.wickham@zoom.co.uk
Probably the easiest is to write a script to run the command you want and append the output (use >> instead of just >) to a file. Then Schedule the script through cron to run at 8:00, 10:00, 12:00, 14:00, etc.
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.