Sample Header Ad - 728x90

How to add crontab task by reboot / poweroff / poweron pc?

0 votes
0 answers
1058 views
I have next record in crontab -e, running with user root.
@reboot /usr/bin/curl --silent --insecure -v -X GET https://?key=9d722304320de0b074d8da74bf680874&mes= 'nik-pc was rebooted or started!'
But it not work! p.s. if I run the command in the terminal - everything is fine. The goal is to cause a hook when you turn off / on / restart the PC.
Asked by Nikita Kalitin (101 rep)
Nov 13, 2019, 03:36 PM
Last activity: Apr 1, 2021, 05:26 AM