First post on this forum here :) I already saw this on the forum, but it if the crontab starts the script it gives out an error. (It works standalone.)
See this is my script. This is the Log.
And here is my crontab:
* * * * * /bin/bash /home/steam/arma3/restart.sh >> /home/steam/arma3/logs/checkonserv.log 2>&1
The "cannot found error" were fixed, but the execution of the arma3server
file doesnt work.
-x
option (e. g. withset -x
somewhere near the beginning of the script) and [edit] your question to include the new program output? Also, just to be sure, could you please add a she-bang with an explicit shell interpreter at the beginning of the script file (i. e.#!/bin/bash
)? The script contains some Bash-isms that (Da)sh doesn't understand and mistakes for other stuff. – David Foerster Dec 02 '16 at 13:26