1 |
#!/opt/openisis/tcl/bin/isish |
2 |
# |
3 |
# openisis - an open implementation of the ISIS database |
4 |
# Version 0.8.x (microversion see file Version) |
5 |
# Copyright (C) 2003 by Erik Grziwotz, erik@openisis.org |
6 |
# |
7 |
# This library is free software; you can redistribute it and/or |
8 |
# modify it under the terms of the GNU Lesser General Public |
9 |
# License as published by the Free Software Foundation; either |
10 |
# version 2.1 of the License, or (at your option) any later version. |
11 |
# |
12 |
# This library is distributed in the hope that it will be useful, |
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 |
# Lesser General Public License for more details. |
16 |
# |
17 |
# You should have received a copy of the GNU Lesser General Public |
18 |
# License along with this library; if not, write to the Free Software |
19 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
# |
21 |
# This software is dedicated to the memory of Eckart Dietrich. |
22 |
# |
23 |
# This software is inspired by (but contains no code of) the iAPI |
24 |
# Copyright (C) 2000 by Robert Janusz, rj@jezuici.krakow.pl. |
25 |
# See iAPI.txt for what it contains. |
26 |
# |
27 |
# $Id: testsrv.tcl,v 1.4 2003/06/15 15:57:44 mawag Exp $ |
28 |
# oitsrc for db srv |
29 |
|
30 |
# bin/oits -db 8080 test/testsrv.tcl |
31 |
|
32 |
set syspath /opt/openisis/db/cds |
33 |
|
34 |
# set stb0 [openIsis syspath $syspath v verbose] |
35 |
set stb0 [openIsis syspath $syspath] |
36 |
|
37 |
$stb0 req type open db cds |
38 |
|
39 |
proc evalcb tag { |
40 |
result add $tag tach |
41 |
} |
42 |
|
43 |
puts "testsrv: db cds opened with err \ |
44 |
[$stb0 .res get error] / [$stb0 .res get error2]" |