Having a password may work, but:
- Writing a password in your crontab is a bad idea, because other local users can read it.
- Your syntax will not work (it will try to run the script "script? Password = 12345". The parameters cannot be named in the shell script, so you will need to run ".php 12345"
A valid solution would be to check your PHP script that the current environment is similar to the one provided by cron when running the commands. Cron specific environment variables can help you ensure that your script is run by fby cron, and not by the user.
Nicolas
source share