Question
Write a bash script called minips.sh. This script will look at each numbered directory in the /proc directory and for each process print the running
Write a bash script called minips.sh. This script will look at each numbered directory in the /proc directory and for each process print the running program's name name, its process id, and its current state. You can find the name and state of a process in /proc//status. You may notice that there are some errors involving processes that disappear too fast to look at their status files. That is fine, just pipe the errors to /dev/null. Use functions to break up the different parts of the script. You will likely need to use file processing tools you learned in earlier labs to extract the needed information.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started