38 |
done |
done |
39 |
} |
} |
40 |
|
|
|
# # import_resource $table $serial $resource $value |
|
|
# import_resource() |
|
|
# { |
|
|
# local table="$1" |
|
|
# local serial="$2" |
|
|
# local resource="$3" |
|
|
# local value="$4" |
|
|
# |
|
|
# if [[ ${DEBUG} = 1 ]] |
|
|
# then |
|
|
# echo "${table}->${resource}=${value}" >> /root/lala.log |
|
|
# echo "mysqldo \"update ${table} set ${resource}='${value}' where serial=${serial};\"" >> /root/lala.log |
|
|
# fi |
|
|
# |
|
|
# mysql_insert "${table}",serial="${serial}","${resource}"="${value}" |
|
|
# } |
|
|
|
|
41 |
# run_class $method $caller $argv1 $argv2 ... $argvN |
# run_class $method $caller $argv1 $argv2 ... $argvN |
42 |
run_class() |
run_class() |
43 |
{ |
{ |