0
I have cronjob that takes hourly backup. Now I want to pass any stderr to an API.
0 * * * * /usr/local/sbin/script.sh 2>&1 | curl -k -X GET "https://192.168.0.25/path/of/joomla/instance/index.php?option=com_user&task=sendSMSalert&msg=variable"
But I am not sure how to pass the stderr to my API. Please help.
Please guide me how to Change this to HTTP POST and the -d parameter to pass the data to the body – Ash – 2018-09-06T11:59:18.807