Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago