Posted by George Self on 11/09/62 11:24
sherryonline@gmail.com wrote:
> can you guys write for me a command for me, like i have a page in
> www.mydomain.com/demo/messages.php and i want this page to be called
> from the cron job after every day
There are others who are much smarter than me and may be able to give you
better advice. However, it crosses my mind that you may want to look at
lynx. This is a text-only browser that will open a file from the command
line. It will also process commands from a script. I would think it would
be an easy job to create a short lynx script to open your php file and then
exit. I suspect that if lynx simply accesses the php file it would "run"
the code for you. It would then be a trivial exercise to insert that script
into your crontab.
--George
Navigation:
[Reply to this message]
|