There is a script:
CHECK='server-release is not running ... failed!' #test string
STATUS=$(/home/user/server/server/build.sh status) #write the status of the server in a variable
if [ "$CHECK" == "$STATUS" ]
echo "server is stopped"
echo "server is worked"
If you just run the script /etc/starter.sh then everything works fine, conditions are met, the script build.sh the same runs. A crontab entry did: sudo crontab -e in the crontab prescribed:
* * * * * bash /bin/bash /etc/starter.sh > /tmp/starter.log 2>&1
logs in /tmp/starter.log
/bin/bash: /bin/bash: cannot run binary file
How to make an entry in crontab to have this script run every minute?