Originally posted by Gazevs25
Hi
- /PATH/TO/lynx --dump [url]http://PUT_YOUR_DOMAIN_NAME_HERE/scripts/admin/cronjobs.php[/url] > /dev/null
I know about the stars but what I don't know is /path/to/lunx--dump
as I have not got a php page called lynx or know in which directory this should be.
I hope someone can point me in the right direction, I have looked at the cron job tutorial on the hosting company and it says to do something like this :
***** GET [url]http://PUT_YOUR_DOMAIN_NAME_HERE/scripts/admin/cronjobs.php[/url]
but I don't think this is right as pathtolynx has not been used.
Thanks
Gareth [/B]
it looks right, since GET is a command to linux try to recover that url (as a browser does), so, time to time (that stars) your server will acess your php script..
another way to do this is inform local server path, something like php /home/www/userXX/dir/file.php
but that is not a good way to do this because that path can change (that server is not yours, you rent space, right?)
do exactly as hosting company asks you to and i guess everything gona work.
tip: if you use includes or requires on your script, you will need to inform to shell where it is, so you will need to know the entire path and do
0 cd /home/www/path/to/your/site/ && php /home/www/path/to/your/site/script.php
that will run every full hour.
more tips:
export VISUAL='pico -w' ----> to use a better editor
crontab -? -----> to options
good luck 🙂
[] Icaro