That I have:
I have some commands in crontab, for example:
55 11 * * * curl -d '{"explorerId":'$(cat /root/id)', "turnOff":true}' -H "Content-Type: application/json" -X POST http://localhost:8080/descriptions >> log/curl.log 2>&1
This command do something and saves result in file curl.log
That to need:
I want, that to each note adds a string with information, like:
Date: 15.09.2018.
Execute command: description
Result:
#...result of log from curl command
You could try this:
It will echo the date, discription and the result and append it in the log.