summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Scripts/checkIfActive.sh5
1 files changed, 5 insertions, 0 deletions
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