Annotation of /mcore-src/trunk/mcore-tools/src/include/control.global.class.in
Parent Directory | Revision Log
Revision 2465 -
(hide annotations)
(download)
Tue Sep 8 08:23:28 2015 UTC (8 years, 8 months ago) by niro
File size: 374 byte(s)
Tue Sep 8 08:23:28 2015 UTC (8 years, 8 months ago) by niro
File size: 374 byte(s)
-moved import_resource() to control.global.class
1 | niro | 2465 | # $Id$ |
2 | |||
3 | import_resource() | ||
4 | { | ||
5 | local table="$1" | ||
6 | local serial="$2" | ||
7 | local resource="$3" | ||
8 | local value="$4" | ||
9 | |||
10 | if [[ ${DEBUG} = 1 ]] | ||
11 | then | ||
12 | echo "${table}->${resource}=${value}" >> /root/lala.log | ||
13 | echo "mysqldo \"update ${table} set ${resource}='${value}' where serial=${serial};\"" >> /root/lala.log | ||
14 | fi | ||
15 | |||
16 | mysql_insert "${table}",serial="${serial}","${resource}"="${value}" | ||
17 | } |