cron actually does not have all the paths in its $PATH variable. Hence we need to add custom locations in the PATH variable.
Each host can have multiple displays, and each display can have multiple screens. Hence we need to specify the screen used by notify-send. (This one took a lot of debugging)
The get-ping script searches for a ping in the next minute.
So, after some really great time spent in understanding the procedure, we're finally using crontab ! It's smooth and easy to use.
Usage instructions :
$ pip install ping-me
$ crontab -e
Some explanation :
$PATH
variable. Hence we need to add custom locations in the PATH variable.notify-send
. (This one took a lot of debugging)get-ping
script searches for a ping in the next minute.