write log file in home directory instead of current directory

This commit is contained in:
12b 2021-01-12 17:56:30 +01:00
parent fb80772b4c
commit a51c533126
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,8 @@ if [[ $# -lt 1 ]] ; then
exit 1 exit 1
fi fi
LOGFILE="full_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log" mkdir -p ~/sbc-performance-test-kit/benchmark
LOGFILE="~/sbc-performance-test-kit/benchmark/full_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
echo ' ' echo ' '
echo "#### Starting benchmark ####" | tee $LOGFILE echo "#### Starting benchmark ####" | tee $LOGFILE

View file

@ -16,7 +16,8 @@ if [[ $# -lt 1 ]] ; then
exit 1 exit 1
fi fi
LOGFILE="quick_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log" mkdir -p ~/sbc-performance-test-kit/benchmark
LOGFILE="~/sbc-performance-test-kit/benchmark/quick_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
echo ' ' echo ' '
echo "#### Starting benchmark ####" | tee $LOGFILE echo "#### Starting benchmark ####" | tee $LOGFILE