Open SidorkinAlex opened 4 days ago
[
{
"checkingCommand": "cat /path/to/your/file.txt | tr -d '\n'",
"interval": 5,
"branchCommand": [
{
"resultExecution": "success",
"typeOfMatch":"equival | not_equival | included_in_substring | more | less"
"commands": [
"echo 'Command executed successfully.'",
"echo '' > /path/to/your/file.txt"
]
},
{
"resultExecution": "failure",
"commands": [
"bash command 1",
"bash command 2"
]
}
]
}
]
add various matching conditions to check the result of executing a controlled command, for example, entering a string, converting to the int type and checking for longer or less