When you want to automatically update once a day then you could add an
entry to your crontab.
This example will update your list once a day at 1.00 am.
Note: in order to use crontab with TGM you should have
lynx or wget installed on your server!
When you don't have access to your crontab or you don't know how to
access your crontab then you should contact your hosting provider about
it.
If you are able to access your server via SSH and you're familiar with the
vi editor then you can edit your crontab by typing:
crontab -e
and add something like
* 1 * * * lynx -dump
http://www.yoursite.com/path_to_tgm/cronRotateAll.php?USERNAME=[your username]&PASSWORD=[your password] > /dev/null
or
* 1 * * * wget -q -O /dev/null -nd
http://www.yoursite.com/path_to_tgm/cronRotateAll.php?USERNAME=[your username]&PASSWORD=[your password]
allowed values for cron:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
Crontab syntax :-
A crontab file has five fields for specifying day , date and time followed by
the command to be run at that interval.
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)