[systemd-devel] echo message not coming on terminal with systemd

Johan Ouwerkerk jm.ouwerkerk at gmail.com
Thu Dec 17 21:47:16 PST 2015


You say this part:

>         echo -n $"$msg (press ESC to skip): " > /dev/console

Displays fine.

But these:
>                     echo "[ OK ]"
>                     echo

And these:
>                     echo "[ FAILED ]"
>                     echo "This is failure"

Don't.
Spotting the obvious difference: only the first (which you *do* see)
is redirected to /dev/console.

So the obvious fix would seem to be:

echo "[OK]" > /dev/console
echo "" > /dev/console

And:

echo "[FAILED]" > /dev/console
echo "This is failure" >/dev/console

...

Wouldn't it?


More information about the systemd-devel mailing list