Timeline for How to use inotifywait to watch a directory for creation of files of a specific extension
Current License: CC BY-SA 4.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 15, 2024 at 16:23 | history | rollback | Kusalananda♦ |
Rollback to Revision 7
|
|
| Mar 15, 2024 at 15:59 | history | edited | anon | CC BY-SA 4.0 |
added 3 characters in body
|
| Mar 15, 2024 at 15:57 | history | rollback | Pablo A |
Rollback to Revision 5
|
|
| Mar 15, 2024 at 15:40 | history | edited | anon | CC BY-SA 4.0 |
deleted 1095 characters in body
|
| Jul 31, 2023 at 9:12 | history | edited | Chris Davies | CC BY-SA 4.0 |
added 1 character in body
|
| S Jul 31, 2023 at 9:06 | history | edited | Chris Davies | CC BY-SA 4.0 |
make script more compatible across shells
|
| S Jul 31, 2023 at 9:06 | history | suggested | éclairevoyant | CC BY-SA 4.0 |
make script more compatible across shells
|
| Jul 29, 2023 at 8:24 | review | Suggested edits | |||
| S Jul 31, 2023 at 9:06 | |||||
| Jul 8, 2023 at 15:43 | comment | added | Toby Speight |
[[ is not a standard shell command. If you use non-standard extensions, you should be clear about this when answering shell questions.
|
|
| Jul 8, 2023 at 13:10 | comment | added | F. Hauri - Give Up GitHub |
Avoid using bash regex which is performance killer! Prefer to use case $file in *.xml which is a lot lighter and quicker!! See my answer (with interactive purpose.)
|
|
| Mar 21, 2022 at 11:51 | comment | added | Seamus |
If the watched directory has a particularly large filed moved into it, what happens if the file transfer is not complete before the script reaches to do your thing action? Shouldn't one wait for a close_write event? Likewise, if the do your thing code is long-running, do the inotifywait events need to be queued somehow?
|
|
| S Nov 24, 2021 at 9:15 | history | suggested | Ryan | CC BY-SA 4.0 |
Replace "path" local variable for case insensitive shells
|
| Nov 23, 2021 at 22:56 | review | Suggested edits | |||
| S Nov 24, 2021 at 9:15 | |||||
| Sep 12, 2018 at 14:25 | comment | added | anon |
@SDsolar It varies. For me, I usually run inotify either with nohup or start it with a custom systemd service. Most often the latter.
|
|
| Nov 20, 2017 at 0:25 | comment | added | SDsolar |
How do you run this? Is it a one-time command, or does it need to be running in a loop or anything like that? Perhaps as part of incron (I hope not).
|
|
| Apr 7, 2017 at 19:42 | comment | added | TheBetterJORT | This does work and I have tested it with inotifywait. | |
| Nov 17, 2016 at 10:25 | vote | accept | Shy | ||
| Nov 17, 2016 at 7:51 | history | answered | anon | CC BY-SA 3.0 |