I have a bash script that runs every five minutes. In addition to other things, it reads the existing files in PHP The script runs, and in the end it sends an email manually when it runs, it works when the kronobose runs, it partially completes the task. Code below:
DIR = "/ somedir /" php $ {DIR} client.php $ DIR cat $ {DIR} alert_list.txt | Unique | Read the warning while; What to do [-s $ {DIR} alert / $ alert.txt]; Then send the #Exquote "Sending to Email ..." $ Warning & gt; & Gt; $ {DIR} email.txt DETAILFILE = "Tools /" $ warning DETAILFILEP = $ {DETAILFILE} ".txt" php $ {DIR} email.php $ Warning expired 'Search complete.' In 'conabob mode' this never goes for 'do' statement
It does all this in manual mode.
Any thoughts?
Thanks a lot!
I found this problem within PHP scripts. Files located in other paths are not remembered when the relative call is automatically run, obviously, it is running from somewhere else, so it can not progress due to missing input files created by the initial PHP script.
Thank you.
No comments:
Post a Comment