0

I have next record in crontab -e, running with user root.

@reboot /usr/bin/curl --silent --insecure -v -X GET https://<myserver_with_hook>?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.

2
  • Did the cron job not run, or did it run and error? Are you doing anything to make sure the job waits until the network is available before it runs? If you are using a systemd based distribution, crond would be up and running before the network is available and your curl command would have failed. Commented Nov 13, 2019 at 19:44
  • Thank you! I'm using systemd based distribution. Commented Nov 15, 2019 at 9:09

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.