您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Michael Murtaugh ee4f56acf6 gulp 4 年前
..
README.scripts gulp 4 年前
curl gulp 4 年前
dump_db gulp 4 年前
flock-test gulp 4 年前
get_entries_from_log gulp 4 年前
make_password gulp 4 年前
make_snap gulp 4 年前
restore_snap gulp 4 年前
run_if_needed.pl gulp 4 年前
track2fact gulp 4 年前
unupdate_dbs gulp 4 年前
update_db gulp 4 年前

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.