Upload logs instead of printing them

This commit is contained in:
Andras Schmelczer 2025-12-14 11:47:47 +00:00
parent f431bea1af
commit c7507a3e7a
2 changed files with 9 additions and 1 deletions

View file

@ -51,7 +51,7 @@ for i in $(seq 1 $process_count); do
echo "Started process $i with PID: $pid"
# Read from pipe, prefix with PID
(sed "s/^/[PID $pid] /" < "$pipe" | tee "../logs/log_${i}.log"; rm "$pipe") &
(sed "s/^/[PID $pid] /" < "$pipe" > "../logs/log_${i}.log"; rm "$pipe") &
done
cd ..