summaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authorJulian <Julianteule@gmail.com>2017-02-14 12:36:03 +0100
committerJulian <Julianteule@gmail.com>2017-02-14 12:36:03 +0100
commit53580800116167c481f7de0dd669efca0ed9c9b9 (patch)
tree57b06a57ce4d5ccea1104b230148d959c951cfda /Scripts
parent307524f3ff353a88c2f0679f5c60a3d8bfc3c269 (diff)
Aded active script
Diffstat (limited to 'Scripts')
-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