Je kunt niet meer dan 25 onderwerpen selecteren
Onderwerpen moeten beginnen met een letter of nummer, kunnen streepjes bevatten ('-') en kunnen maximaal 35 tekens lang zijn.
Michael Murtaugh ee4f56acf6 | 4 jaren geleden | |
---|---|---|
.. | ||
README.scripts | 4 jaren geleden | |
curl | 4 jaren geleden | |
dump_db | 4 jaren geleden | |
flock-test | 4 jaren geleden | |
get_entries_from_log | 4 jaren geleden | |
make_password | 4 jaren geleden | |
make_snap | 4 jaren geleden | |
restore_snap | 4 jaren geleden | |
run_if_needed.pl | 4 jaren geleden | |
track2fact | 4 jaren geleden | |
unupdate_dbs | 4 jaren geleden | |
update_db | 4 jaren geleden |
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.