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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!