From 53580800116167c481f7de0dd669efca0ed9c9b9 Mon Sep 17 00:00:00 2001 From: Julian Date: Tue, 14 Feb 2017 12:36:03 +0100 Subject: Aded active script --- Scripts/checkIfActive.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Scripts/checkIfActive.sh diff --git a/Scripts/checkIfActive.sh b/Scripts/checkIfActive.sh new file mode 100644 index 0000000..ecf40d1 --- /dev/null +++ b/Scripts/checkIfActive.sh @@ -0,0 +1,5 @@ +if pgrep "$1" > /dev/null; then + echo Active +else + echo Inactive +fi -- cgit v1.2.3