From 9f09effa1daa752d2284226cf4222cd5a0452949 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 31 Jul 2020 21:42:02 -0600 Subject: [PATCH] Update easyping.cron.sh fixing an error with carton and the cron script. --- easyping.cron.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/easyping.cron.sh b/easyping.cron.sh index 4685c56..0125ed1 100755 --- a/easyping.cron.sh +++ b/easyping.cron.sh @@ -2,9 +2,10 @@ #Adjust path to match your system #whereis carton CARTON_EXEC=/usr/bin/carton -EASYPING_EXEC=/path/to/EasyPing/easyping.pl +EASYPING_PATH=/path/to/EasyPing +cd $EASYPING_PATH if [ $# -eq 0 ]; then -$CARTON_EXEC exec $EASYPING_EXEC -c +$CARTON_EXEC exec $EASYPING_PATH/easyping.pl -c else -$CARTON_EXEC exec $EASYPING_EXEC -c -g $1 +$CARTON_EXEC exec $EASYPING_PATH/easyping.pl -c -g $1 fi