Computer Science, asked by astuyd1152, 10 months ago

Write a shell script which read a particular empty directory and responds with a filename if any new file is created.

Answers

Answered by vamshikrishna36076
0

Hey mate

I am trying to write a shell script that will wait for a file to appear in the /tmp directory called sleep. txt and once it is found the programme will cease , otherwise I want programme to be in a sleep (suspended) state until the file is located. Now , I am assuming that I will use a test command something like,

( if [ - f " / tmp / sleep.txt " ]

then stop

else sleep.)

I am brand new to writing shell script and any help is greatly appreciated...!

ADD THIS ANSWER AS BRAINLIST

Similar questions