Re: To 'f' or not to 'f'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
======
>  
>  




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux