[cron.d/ethercodes] On appelle le script dans /usr/scripts plutôt qu'une commande in-linée

Ignore-this: 9665f4eebb567006f0f6d9c3e24bda59

darcs-hash:20130112034932-2c9c1-30a7a77d1d59bc9ab95405f2a21e810ee5e7992d.gz
This commit is contained in:
Vincent Le Gallic 2013-01-12 04:49:32 +01:00
parent f47118152a
commit a677511658

View file

@ -1,3 +1,3 @@
MAILTO=roots@crans.org
LANG=fr_FR.UTF-8
10 2 15 * * root TEMPFILE=`tempfile` ; wget -o /dev/null -O $TEMPFILE http://standards.ieee.org/regauth/oui/oui.txt && awk -F '[\t ]*(hex)[ \t]*' '(/(hex)/) {gsub("-",":",$1) ; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat && cd /usr/scripts/gestion && darcs record --author "Cron Daemon <root@crans.org>" --patch-name "[ethercodes.dat] Mise a jour du fichier vendeur" --all --no-ask-deps --skip-long-comment ethercodes.dat > /dev/null ; rm -f $TEMPFILE
10 2 15 * * root /usr/scripts/utils/ethercodes.sh