Russell G. - Mon, 19/08/2024 - 20:13

Permalink

I sometimes have cron jobs that start a bash shell script, which then runs a PHP file. In that case, the method mentioned here works great because it changes the current directory for the PHP file, but not for the shell script that ran it. So when the PHP file exits, the shell script is still running in the same directory it was in before. Thanks for this!

CAPTCHA