diff options
author | Emiliano Ciavatta | 2022-06-30 07:04:00 +0000 |
---|---|---|
committer | GitHub | 2022-06-30 07:04:00 +0000 |
commit | c242e5e0786833fb2752e496ae83d0feed644e43 (patch) | |
tree | 0a62075516d6a7d25ee8fb1849f65a412040bd94 /scripts/feedCaronte.sh | |
parent | c29a8cbfa90903838ab0fdea0fa673df9c0976d3 (diff) | |
parent | f2569ee4bcb56a603ea2c095f586152f2dbd2bc0 (diff) |
Merge pull request #64 from lnwor/main
inotifywait should use the "close_write" event instead of "create"
Diffstat (limited to 'scripts/feedCaronte.sh')
-rwxr-xr-x | scripts/feedCaronte.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/feedCaronte.sh b/scripts/feedCaronte.sh index daf8577..7275453 100755 --- a/scripts/feedCaronte.sh +++ b/scripts/feedCaronte.sh @@ -45,7 +45,7 @@ if [[ -z "$PCAP_DIR" ]]; then exit 2 fi -inotifywait -m "$PCAP_DIR" -e create -e moved_to | +inotifywait -m "$PCAP_DIR" -e close_write -e moved_to | while read dir action file; do echo "The file $file appeared in directory $dir via $action" curl -F "file=@$file" "http://localhost:3333/api/pcap/upload" |