added & to timeout

This commit is contained in:
Marc Mance
2024-05-29 18:46:30 -04:00
parent 0270e0b9ad
commit 1633a437f1

View File

@@ -8,11 +8,10 @@ echo "Will auto upload to iXsystem when completed."
echo "Airgapped Systems will need to exfiltrate /root/*.csv"
echo ""
iterations=$1
echo "Starting gstat Collection"
timeout "$minutes"m gstat -C -s -d -o -p -I 60s > /root/gstat.csv
timeout "$minutes"m gstat -C -s -d -o -p -I 60s > /root/gstat.csv &
echo "Starting iostat Collection"
for (( i=1; i<=$iterations; i++ )); do