From 0527a9b5aef2f76d1e05dabf5d0a45c780a46efb Mon Sep 17 00:00:00 2001 From: Jeffrey Edwin Seifried Date: Sun, 2 Feb 2014 19:07:02 +0000 Subject: [PATCH] - wrote out PID file path explicitly since tildas aren't evaluated correctly within quotations --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.sh b/check.sh index c8e7f2c..cc42cbd 100755 --- a/check.sh +++ b/check.sh @@ -1,5 +1,5 @@ #! /bin/bash -PID="$(cat ~/log/pid)" ; +PID='/home/ubuntu/log/pid' ; [ -e "${PID}" ] && echo 'Up' || echo 'Down' ;