Hello bash experts,
The followingproduces messages as expected. Withsuppress terminating messages, but I could not figure out how to suppress job start messages. Theruns 15secs (somehow "serial" execution manner?).
Many thanks for any help.
Leslie
The following
Code:
$ echo "Begin"; { sleep 10; echo "1"; } & { sleep 5; echo "2"; } & wait; echo "3";Begin[1] 11898[2] 1189921[1]- Done { sleep 10; echo "1"; }[2]+ Done { sleep 5; echo "2"; }3
Code:
$ echo "Begin"; { sleep 10; echo "1"; } & { sleep 5; echo "2"; } & wait 2>/dev/null; echo "3";Begin[1] 11908[2] 11909213
Code:
$ echo "Begin"; { sleep 10; echo "1" & } 2>/dev/null; { sleep 5; echo "2" & } 2>/dev/null; wait 2>/dev/null; echo "3";Begin123
Many thanks for any help.
Leslie
Statistics: Posted by dlacx — 2024-02-01 10:57 — Replies 3 — Views 94