From 970c3e2b9d5bc2822b63f20c0bb2b08ba24f31da Mon Sep 17 00:00:00 2001 From: Jesper Jurcenoks Date: Mon, 21 Apr 2014 12:12:37 -0700 Subject: [PATCH] Added PATH to script to ensure that it worked correctly when running under SUDO's crontab Script worked when run from command line but gave "command not found" when run under the sudo crontab - added path to script to make it work. --- WiFi_Check | 1 + 1 file changed, 1 insertion(+) diff --git a/WiFi_Check b/WiFi_Check index 9de6f91..eb5d832 100644 --- a/WiFi_Check +++ b/WiFi_Check @@ -41,6 +41,7 @@ echo echo "Starting WiFi check for $wlan" date echo +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # Check to see if there is a lock file if [ -e $lockfile ]; then