Every failure offers you a new opportunity! | Lokatie database|GoT - Notepad
ik heb in mijn cron:
/etc/webalizer/webalizer-run.sh 1> /dev/null 2> /dev/null
staan en webalizer-run.sh bestaat per domein uit het volgende:
/etc/webalizer/webalizer-run.sh 1> /dev/null 2> /dev/null
staan en webalizer-run.sh bestaat per domein uit het volgende:
code:
1
2
3
4
5
| # - domein.nl /usr/local/bin/webalizer -c /etc/webalizer/conf/www.domein.nl_conf OLD_ACCESS=/www/www.domein.nl/public_html/stats/logs/access.`date +%y%m%d-%H%M%S` cp /etc/webalizer/logstemp/www.domein.nl-access_log `echo $OLD_ACCESS` gzip -9 $OLD_ACCESS |
Je kunt volgens de manpage van crontab dit doen:
Dat is de beste manier, je kunt ook in /var/spool/crontab (geloof ik) de crontab files handmatig gaan editenDESCRIPTION
crontab manipulates the crontab for a particular user.
Only the superuser may specify a different user and/or
crontab directory. Generally the -e option is used to
edit your crontab. crontab will use /usr/bin/vi or the
editor specified by your VISUAL environment variable to
edit the crontab.
Resistance is futile (If < 1 Ohm)
Dan maakt hij een nieuwe aan en gooit de oude leeg..Deze files kun je met elke editor aanmaken, mits het maar ascii is en in de opmaak die crontab snapt.Op dinsdag 13 november 2001 19:53 schreef xychix het volgende:
als ik crontab vanaf file maak maakt ie dan een NIEUWE cron en gooit ie de oude weg ??? of vult hij hem aan ???
ANS -> NOS
om een andere editor in crontab te gebruiken:
EDITOR=pico
export EDITOR
crontab -e
als je dus niet je vi als default editor wilt, moet je de eerste 2 regels in je profile zetten.
om een andere editor in crontab te gebruiken:
EDITOR=pico
export EDITOR
crontab -e
als je dus niet je vi als default editor wilt, moet je de eerste 2 regels in je profile zetten.