1. Write a shell script to perform the following tasks: a. Redirect all running processes information...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b. Get a PID from the user and kill the process based on the given PID. c. Display all running processes and get the user to enter a process name. Use the killall to kill all processes with the given process name. d. Show all processes run by different users. Prior to this, you'll need to run a few terminals and switch user (su) to execute the programs. Provide the shell script along with the sample output screenshot. Refer to the attached rubrics as a guide. Print a copy of the rubrics to be attached with this lab report (25 marks 1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b. Get a PID from the user and kill the process based on the given PID. c. Display all running processes and get the user to enter a process name. Use the killall to kill all processes with the given process name. d. Show all processes run by different users. Prior to this, you'll need to run a few terminals and switch user (su) to execute the programs. Provide the shell script along with the sample output screenshot. Refer to the attached rubrics as a guide. Print a copy of the rubrics to be attached with this lab report (25 marks
Expert Answer:
Answer rating: 100% (QA)
It looks like youre asking for a shell script that can perform a series of tasks related to process management on a Unixlike operating system While I ... View the full answer
Related Book For
1014 Practice Questions For The New GRE
ISBN: 9780375429682
2nd Edition
Authors: The Princeton Review
Posted Date:
Students also viewed these programming questions
-
In the ZZZZ Best case, explain the kinds of evidence that the auditors gathered and how the auditors failed. just write one or two paragraph to support ZZZZ Best Case On May 19, 1987, a short article...
-
Most websites have images. There are many different features and functionalities that can be used to work with images via the use of JavaScript. These include preloading, rollovers, and cycling...
-
Give examples of how cultural differences may affect at least two human resource (HR) functions. Examples of these functions may include recruitment and hiring, employee and/or management...
-
State the criteria that must be met for an experiment to be a binomial experiment.
-
Briefly describe the test statistic.
-
Refer to the budgets prepared in Exercise E22- 25. Determine the cost per kit to manufacture the model airplane kits. Grady projects sales of 325, 400, 475, and 525 kits per quarter. Prepare a cost...
-
SOUTH DAKOTA CORPORATION SOUTH DAKOTA CORPORATION uses a job - order costing system with normal costing. At the start of the period, the company had the following balances: Raw Materials inventory $...
-
Use the template for the ABC Corp. valuation in section 2.7 to value Cisco stock. Assume that the weighted average cost of capital for Cisco is 12.6%, the growth rate for years 15 is 4%, and that the...
-
If I have an input such as: x='123456' print(', '.join(x)) which gives an output of 1, 2, 3, 4, 5, 6. What would be the output that produces a comma after 2 numbers such that the output is: 12, 34,...
-
What are guaranteed investment contracts (GICs), and what role do they play in 401(k) plans? What investment vehicles might be suitable for funding a Keogh or IRA?
-
Honeybees accumulate charge as they fly, and they transfer charge to the flowers they visit. Honeybees are able to sense electric fields; tests show that they can detect a change in field as small as...
-
Briefly describe each of the following strategies that trade current income for capital gains income. a. Growth stocks b. Deep-discount bonds c. Income property depreciation
-
An electrophoresis gel rests between two parallel plates; the potential difference between the plates is 50 V. Each second, 50 mC of charge moves through the gel. What is the increase in thermal...
-
Describe and compare the key features of the following types of educational savings plans. a. Coverdell Education Savings Account (ESA) b. Section 529 College Plan
-
The ratio of two numbers P and Q is same as ratio of (P + 2R) and (Q + R). What will be the value of (4P + 3Q) : (4P - 3Q)? 1. 5:2 2. 4:3 3. 11:5 4. 13:6 17:8 5.
-
Explain the differences and similarities between fringe benefits and salary as forms of compensation.
-
Mariko can knit 5 rows of a scarf in x minutes. If there are 100 rows in each foot of the scarf, how many hours, in terms of x and y, will it take Mariko to finish a scarf that is y feet long? a....
-
Few want to believe that Lisa de Giocondo, the woman popularly believed to have been the model for da Vincis Mona Lisa, was a(n) _______ person and prefer instead to think that there is an enigma...
-
In the figure above, c is 4/5 of d. What is the value of c? 72 80 100 108 120 C
-
What is the present value of the following future amounts? a. $805 to be received 10 years from now discounted back to the present at 10 percent b. $376 to be received 5 years from now discounted...
-
To what amount will the following investments accumulate? a. $6,000 invested for 12 years at 12 percent compounded annually b. $7,500 invested for 8 years at 8 percent compounded annually c. $6,400...
-
At what annual rate would the following have to be invested? a. \($820\) to grow to \($1,988.12\) in 13 years b. \($320\) to grow to \($423.10\) in 6 years c. \($57\) to grow to \($290.30\) in 18...
Study smarter with the SolutionInn App