From b96e98b89f385120968609650aa44ea6c53e46cf Mon Sep 17 00:00:00 2001 From: Michael Oliver Date: Fri, 22 Nov 2024 12:14:08 -0800 Subject: [PATCH] Update build_rocky_linux_9_5.sh log stdout and stderr to build timestamped build log --- docs/build_guides/build_rocky_linux_9_5.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/build_guides/build_rocky_linux_9_5.sh b/docs/build_guides/build_rocky_linux_9_5.sh index 1220e58fd..b831519e6 100644 --- a/docs/build_guides/build_rocky_linux_9_5.sh +++ b/docs/build_guides/build_rocky_linux_9_5.sh @@ -1,3 +1,11 @@ +#!/bin/bash + +#Log stdout and stderr to file +TMP_XSTUDIO_BUILD_TIME=$(date +%Y%m%d%H%M%S) +TMP_XSTUDIO_BUILD_LOG=xstudiobuild-${TMP_XSTUDIO_BUILD_TIME}.log +exec > >(tee -ia ${TMP_XSTUDIO_BUILD_LOG}) +exec 2> >(tee -ia ${TMP_XSTUDIO_BUILD_LOG} >&2) + ## Rocky Linux 9.x #[Download](https://rockylinux.org/download "Download")