Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Michael Murtaugh ee4f56acf6 | il y a 4 ans | |
---|---|---|
.. | ||
README.scripts | il y a 4 ans | |
curl | il y a 4 ans | |
dump_db | il y a 4 ans | |
flock-test | il y a 4 ans | |
get_entries_from_log | il y a 4 ans | |
make_password | il y a 4 ans | |
make_snap | il y a 4 ans | |
restore_snap | il y a 4 ans | |
run_if_needed.pl | il y a 4 ans | |
track2fact | il y a 4 ans | |
unupdate_dbs | il y a 4 ans | |
update_db | il y a 4 ans |
README.scripts
update_db [-m <module>] <filename> <dbname> adds items in the file <filename> to the db with the basename <dbname>. if -m <module> is specified that module is used rather than AnyDBM_File. file is of the form provided in ../files/infobot-is.txt which is to say <key> => <value> one per line, and <dbname> is something like infobot-is if the db doesn't exist, it will be created. if it does exists, the entries will be added, potentially overwriting entries that exists with the same key. NOTE: skips lines that do not contain a => ... you can add comments this way. dump_db [-m <module>] <dbname> turns the db into a flat ascii file of the form above. try e.g. dump_db infobot-is dump_db -m DB_File infobot-is.db run_infobots.pl you'll need to edit this script to give the right home directory, but this is for crontabbing the infobot. it will run it if it's not already running. this is not highly tested! YMMV.