🤗lemmyverseultrahug@lemmy.ml to Linux Questions@lemmy.zipEnglish · edit-24 months agoRun a shell script whenever a file in a certain directory changes?message-squaremessage-square22fedilinkarrow-up121arrow-down10file-text
arrow-up121arrow-down1message-squareRun a shell script whenever a file in a certain directory changes?🤗lemmyverseultrahug@lemmy.ml to Linux Questions@lemmy.zipEnglish · edit-24 months agomessage-square22fedilinkfile-text
Using a shell script, can I watch a folder and block program execution until a file in a certain folder changes?
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up9·4 months agoThis is a terrible solution. You will stress your IO for no reason.
minus-square🤗lemmyverseultrahug@lemmy.mlOPlinkfedilinkEnglisharrow-up1arrow-down1·edit-24 months agoOn the upside, you do not need to install the inotifywait package. md5sum already installed on my system haha
minus-squarePossibly linux@lemmy.zipMlinkfedilinkEnglisharrow-up2·4 months agoIt isn’t a terrible solution if you are checking infrequently just as ever 30 minutes.
minus-square🤗lemmyverseultrahug@lemmy.mlOPlinkfedilinkEnglisharrow-up2arrow-down1·4 months agoI do not need to install anything/can work on bare install without internet connection?
minus-squarePossibly linux@lemmy.zipMlinkfedilinkEnglisharrow-up1·edit-24 months agoYou should be able to tie into the kernel with some C programming if you want to go extra small.
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up10·4 months agoIf you are a big fan of wasting disk performance, CPU cycles, and ultimately power.
This is a terrible solution. You will stress your IO for no reason.
On the upside, you do not need to install the
inotifywaitpackage.md5sumalready installed on my system hahaIt isn’t a terrible solution if you are checking infrequently just as ever 30 minutes.
why is that a plus
I do not need to install anything/can work on bare install without internet connection?
ah, fair.
You should be able to tie into the kernel with some C programming if you want to go extra small.
If you are a big fan of wasting disk performance, CPU cycles, and ultimately power.