Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Solved] Bash; HowTo suppress jobstart messages

$
0
0
Hello bash experts,

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
produces messages as expected. With

Code:

$ echo "Begin"; { sleep 10; echo "1"; } & { sleep 5; echo "2"; } & wait 2>/dev/null; echo "3";Begin[1] 11908[2] 11909213
suppress terminating messages, but I could not figure out how to suppress job start messages. The

Code:

$ echo "Begin"; { sleep 10; echo "1" & } 2>/dev/null; { sleep 5; echo "2" & } 2>/dev/null; wait 2>/dev/null; echo "3";Begin123
runs 15secs (somehow "serial" execution manner?).
Many thanks for any help.
Leslie

Statistics: Posted by dlacx — 2024-02-01 10:57 — Replies 3 — Views 94



Viewing all articles
Browse latest Browse all 3423

Trending Articles