Scripting
Everything the client does can be done from a script.
-o jsonprints machine-readable output.-o rawprints text without formatting values. Put the flag before the command, likemachine -o json runs.-qturns off progress output and spinners.--timeout sgives up after that many seconds. It goes before the command too. The default is no limit, and0means check once.--no-colorsturns off colors.- A command exits with 2 when it fails or is refused, and with 1 when it cannot reach the service or a session. A waiting command exits with 3 on a timeout. Ctrl-C exits with 130.
1 | machine -q --timeout 300 run app --until tasks || echo "boot did not finish" |