I have a file named restart.sh. The file contains 3 lines like:echo 'HI'service wildfly restartecho 'Hello'When I execute this as > sh /bin/restart.sh it works fine. When I execute this from a cron job, only echo statements are working. I'm not able to execute the file in cron
How to run shell script in crontab?
shell