From 0645a2a565af350bc57d3f8ce31fb718a7197d46 Mon Sep 17 00:00:00 2001 From: Marjan Schiller Date: Mon, 15 Jul 2013 16:16:41 +0200 Subject: [PATCH] Added script to lock the testsystem. --- lock_testsystem.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 lock_testsystem.sh diff --git a/lock_testsystem.sh b/lock_testsystem.sh new file mode 100755 index 0000000..07d0fe0 --- /dev/null +++ b/lock_testsystem.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +export +echo + +LOCK_IN_SECONDS=$((60*$LOCK_IN_MINUTES)) + +# +# check if mail should be sent +# +echo "Locking Testsystem for $LOCK_IN_MINUTES Minutes ($LOCK_IN_SECONDS seconds)" +sleep $LOCK_IN_SECONDS +figlet Ok +exit 0 -- 2.39.5