Skip to content

Commit

Permalink
Update easyping.cron.sh
Browse files Browse the repository at this point in the history
fixing an error with carton and the cron script.
  • Loading branch information
scotticles authored Aug 1, 2020
1 parent 6224f4f commit 9f09eff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions easyping.cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9f09eff

Please sign in to comment.