From f2569ee4bcb56a603ea2c095f586152f2dbd2bc0 Mon Sep 17 00:00:00 2001 From: lnwor Date: Wed, 29 Jun 2022 18:40:46 +0200 Subject: using close_write event instead of create --- scripts/feedCaronte.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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" -- cgit v1.2.3-70-g09d2