Upload logs instead of printing them
This commit is contained in:
parent
f431bea1af
commit
c7507a3e7a
2 changed files with 9 additions and 1 deletions
|
|
@ -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 ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue