Jump to content

Crons


steveangelis

Recommended Posts

Yes that fun subject :D

I have a cron I am trying to write, my CPanel does the writing for me but I know that crons and php hate eachother.  As of right now, this is how it is for me besides the time part:

 

lynx -dump /home/neraxian/public_html/game/cron/update1.php

I have tried without the first part and dump, I have tried with I have tried full extenstion, but nothing.  Does anyone know where I am going wrong with this?

Link to comment
https://forums.phpfreaks.com/topic/118203-crons/
Share on other sites

lynx expects a url, not a path. if you want to execute your script via the php cli (providing a path) it would look more like...

 

/usr/bin/php /home/neraxian/public_html/game/cron/update1.php

 

Also, cron has a pretty limitted environment so its always best to use full paths to programs. Therefore, to have lynx request your url use something like....

 

/usr/bin/lynx http://yoursite.com/update1.php

Link to comment
https://forums.phpfreaks.com/topic/118203-crons/#findComment-608297
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.