Cronjob error

jhmc93

Member
Feb 22, 2022
190
3
23
32
I’ve set up my email alerts when my cronjob goes to reboot my proxmox server but I on two days now I’ve had the following email: /bin/sh: 1: reboot: not found,
Can someone help with this?
Thanks
 
I’m also getting this in my email after a cronjob update and dist upgrade:
apt does not have a stable CLI interface. Use with caution in scripts
That's because apt simply prints that statement and it's probably true. Cron will email your when some text is printed. Maybe research the tool chronic? Or maybe use apt-get instead?