I have a shell script to send notifications. The shell script works well manually from CLI but when put in crontab it does not perform its end task.
To be more specific I checked the script line by line by sending the outputs to a cron.log
from crontab which gives the output as expected. But still the end task of sending notification which is via a java command is not working in crontab.
I have checked all possible conditions and don't know what is that i am missing, please help.
crontab:
* * * * * bash absolute_path/script.sh > abolutepath/pushNotCron.log
shell script:
#!/bin/bash
if [ condition ]
then
some code ........
java -jar $absPath/$jarFileName "argument"
fi
No errors in the script