12 lines
251 B
Bash
Executable File
12 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
source $(dirname $0)/FunctionOutput
|
|
|
|
Process="${1}"
|
|
|
|
[[ -z ${Process} ]] && Exit "5|no argument"
|
|
|
|
[[ ! -z $(ps axf | grep ${Process}| grep -v grep) ]] && Exit "0|Process $Process is running" || Exit "2|Process $Process is NOT running"
|
|
|