From 521257e57af60289f074c9667eb7b1b4d03cd721 Mon Sep 17 00:00:00 2001 From: Jakob Zahn Date: Wed, 18 Dec 2024 10:38:58 +0100 Subject: [PATCH] Expand hello-world-example for saving compiled binary in the archive --- UserManual.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UserManual.md b/UserManual.md index 6381513..4c7d4ea 100644 --- a/UserManual.md +++ b/UserManual.md @@ -119,8 +119,17 @@ tar xzf hello-2.10.tar.gz cd hello-2.10 ./configure make + +# save permanently to the job's run archive directory +mv ./hello "$ARCHIVE/" ``` +If everything went well, the absolute path to the freshly compiled `hello` binary is `$LAMINAR_HOME/archive/hello/latest/hello`, which prints +``` +Hello, world! +``` +upon execution. + Laminar uses your script's exit code to determine whether to mark the run as successful or failed. If your script is written in bash, the [`-e` option](http://tldp.org/LDP/abs/html/options.html) is helpful for this. See also [Exit and Exit Status](http://tldp.org/LDP/abs/html/exit-status.html). Don't forget to mark the script executable: