cron php under apache
Hi.
I have run into a problem. I have searched extensively and have been unable to find the answer to my question. I have a file called cron.php I need to run this file daily using crontab. I have tried just about everything that was suggested with no luck. Come to find out I think the root of my problem is php was compiled under apache. I can run cron.php from my browser but I really need to run it late at night and at a specific time. Any expertise would be appreciated. Thank you Dave. |
Why not use lynx:
lynx -source http://whatever/wherever/cron.php |
Is lynx hard to install?
I don't have it on my server. |
Actullay I've had another look at the help section and you may be better with:
lynx -dump http://whatever/wherever/cron.php I've only ever used source but using dump will parse the html so the output will look good in either a browser or in a log file. |
Not hard at all - what disro are you using?
|
Could you re-phrase that question?
I am a newby. Thanks. Dave. |
It is not difficult to install. What linux operating system do you use? RedHat/Mandrake/SuSe
It is a good idea to put it in the "Distribution" section in your profile so that people can direct their help easier :) (It appears to the left of every message) |
Okay. I added it. Is that okay?
|
That is the version of apache (web server) and php.
It is the actual version of linux not the applications that run on it. At the top of the console screen (if you use a GUI then press "Ctrl + Alt + F2") you may see something like: Red Hat Linux release 8.0 (Psyche) Kernel 2.4.18-14 on an i686 The first line tells me that I am using "Red Hat 8.0" You usually see this information when initiating a telnet session too. If you are using a GUI then press "Ctrl + Alt + F7" to get back to it. PS: GUI = Graphical User Interface |
okay. I found it and added it to my profile.
|
That's what I needed!
Download: ftp://rpmfind.net/linux/redhat/updat...4-9.1.i386.rpm Then run this as root: rpm -ivh /path/to/lynx-2.8.4-9.1.i386.rpm Replace /path/to with the directory that you saved the lynx-2.8.4-9.1.i386.rpm file to. eg /home/dave4545 |
I really appreciate it David. I'll try it tonight. Gotta take the kid to see his grandparents. I'll let you know how the install goes.
Thanks. Dave |
hi.
hmm? I tried and got a few errors. I'm searching to see what it is.... Here is exactly how it looks. [root@www3 rpm]# rpm -ivh /usr/local/lynx/lynx-2.8.4-9.1.i386.rpm error: failed dependencies: libcrypto.so.1 is needed by lynx-2.8.4-9.1 libssl.so.1 is needed by lynx-2.8.4-9.1 |
Okay. I guess it means I need to install some more packages.
I looked at some and there are so many different versions. How do you decide which one to use? Thanks. Dave. |
Okay.
I ignored the packages. Gonna see if that works. Nope. Doesn't work without them. |
All times are GMT -5. The time now is 09:34 PM. |