Description:Write a shell script (to run on the Bourne shell) that runs an infinite loop to monitor the creation and removal of .pdf or .PDF files under the current directory. Every 3 seconds it should display a list of those filenames created or removed after the previous display. Without loss of practical significance of this utility, we can assume that the time interval between creation of a .PDF or .pdf file and removal of a .PDF or .pdf file is over 3 seconds, which means that it’s unnecessary for your script to handle the situation where creation of a file is followed by immediate removal of a file. (Hint: research the cmp and comm commands.) Your script for this task must be named tasktwo.sh. The following is a sample output of the script (It is OK that the script leaves behind a temporary file when it is finally interrupted):No pdf files have been created or removed in the last 3 seconds.No pdf files have been created or removed in the last 3 seconds.The following pdf file(s) have been created in the last 3 seconds:a3.pdf a4.pdf a5.pdfThe following pdf file(s) have been removed in the last 3 seconds:a4.pdf a5.pdfNo pdf files have been created or removed in the last 3 seconds.No pdf files have been created or removed in the last 3 seconds…. … … … …
[UNIX] Shell Scripting (Bourne) Loop Question, programming homework help
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructions
- Make a payment for the order to be assignment to a writer
- Download the paper after the writer uploads it
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Recent Comments