Answered step by step
Verified Expert Solution
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
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