No usually the cron calls the file by path
eg
59 13 * * * php /root/to/chase/script.php
and the script.php has as the first line
chdir(__DIR__);
note the DIR is the actual text - it's not meant to be substituted with anything
That way any paths mentioned in the file will be relative to the location of the script itself and don't have to hardcode in the location
However if you've started editing your script to include actual file locations don't bother with what I've said I don't think there's actually that many occurrences that it's a big chore
Before we go live at 2 can I just say thank you so much Aaron for releasing this script.
I’ve never used or setup vps before and it’s been a great learning curve.
We might not catch much, we might catch lots.
But thank you for levelling the playing field for us non techies.
Very much appreciated.
We use essential cookies to make this site work, and optional cookies to enhance your experience.