m0duspwnens
2020-04-21 13:01:56 -04:00
parent eaf54781e8
commit fd87e7bc1d
33 changed files with 408 additions and 363 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Get the data
OLDPCAP=$(find /host/nsm/pcap -type f -exec stat -c'%n %Z' {} + | sort | grep -v "\." | head -n 1 | awk {'print $2'})
DATE=$(date +%s)
AGE=$(($DATE - $OLDPCAP))
echo "pcapage seconds=$AGE"