Hi,
I need to execute a crontab based on a condition where one SH file should be executed only based on the output of a file in a folder.
I have written the following cron job which is not working.
00 01 * * * read a < /px/batch/reslut.txt && [ $a -eq 1 ] && sh /px/batch/check.sh
where my reslut.txt file will have the value as a=1.
regards
Prashanth