Hi everybody,
I have a exercise like below but I am new in python and I need your idea for this exercise,
If you have any idea, please let me know.
Thanks!
+) Write one script to check status of server in real time (memory, storage, process) if any process take memory over 90% --> kill it.
For this exercise I only know ‘top’ command to check process in real time, to kill one process we use ‘kill -9 PID’ PID is process id get from top command.
But I don’t know how to perform this work in python.
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?