Save the file as a text file, such as, mycron.txt (gedaan)
FTP to your account, and upload this file as type text to your /home/vs##### directory. (moet het deze dir zijn?)
Now telnet to your account and at the command prompt type (deze vat ik niet)
crontab -l (note lowercase L )
crontab mycron.txt
Now, try crontab -l again.
En waarin voer ik het uit? Een php script?
En deze regel mss uitgelegt :
Wat doet (tijd) wget -q -O /dev/null -nd (bestand) en dan het lieftst per stukje....
Hoe voer je hem nou uit? Moet je dat nergens aangeven dan?
crontab -l
The list option, crontab -l, displays the contents of the current user's crontab file.
Geeft de crontab dus weer :)
Aarde aan Ruimtekikker :P
Ik snap er egt nog nix van... behalve dan dat tijd stukje :)
Kun je even zeggen wat jouwe doen en hoe je ze uitvoerd (of beter hoe ze eigenlijk zichzelf uitvoeren)
Grijpt uit het access_log de entries met van de huidige datum. Vervolgens grijpt hij voor het huidige domein, en voegt ze toe aan het log voor het domein. Vervolgens wordt webalizer opnieuw uitgevoerd. Dit is in bash of sh scripttaal geschreven.
Wat doet wget?
man wget!
DESCRIPTION
GNU Wget is a free utility for non-interactive download of
files from the Web. It supports HTTP, HTTPS, and FTP pro
tocols, as well as retrieval through HTTP proxies.
-q
--quiet
Turn off Wget's output.
-O file
--output-document=file
The documents will not be written to the appropriate
files, but all will be concatenated together and writ
ten to file. If file already exists, it will be over
written. If the file is -, the documents will be
written to standard output. Including this option
automatically sets the number of tries to 1.
-nd
--no-directories
Do not create a hierarchy of directories when retriev
ing recursively. With this option turned on, all
files will get saved to the current directory, without
clobbering (if a name shows up more than once, the
filenames will get extensions .n).
Crontab werkt via een cron daemon die voor alle users die een crontab hebben gezet deze op de gewenste tijden uitvoert.
Je zet gewoon alles in mycrontab.txt en dan doe je crontab mycrontab.txt. Vervolgens controleer je door crontab -l. Als daarin staat wat er in je mycrontab.txt staat is het oké.