![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
Cron Jobs....
Ok, I have found the cron jobs section of my cPanel on my site, so I've set up a cron and used this in the command: lynx --dump http://whatever.com/dir/ectory/file.php
Unforunatly all I get is an email saying lynx: not found ![]() Any ideas?
__________________
Don't wound what you can't kill |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
right, I used http://www.webbasedcron.com/ to do it for me and it works fine.
so i know there's nothing wrong with the script, just the cron set up..... Hmmmmmmmmmmmmmmm
__________________
Don't wound what you can't kill |
|
|
|
|
|
#3 |
|
PFO Founder
![]() ![]() |
you could try the links browser instead of the lynx browser im not sure which would be better
![]()
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Instead of using lynx (which is apparently not on your system) create a PHP script which uses curl or fopen to get the information from a server, read it into a string and write it out to file, or if you can just write it directly out to disk from the script. Call the script from your cron like "php script_name.php" and that should do what you want.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|