summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/omprog-output-capture-bin.sh
blob: 1794cdeb117cd641076d662358ad31307d765f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

echo "[stdout] Starting"
>&2 echo "[stderr] Starting"

read log_line
while [[ -n "$log_line" ]]; do
    echo "[stdout] Received $log_line"
    >&2 echo "[stderr] Received $log_line"
    read log_line
done

echo "[stdout] Terminating normally"
>&2 echo "[stderr] Terminating normally"

exit 0