# Makefile for www gateway utility
# Europagate, 1995
#
-# $Id: Makefile,v 1.29 1996/02/12 10:10:27 adam Exp $
+# $Id: Makefile,v 1.30 1996/02/19 15:44:59 adam Exp $
#
SHELL=/bin/sh
#
#ZINC=-I../../yaz/include
ZLIB=../../yaz/lib/libyaz.a
#ZLIB=-lyaz
-MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
+#MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
LIBIRTCL=../../ir-tcl/libirtcl.a $(ZLIB) $(MOSILIB)
#NETLIB=-lnsl -lsocket
#
# WWW-Z39.50 Gateway configuration file
#
-# $Id: egw.res,v 1.2 1996/02/12 13:39:40 adam Exp $
+# $Id: egw.res,v 1.3 1996/02/19 15:44:59 adam Exp $
# FIFO file directory
fifo.dir: /tmp/egw
timeout: 120
# Log level
-log.level: default
+log.level: all
<html>
{
-# $Id: mtargets.egw,v 1.14 1996/01/29 17:31:47 adam Exp $
+# $Id: mtargets.egw,v 1.15 1996/02/19 15:44:59 adam Exp $
set setNo 1
source ztargets.conf
if {[info commands saveState] == ""} {
html {<form action="http:} $env(SCRIPT_NAME)
html / $sessionId {/mquery.egw/} $setNo {" method=get><br>} \n
html "<dl>\n"
- foreach t [array names targets] {
+
+
+
+ proc targetsCmp {l r} {
+ global targets
+ return [string compare [string tolower [lindex $targets($l) 0]] \
+ [string tolower [lindex $targets($r) 0]]]
+ }
+ set tt [array names targets]
+ set tn [lsort -command targetsCmp $tt]
+ foreach t $tn {
html {<dt>} [ lindex $targets($t) 0]
html {<dd>}
set databases [lindex $targets($t) 1]
* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wsh.c,v $
- * Revision 1.11 1996/02/12 10:10:32 adam
+ * Revision 1.12 1996/02/19 15:45:00 adam
+ * Sort of targets in multiple-targets selection.
+ *
+ * Revision 1.11 1996/02/12 10:10:32 adam
* Resource/config system used by the gateway.
*
* Revision 1.10 1996/01/12 10:05:22 adam
#include <unistd.h>
#include <ctype.h>
+#include <sys/resource.h>
+#include <sys/time.h>
+
#include <gw-db.h>
#include <gw-res.h>
#include "whtml.h"
W_Interp w_interp;
GW_DB gw_db;
GwRes shRes;
+#if 0
+ struct rlimit rlim;
+
+ rlim.rlim_cur = RLIM_INFINITY;
+ rlim.rlim_max = RLIM_INFINITY;
+ setrlimit (RLIMIT_CORE, &rlim);
+#endif
gw_log_init (*argv);
gw_log_file (GW_LOG_ALL, "egwsh_log");
-# $Id: ztargets.conf,v 1.22 1996/02/12 13:39:41 adam Exp $
+# $Id: ztargets.conf,v 1.23 1996/02/19 15:45:00 adam Exp $
#
# This file contains the predefined targets in the WWW-Z59.50 gateway
# Each target is an entry in associative array "targets". The
1 \
]
-set targets(localhost:210.Default) [list \
- {Test} \
- Default \
- $commonFields \
- {} \
- {Server for testing purposes only.} \
- 0 \
-]
set targets(199.92.147.99.UNICORN) [list \
Baystate \
1 \
]
+set targets(localhost:8000.Default) [list \
+ {Test 8000} \
+ Default \
+ $commonFields \
+ {} \
+ {Server for testing purposes only.} \
+ 0 \
+]
+
+set targets(localhost:8001.Default) [list \
+ {Test 8001} \
+ Default \
+ $commonFields \
+ {} \
+ {Server for testing purposes only.} \
+ 0 \
+]
+
+set targets(localhost:8002.Default) [list \
+ {Test 8002} \
+ Default \
+ $commonFields \
+ {} \
+ {Server for testing purposes only.} \
+ 0 \
+]
+
+set targets(localhost:8003.Default) [list \
+ {Test 8003} \
+ Default \
+ $commonFields \
+ {} \
+ {Server for testing purposes only.} \
+ 0 \
+]
+