AGBlee1970
Registered
Hello
I want to run some PHP automatically. I understand that I can use CRON/Lynx to achieve this.
Using this from the command line works:
/usr/local/bin/lynx http://127.0.0.1/php_libraries/myscript.php
But trying to run it via CRON fails, I get an error message about "Terminal Type unknown".
On another forum someone else had this problem, and a user recommended they use -source before the URL, so:
/usr/local/bin/lynx -source http://127.0.0.1/php_libraries/myscript.php
I have tried this and it works, but am not convinced it is the correct way to be doing things. If I understand correctly CRON doesn't have the right environment variables configured which is why this error occurs? So should this be fixed a different way or is the -source solving the problem?
I want to run some PHP automatically. I understand that I can use CRON/Lynx to achieve this.
Using this from the command line works:
/usr/local/bin/lynx http://127.0.0.1/php_libraries/myscript.php
But trying to run it via CRON fails, I get an error message about "Terminal Type unknown".
On another forum someone else had this problem, and a user recommended they use -source before the URL, so:
/usr/local/bin/lynx -source http://127.0.0.1/php_libraries/myscript.php
I have tried this and it works, but am not convinced it is the correct way to be doing things. If I understand correctly CRON doesn't have the right environment variables configured which is why this error occurs? So should this be fixed a different way or is the -source solving the problem?