Re: To 'f' or not to 'f'
John Iliffe <[email protected]> Fri, 11 Oct 2024 11:43:15 -0400
| Newsgroups | gmane.comp.php.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2024-10-11 at 08:56 -0400, Steve Matzura wrote:
>
> Under some now ancient version of PHP--probably 6, I had a cron job that read:
>
> php -f {my-php-script}
>
> and it ran every day like it was supposed to. Now, under 8.3, the job did not execute any more. I
> removed the '-f' from the line in cron, and the job runs. What is the difference between with and
> without 'f' if '-f' is supposed to be superfluous?
>
The php man page says:
-------
--file file
-f file Parse and execute file
-------
so it looks like it should work but why the { } block? That may be confusing cron.
John
======
>
>