I have some task in cron scheduler:
40 07 * * * value=$(curl -d '{"query":"java-middle", "turnOff":true}' -H "Content-Type: application/json" -X POST http://localhost:8080/explorer)
- The Value accept a json in string format
- how to save a value (or result of curl command) in file and get them in future tasks?
Resolved:
in this case, command cannot to assign value to variable (value in my example) and simultaneously save value in file. Than must erase string value=$
for save result in file just adds >filename