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