Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a bash script: a. It will run forever until the file /tmp/killspring exists. If that file exists, quit. b. It should count the

1. Write a bash script:

a. It will run forever until the file /tmp/killspring exists. If that file exists, quit.

b. It should count the number of files in /tmp (use wc), and output that count to the logs using the logger command.

c. Example log message: There are 10 files in /tmp.

d. After the logs are written, sleep 10 seconds.

2. Make a unit file which runs the script in question 1.

a. It starts as part of multi-user mode

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

More Books

Students also viewed these Databases questions

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

Write messages that are used for the various stages of collection.

Answered: 1 week ago