SyntaxFix
Write A Post
Hire A Developer
Questions
The cleanest fastest way:
processAlreadyRunning () { process="$(basename "${0}")" pidof -x "${process}" -o $$ &>/dev/null }