========================================================================= Date: Tue, 28 May 1996 15:34:27 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Getting around Tcls inability to handle NULL characters. In-Reply-To: <2.2.32.19960528161127.006be750@sunrah.pfn.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I am trying to use ns_sockopen to connect to a website, request a graphic file, and then save it locally. The problem is that as soon as Tcl incounters the first NULL character it stops reading the data. Does anyone know if there is a way to get around this? I have tried piping the reads and writes in different ways, but I still get the same result. Failing a work around in Tcl does anyone know how to pass open file pointers from Tcl to C? Is a Tcl file pointer compatible with a C file pointer? Thanks, Dave David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net ========================================================================= Date: Wed, 29 May 1996 09:04:14 +0000 Reply-To: don@webcenter.net Sender: Web Development with GNNserver and GNN Hosting Service Comments: Authenticated sender is From: Don Bellamy Organization: WebCenter Internet Services, Inc. Subject: Deleting a Row Good Morning! I was wondering if there was an easy way to change or delete a row in a table. I can't seem to find any options for it, the only option I see is to actually delete the whole table? Any help would be greatly appreciated. \ \ /\ / /EBCENTER INTERNET SERVICES \ \/ \/ / Don Bellamy, don@webcenter.net \___/\___/ http://www.webcenter.net Tel 517/675-7779 Fax 517/346-7582 ========================================================================= Date: Wed, 29 May 1996 16:25:22 GMT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Chris Cline Subject: Table Formatting Is there a way to control the alignment, width, and text format of columns in a table filled with search results? I'd also like to be able to convert a 2-digit state code stored in the database to a 2-letter state abbreviation to be displayed in the table. It looks like the ns_tables and ns_columns tables might help, but they don't show up in the list of tables. (Yes, I do have ExtendedTableInfo on for the database pool.) Any help would be greatly appreciated. Thanks, Chris slonline@usa.pipeline.com ========================================================================= Date: Wed, 29 May 1996 20:11:00 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Michael Hirmke Organization: Kommunikationsnetz Franken e.V. (Nuernberg) Subject: SSI MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi *, I just installed the GNNserver software on my Windows NT 3.51 Server and everything seems to work fine except for server parsed html. I included the modules for *cgi* and *shtml* and the extension for SSI files is *.shtml*, but every time, I try to view a file with that extension, my browser (netscape 2 + 3) tells me something like "you have tried to download a file of type text/x-server-parsed-html" and I have to tell netscape, what to do with that file. If I change the extension to *.html*, I get that message for every page I try to view. If I try to view the .shtml document with GNNpress, I also get an error message (something like "Can't view ..."). If I try to view exactly the same file off a U*IX host running the NCSA httpd, everything works as expected. What did I forget ? Thanks for your help. Bye. Michael. -- Michael Hirmke, Georg-Strobel-Strasse 81, D-90489 Nuernberg, Germany e-mail: mh@mike.franken.de voice: +49 (911) 557999 fax: +49 (911) 557664 ========================================================================= Date: Wed, 29 May 1996 21:04:28 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Scott Munro Subject: ns_auth and ns_perm docs? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Howard Jones wrote: >Are the ns_auth and ns_perm functions documented anywhere? I need to use them >for a site to bulk-add users and to let the software be self-installing >(OK - this is just something that'd be nice, not vital). >Is it safe to be using these functions? I've figured out what I need for >ns_user at least, but not ns_perm yet. >Thanks for any info, I asked a similar question several issues ago. Apparently functions like ns_user et al. are currently undocumented, but are supposed to be included in the next documentation revision. I also needed to "bulk-add" users. In my case the user data was stored off-line in a dBase V database. Here is my highly inelegant (but effective) solution: 1. Create a script in whatever application you source user information resides to produce Tcl code like the following: ---- clip ------------ clip ---------------- lappend groups Group1 Group2 set password [ns_crypt shazam NU] append results "Adding new user: UserID01\n" if [catch {ns_user add UserID01 "Joe Shmoe" $password $groups "Yoyodyne, Inc."} errval] { append results "ERROR: $errval\n" } set password [ns_crypt whopee NU] append results "Adding new user: UserID02\n" if [catch {ns_user add UserID02 "Fred Freanbean" $password $groups "Acme Inc."} errval] { append results "ERROR: $errval\n" } . . etc. . . return $results ---- clip ------------ clip ---------------- 2. Cut and paste the Tcl output into the "Ad Hoc Evaluation" utility on the GNNServer. Click the "Evaluate Tcl" button. Voila - instant user accounts. The returned results will let you know if anything went wrong. Is it dangerous? Don't know... it's undocumented. Regards, Scott Munro Aardvark Interactive, LLC ========================================================================= Date: Wed, 29 May 1996 14:51:11 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jack Bailey Subject: Re: GNNserver 2.1 beta now available! In-Reply-To: <2.2.32.19960528192216.00a2a7e4@199.221.53.18> from "Jim Davidson" at May 28, 96 12:22:16 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > The GNNserver team is pleased to announce the first beta release of > GNNserver 2.1. Version 2.1 provides several new enhancements to increase > performance and scalability and make building powerful, interactive Web > sites even easier. An abbreviated list of new features is attached below. > > This first beta release of GNNserver 2.1 is available for the Sparc Solaris > and Irix platforms. The next beta release, scheduled for June 7, will > support additional platforms including Intel Windows NT. What about Solaris 2.5 x86? -- Jack Bailey zNET Internet Services ========================================================================= Date: Tue, 28 May 1996 20:15:08 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Ruth Hunter-Hill (by way of b.dobyns@clueless.com Barry A. Dobyns)" Subject: Can U Help Me? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I'm trying out NaviPress on a PC (Windows 3x). It had been working very well, but now, everytime I try to view the code (I'm trying to set up some links within a very long document), my PC locks up on me. I have plenty of memory to work with, and there are no other applications open, so I figure it must be something with Navi. I have already spoken with my company's PC support group, and I'm about to go nuts. I'm under pressure to get several documents up on our page. You sound very (VERY) computer literate (I figured that just from the equipment you use at work and at home!). Any suggestions as to what it might be? ========================================================================= Date: Thu, 30 May 1996 10:49:08 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Andreas Braig Organization: ID-Gruppe Subject: Illustra Installation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I downloaded the Illustra database, but I have problems to run it. I installed it on an HP-Workstation. When I try msql (the interactive frontend) I get the following error message: active daemons: ( this is not generated by illustra, just included for information purpose) miadmin 9519 1 0 17:36:21 ? 0:00 /users/miadmin/bin/midaemon -s default miadmin 9486 1 0 17:36:00 ? 0:00 /users/miadmin/bin/elmd -l /users/miadmin/adm/license.log -m ---------------------------------------------------- Error message after calling msql $ bin/msql template1 XVL011:license manager: SERVER FEATURE MI_LIB_USAGE: Can't login to server can't login to template1 on server default, host mdd128 Not currently connected to a database ---------------------------------------------------- Error message after calling miserver manuelly $ bin/miserver template1 ---debug info--- Quiet = f Noversion = f override = f stable = f parallel = f timings = f bufsize = 64 query echo = f DatabaseName = [template1] ---------------- **** Transaction System Active **** InitServer().. W01SG1:warning: SYSTEM_ERROR TABLE_NAME BLO CKNO <1> VAL <58.7> DESC XVL011:license manager: SYSTEM_ERROR SERVER FEATURE $ Has any one else tried Illustra or knows how to work around these problems? Thanks for your help in advance ========================================================================= Date: Thu, 30 May 1996 20:52:15 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ben White Subject: relative directory addressing Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi all, I feel stupid asking this question because I suspect (hope, anyway) that it has a simple solution, although I couldn't find it in the FAQ or in the digests- Is there a way to make the GNNserver read an page address relative to the page that holds the address? That is, a page with the name "/local/bhs/index.htm" has a link to "school.htm" As it is now, GNN server looks for a file named "/school.htm" rather than "/local/bhs/school.htm". This causes lots of modifications to page groups folks give me to post. If anyone can help or just tell me it can't be done with GNN, I'd apreciate it. Ben ========================================================================= Date: Thu, 30 May 1996 01:27:45 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: Review of Oracle WebServer 2.0 available I have written a review of Oracle WebServer 2.0 (a competitor to GNN Server) in my RDBMS-backed Web site tutorial http://webtools.com/wtr/rdbms-backed.html The executive summary is that the product raises some interesting ideas for ways to build Oracle-backed sites, mostly by taking advantage of the strengths of PL/SQL. However, it has some crippling weaknesses and one is probably best off a combination of the GNNserver Tcl API and some stored PL/SQL in the Oracle database. Guys: please, please, please finish the Oracle driver. I hear that this Oracle product is going to be really popular soon, maybe even more popular than Illustra :-) -- Philip Greenspun ------------------------------------------------------------- MIT Department of Electrical Engineering and Computer Science 545 Technology Square, Rm 609, Cambridge, MA 02139, (617) 253-8574 Personal Web URL: http://www-swiss.ai.mit.edu/philg/ ========================================================================= Date: Thu, 30 May 1996 10:52:00 +0200 Reply-To: olivier.lahaye@cea.fr Sender: Web Development with GNNserver and GNN Hosting Service From: Lahaye Olivier Subject: GNN server configuration questions and more. Mime-Version: 1.0 (generated by tm-edit 7.43) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is GNNserver able to forbid acces from a range of stations instead of a list. I'd like to allow access to my pages only for thoses machines: 132.167.3[2-5].* or 132.167.32.* 132.167.33.* 132.167.34.* 132.167.35.* How can I tell this to GNNserver ? ---------- Does any one know an approximative date for the proxy cache function. I can't switch to GNNserver because of that (I would have to reconfigure about 200 netscap/mosaic/hotjava/opb/explorer) hanks for answers. -- LAHAYE Olivier, Ath=E9sa - Ph.:(1) 46.54.72.34 Fax: (1) 46.54.75.80 E-mail: olivier.lahaye@cea.fr [Sys Administrator CEA Fontenay FRANCE] olivier.lahaye@ramses.fdn.org [At Home] ========================================================================= Date: Fri, 31 May 1996 13:14:01 -0500 Reply-To: Stuart Stanley Sender: Web Development with GNNserver and GNN Hosting Service From: Stuart Stanley Subject: PUT permission on ~user directories Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Hello all: I am using the GNN 2.031 server to host internal pages. Using gnnpress, I can add/change pages to something in my root area. (IE http://weber.netstar.com/test.html). However, if I try to save/edit to a page located in a UserMapDir based directory, it fails. (IE http://weber.netstar.com/~stuarts/test.html). I have a permission record setup for "PUT /~stuarts", but it seems to have no affect. In fact, the gnnpress does not seems to realize that it needs to send user information. Has anyone heard of this and have an idea how to configure for it? Thank you, stuart "Alerted Snakes of Consequence" - Pat Cadigan ! Stuart Stanley --Mind Players-- ! stuarts@netstar.com ! Netstar, inc. (612)-996-6829 <-> Eden Prairie, Minnesota ========================================================================= Date: Sun, 2 Jun 1996 11:46:52 -0100 Reply-To: heisler@teleport.com Sender: Web Development with GNNserver and GNN Hosting Service From: Heisler Subject: help- ns_pages, ns_url, ns_body MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am a bit confused about how full text indexing works. I would like to search the text of pages whose URL's are stored in the ns_url column of a table. When I search using /NS/GetSearchForm/table_name the automatically generated form gives the option to search the full text of ns_url. Great! I can also perform full text search by using /NS/GetSearchForm/ns_pages. Here I search for text in ns_body. the full text of ns_url. Great! I use select statements to search for text in normal text fields. A sql text search statement might look like "select * from table where t! column.name like '%text%';"search for text in normal text fields. A sql text search statement might look like "select * from table where t! When I use this statement on the table ns_pages column ns_body I get an error = "XP0016:Cannot resolve column/function reference 'like' on ! arguments of types: (doc, text)" table ns_pages column ns_body I get an error = "XP0016:Cannot resolve column/function reference 'like' on ! 1. What is a column of type doc?table ns_pages column ns_body I get an error = "XP0016:Cannot resolve column/function reference 'like' on ! 2. What sql statement operator works on a column that is type = doc? LIKE does not cut it.ot resolve column/function reference 'like' on ! 3. Does Anyone have a bit of tcl that has a select statement that finds text in indexed web pages and returns customized results?like' on ! -Thankss Anyone have a bit of tcl that has a select statement that finds text in indexed web pages and returns customized results?like' on ! Hal Heisler heisler@teleport.com Portland, ORs text in indexed web pages and returns customized results?like' on ! http://www.rcentral.com (under construction) Portland, ORs text in indexed web pages and returns customized results?like' on ! ========================================================================= Date: Tue, 4 Jun 1996 10:56:23 +0900 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Mou(M.D.Chiu)" Organization: Institute for Information Industry Subject: Without Domain Name Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Why my Gnn Server can only be accessed within the local network? Is it caused by that my Gnn Server is on the site without DNS? ========================================================================= Date: Tue, 4 Jun 1996 17:40:50 +0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Howard Jones Subject: Re: Deleting a Row Comments: To: Don Bellamy In-Reply-To: <199605291306.JAA00971@vixa.voyager.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 29 May 1996, Don Bellamy wrote: > I was wondering if there was an easy way to change or delete a row in > a table. I can't seem to find any options for it, the only option I > see is to actually delete the whole table? > > Any help would be greatly appreciated. ns_db dml $db "DELETE Table.* FROM Table Where Table.ID=1224;" if you are using TCL. On a related thing - if I do an INSERT into a table where the key field is a Counter (it's an Access database), can I somehow get back the ID assigned to that record straight away? I want to be able to insert a record, then some others into a cross-reference table. Is this an SQL impossibility? -- Howard Jones Voss Net Plc. Internet: hjones@vossnet.co.uk http://www.vossnet.co.uk/people/Howard/index.html ========================================================================= Date: Mon, 3 Jun 1996 17:47:46 +0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Nuooia Iaaae Subject: Cyrillic letters in GNNPress Is there way to edit cyrillic pages in GNNPress without substituition? Pol Syrtsov, Web Master, DBA Group Manager, ACCU Member http://www.chel.su/~pol email pol@ptt.chel.su ========================================================================= Date: Tue, 4 Jun 1996 13:42:03 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Larry W. Virden, x2487" Subject: Re: Getting around Tcls inability to handle NULL characters. In-Reply-To: of Tue, 28 May 1996 15:34:27 -0400 > I am trying to use ns_sockopen to connect to a website, request > a graphic file, and then save it locally. The problem is that as soon > as Tcl incounters the first NULL character it stops reading the data. > Does anyone know if there is a way to get around this? I have tried > piping the reads and writes in different ways, but I still get the same > result. Failing a work around in Tcl does anyone know how to pass open > file pointers from Tcl to C? Is a Tcl file pointer compatible with a C > file pointer? > I can't speak for GNN's products, but native Tcl doesn't support reading of NULL characters into string variables - it's the only limit. There are numerous Tcl extensions which provide binary object support - see for details. P.S. A Tcl file pointer is not compatible with a C file pointer. -- Larry W. Virden INET: lvirden@cas.org is here! <*> O- Unless explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. ========================================================================= Date: Tue, 4 Jun 1996 14:28:27 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: Can U Help Me? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 08:15 PM 5/28/96 -0700, you wrote: >I'm trying out NaviPress on a PC (Windows 3x). It had been working very >well, but >now, everytime I try to view the code (I'm trying to set up some links >within a very >long document), my PC locks up on me. I have plenty of memory to work with, >and >there are no other applications open, so I figure it must be something with >Navi. My first suggestion would be to upgrade to GNNpress 1.1, which has a few bug fixes. GNNpress 1.1 is available at: http://www.tools.gnn.com/ Regards, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Tue, 4 Jun 1996 14:04:27 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Mark Frazier Subject: Support for Frames? It's probably been asked before... but I'd appreciate an answer ASAP. We'd like to use GNNPress 1.1 or 1.2(beta) to build pages with frames. The online documentation isn't clear on whether this can be done in a way viewable by Netscape browsers. Thanks for any help on this you can provide. Mark Frazier Open World Partnership/Gateway Ventures Ltd. ========================================================================= Date: Tue, 4 Jun 1996 09:25:29 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: MOLSKI_FRANK/DAL11_FWMOLSKI//US/MOBIL/BB2@dal.mobil.com Subject: Pages in UserMapDir directory (GNNserver 2.1 beta) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="openmail-part-06131f1e-00000001" --openmail-part-06131f1e-00000001 Content-Type: message/rfc822 Subject: pages in UserMapDir directory (GNNserve FROM: fwmolski/dal11_mime////////RFC-822/fwmolski#a#dal#f#mobil#f#com@dalhp017 TO: gnndeveloper-1@services.web.aol.com CC: fwmolski@dal.mobil.com Content-Type: multipart/Mixed; boundary="openmail-part-06131f1e-00000002" --openmail-part-06131f1e-00000002 Content-Type: text/plain; charset=US-ASCII; name="pages in UserMapDir directory (GNNserver 2.1 beta)" Content-Transfer-Encoding: 7bit I specified the UserMapDir parameter configuring a virtular server. Then when I'm browsing the site, the index.htm and pictures it refers are displayed OK. However when I click on a local link the htm file located in the same directory ( referred to by the file name) cannot be found. The referred file can be accessed when specified in the URL window. The results are the same using the Netscape or the GNNpress browser. There is only one virtual server set up. No user or group is set up. The PageRoot parameter is not setup. What could be wrong? Attached is the nsd.ini file Regards, Frank --openmail-part-06131f1e-00000002 Content-Type: text/plain; charset=US-ASCII; name="pages in UserMapDir directory (GNNserver 2.1 beta)" Content-Transfer-Encoding: 7bit [ns\module\nsdb\drivers] illustra=nsill.so external=nsext.so [ns\parameters] home=/home/fwmolski/gnn/server User=fwmolski [ns\server\server1] DirectoryFile=index.html, index.htm, index.shtml Verbose=Off UserMapDir=web/pages TrailerFindEnd=On DirectoryListing=Simple HideDotFiles=On HeaderCase=Preserve MinThreads=0 MaxThreads=50 FlushContent=On CheckInterval=60 MinThreadAge=60 CheckModified=On MaxLine=8192 MaxHeaders=16384 MaxPost=65536 [ns\server\server1\module\nssock] Port=8080 [ns\server\server1\modules] nssock=nssock.so nsperm=nsperm.so nslog=nslog.so [ns\servers] server1=Virtual Server One [ns\setup] --openmail-part-06131f1e-00000002-- --openmail-part-06131f1e-00000001-- ========================================================================= Date: Tue, 4 Jun 1996 15:05:07 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Re: Getting around Tcls inability to handle NULL characters. Comments: To: "Larry W. Virden, x2487" In-Reply-To: <9606041342.AA13805@cas.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 4 Jun 1996, Larry W. Virden, x2487 wrote: Thanks for the info. I actually got the problem solved before my message made it to the list. For anyone else that may be interested the source is below. The usage is ns_b_read $rfp $new: $rfp is the STREAM that is being read and $new is the STREAM being written to. Both must be opened prior to calling this function. As I usually tell people that I give my code to, this has been used only on an SGI so I will not make claims about it working on other platforms, especially NT. > P.S. A Tcl file pointer is not compatible with a C file pointer. Actually this isn't true. The function (undocumented as it is) Tcl_GetOpenFile does just that. You can see how it is used below. I found this when hacking through tclUnixAZ.c file from the Tcl 7.4 to see how the normal read command was handled. David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net -------Source------- #include "ns.h" #include "tcl.h" /* * If the system doesn't define one or both of the errno values EAGAIN * and EWOULDBLOCK, #define them to a bogus value that will never occur. */ #ifndef EAGAIN # define EAGAIN -1901 #endif #ifndef EWOULDBLOCK # define EWOULDBLOCK -1901 #endif static int Tcl_Ns_bReadCmd(ClientData, Tcl_Interp *, int, char **); extern Tcl_Interp *Ns_TclInterp(void); static int Tcl_Ns_bRead(Tcl_Interp *interp, void *context) { Tcl_CreateCommand(interp, "ns_b_read", Tcl_Ns_bReadCmd, NULL, NULL); return NS_OK; } static int Tcl_Ns_bReadCmd(ClientData dummy, Tcl_Interp *interp, int argc, char **argv) { char data; FILE *rfp; FILE *wfp; if (argc != 3) { Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " read-fileId write-fileId\"", (char *) NULL); return TCL_ERROR; } if (Tcl_GetOpenFile(interp, argv[1], 0, 1, &rfp) != TCL_OK) { return TCL_ERROR; } if (Tcl_GetOpenFile(interp, argv[2], 0, 1, &wfp) != TCL_OK) { return TCL_ERROR; } while(!feof(rfp)) { data = fgetc(rfp); fputc(data, wfp); } return TCL_OK; } DllExport int Ns_ModuleInit(char *hServer, char *hModule) { return (Ns_TclInitInterps(hServer, Tcl_Ns_bRead, NULL)); } ========================================================================= Date: Wed, 5 Jun 1996 03:57:29 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Matthew Hewitt Subject: Re: Getting around Tcls inability to handle NULL characters. In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_05tW30g.bO1996u.N10d000A.r06Y.57:00541a" Content-Transfer-Encoding: 7bit --=_05tW30g.bO1996u.N10d000A.r06Y.57:00541a Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit You might want to instead of doing all of the hard work your self, just use ns_geturl. to get the graphics file then dave the results from that locally. > I am trying to use ns_sockopen to connect to a website, request >a graphic file, and then save it locally. The problem is that as soon >as Tcl incounters the first NULL character it stops reading the data. > Does anyone know if there is a way to get around this? I have tried >piping the reads and writes in different ways, but I still get the same >result. Failing a work around in Tcl does anyone know how to pass open >file pointers from Tcl to C? Is a Tcl file pointer compatible with a C >file pointer? > >Thanks, >Dave > >David Whittle >Internet Systems Developer >Digital City >(P) (703) 918-2465 >(F) (703) 917-1207 >(E) gnat@aol.net > --=_05tW30g.bO1996u.N10d000A.r06Y.57:00541a Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="SIG.TXT" Content-Description: The Sender's Signature Matthew Hewitt Head Programer AM Computers The Source for Advanced Computing Solutions http://am.net --=_05tW30g.bO1996u.N10d000A.r06Y.57:00541a-- ========================================================================= Date: Tue, 4 Jun 1996 15:26:18 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ron Hoeltge Subject: Re: Can U Help Me? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" >I'm trying out NaviPress on a PC (Windows 3x). It had been working very >well, but >now, everytime I try to view the code (I'm trying to set up some links >within a very >long document), my PC locks up on me. I have plenty of memory to work with, >and >there are no other applications open, so I figure it must be something with >Navi. > >I have already spoken with my company's PC support group, and I'm about to >go nuts. > I'm under pressure to get several documents up on our page. For an absolute worst-case scenario, open your local .htm files in a text editor like Notepad and your browser at the same time...as soon as you make and save changes, you can view results. MS Word or a similar drag and drop-type word processor also work well, but you have to close the doc in order to view it. Granted, it's not semi-WYSIWYG like GNNPress, but in a last minute deadline scenario, it'll get you by, and make you quite HTML-savvy (as well as half-blind and crazy). Ron Hoeltge Creative Technologist BHA Group, Inc. ========================================================================= Date: Tue, 4 Jun 1996 17:47:52 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: Deleting a Row Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:04 AM 5/29/96 +0000, you wrote: >Good Morning! > >I was wondering if there was an easy way to change or delete a row in >a table. I can't seem to find any options for it, the only option I >see is to actually delete the whole table? The GNNserver has a built-in interface to update and delete specific rows from a table. To use it, first search the table using criteria that will identify the row(s) you want to delete. The hit list will have numbered links to the update form for each row, along the left side of the table; just click on the link to get to the update/delete form. Regards, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Tue, 4 Jun 1996 23:08:00 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Nils-Olov Fransson Subject: Re: Deleting a Row Comments: To: don@webcenter.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Don Bellamy wrote: > > Good Morning! > > I was wondering if there was an easy way to change or delete a row in > a table. I can't seem to find any options for it, the only option I > see is to actually delete the whole table? > snip snip Do you mean to delete a row in a table on a web page? If so you can edit the code for the page. Click on the magnifying glass icon to open the code window, locate the row (....) you want to delete and delete it. This way you can also insert rows in a table, just add "" before or after an other row and close the the code window. Nils-Olov Fransson ========================================================================= Date: Wed, 5 Jun 1996 11:41:51 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Allan Whitworth Subject: GNN Browser disappears after a few GPFs Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Is there a newer beta of GNN browser...or a fix for failed application other than backing up retrospectively? Thanks, Allan Whitworth Thank you, Allan Whitworth ServElectr@gnn.com http://members.gnn.com/ServElectr/soehome.htm ========================================================================= Date: Wed, 5 Jun 1996 09:39:15 +0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: WEB daemon Subject: Re: Cyrillic letters in GNNPress Comments: To: Nuooia Iaaae In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mmmm, I begining to work with GNNPerss next month ago. And not solve this problem too (if I use powerful GNNPress) I put cyrillic letters in HTML windows. But It not comfortable. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Vladimir I.Ulogov: vladimir@staff.rosmail.com % % gandalf@rivendell.rosmail.com % % +7-(095)-206-8570 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ========================================================================= Date: Wed, 5 Jun 1996 01:13:28 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Marco Coletti Subject: Re: relative directory addressing Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 20.52 30/05/96 -0400, you wrote: >Hi all, >I feel stupid asking this question because I suspect (hope, anyway) that it >has a simple solution, although I couldn't find it in the FAQ or in the digests- > >Is there a way to make the GNNserver read an page address relative to the >page that holds the address? That is, a page with the name >"/local/bhs/index.htm" has a link to "school.htm" As it is now, GNN server >looks for a file named "/school.htm" rather than "/local/bhs/school.htm". >This causes lots of modifications to page groups folks give me to post. > >If anyone can help or just tell me it can't be done with GNN, I'd apreciate it. The web server does not matters. For any and every object to be retrieved, the browser always passes to the server a HTTP request with an URL path relative to the root dir such as GET /local/bhs/school.htm HTTP/1.0 It is responsibility of the browser to add up the relative URL contained in the link with the current URL (displayed in the location line or based on a tag in the HTML code) to produce the URL-relative-to-root it passes to the server. Regards. -= MarCo =- ========================================================================= Date: Wed, 5 Jun 1996 08:16:46 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Larry W. Virden, x2487" Subject: Re: Getting around Tcls inability to handle NULL characters. In-Reply-To: of Tue, 4 Jun 1996 15:05:07 -0700 (PDT) I guess I misunderstood what you meant by a Tcl fileid then - sorry. -- Larry W. Virden INET: lvirden@cas.org is here! <*> O- Unless explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. ========================================================================= Date: Wed, 5 Jun 1996 13:21:59 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Problem Vacuuming Illustra. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I have moved a few databases from the version of Illustra that came with the 1.0 server to the version that is currently available from www.tools.gnn.com. Every time I try using "vacuum all;" on one of these databases I get the following error: XZ0000:Internal error But I can vacuum any of the tables within the database without a problem. Does anyone know what might be causing this or if it is possible to fix it? Thanks, David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net ========================================================================= Date: Wed, 5 Jun 1996 14:43:16 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: MOLSKI_FRANK/DAL11_FWMOLSKI//US/MOBIL/BB2@dal.mobil.com Subject: Pages in UserMapDir directory (GNNserver 2.1 beta) In-Reply-To: <31B445AA.269F@dal.mobil.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; name="Pages in UserMapDir directory (GNNserver 2.1 beta)" Content-Transfer-Encoding: 7bit I (Frank Molski) wrote: > .I specified the UserMapDir parameter configuring a virtular server. > .Then when I'm browsing the site, the index.htm and pictures it refers are > .displayed OK. However when I click on a local link the htm file located > .in the same directory ( referred to by the file name) cannot be found. > .The referred file can be accessed when specified in the URL window. The > .results are the same using the Netscape or the GNNpress browser. > . > .There is only one virtual server set up. No user or group is set up. The > .PageRoot parameter is not setup. > . > .What could be wrong? It was my fault. The index.html file referenced other *.html files. However, the files, copied from DOS had the .htm extensions. So, they could not be found. Sorry for disturbing you. Regards, Frank ========================================================================= Date: Thu, 6 Jun 1996 00:10:43 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: Problem Vacuuming Illustra. Comments: cc: gnat In-Reply-To: <199606060402.AAA04679@services.web.aol.com> (message from Automatic digest processor on Thu, 6 Jun 1996 00:00:45 -0400) Date: Wed, 5 Jun 1996 13:21:59 -0700 From: gnat Subject: Problem Vacuuming Illustra. I have moved a few databases from the version of Illustra that came with the 1.0 server to the version that is currently available from www.tools.gnn.com. Every time I try using "vacuum all;" on one of these databases I get the following error: XZ0000:Internal error But I can vacuum any of the tables within the database without a problem. Does anyone know what might be causing this or if it is possible to fix it? I've had a lot of data integrity problems with Illustra. Usually the chickens come home to roost when I try to make a back up. Here are some possibilities: 1) you can expect to get hosed if you try to do "on-line" dumps. That means if your Illustra was processing inserts and updates while you were dumping the data out, you probably have a corrupt dump. 2) you can sometimes clean up a bit by manually banging on the refcount table (used for garbage collection). 3) purging the archived rows is alleged to help. Finally, you may have to dump the data out into Unix file system files and then reload it all. That will presumably fix the problem... -- Philip Greenspun ------------------------------------------------------------- MIT Department of Electrical Engineering and Computer Science 545 Technology Square, Rm 609, Cambridge, MA 02139, (617) 253-8574 Personal Web URL: http://www-swiss.ai.mit.edu/philg/ ========================================================================= Date: Thu, 6 Jun 1996 12:17:26 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Krish Menon Subject: My GNN server's gone nuts Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Yesterday, I added one more virtual domain to our server, as usual, with just the basic modules. I mapped an IP to the domain alias, set it up, and rebooted the server. Ever since then, GNNserver has been hanging with delays for about 3 - 4 minutes every hour or so. The log files have nothing on to say at all - except this: [06/Jun/1996:11:20:50 -0500][1610.0x9] Error: SocketAccept(http://www.iw.net): Could not set socket options on socket 307: Broken pipe What's going on? I'm running GNNserver 2.03 on Solaris. -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ========================================================================= Date: Thu, 6 Jun 1996 11:24:36 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Infowave Subject: Re: SSI Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I wasn't sure what you meant by "I included the modules for *cgi* and *shtml*...", but just in case, did you configure GNNServer such that in nsd.ini, you included under \NS\Server\default\Modules, shtml.so, and set up \NS\Server\default\module\shtml and other related parameters? Regards, Wendy Liu Infowave Communications ========================================================================= Date: Thu, 6 Jun 1996 15:02:03 -0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Hal Heisler Subject: Searching text of indexed pages Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" When /NS/GetSearchForm/table_name is called up a search form is generated for table_name. If the table contains a column named ns_url the search form will give the option to search the full text of ns_url. I would like to do the same kind of search only from a tcl script. I have tried all types of SQL queries without any success. Does anyone know how to mimic the actions of the full text search of ns_url found in /NS/GetSearchForm/table name in a tcl script? Hal M. Heisler heisler@teleport.com Portland, OR ========================================================================= Date: Fri, 7 Jun 1996 11:54:17 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kristian Jorg Subject: Re: My GNN server's gone nuts > Yesterday, I added one more virtual domain to our server, as usual, with > just the basic modules. I mapped an IP to the domain alias, set it up, and > rebooted the server. Ever since then, GNNserver has been hanging with delays > for about 3 - 4 minutes every hour or so. > > The log files have nothing on to say at all - except this: > > [06/Jun/1996:11:20:50 -0500][1610.0x9] Error: SocketAccept(http://www.iw.net): > Could not set socket options on socket 307: Broken pipe > > What's going on? I'm running GNNserver 2.03 on Solaris. Hi Krish, I don't think I can help you with this. But I have a question about virtual servers that you obviously have an answer to. How do you set up a new IP address for the virtual server? This has totaly eluded me. I thought that one ethernet adapter could have only one address. In the case of setting up PPP the system adds "virtual ethernet adapters" which holds the IP addresses. So how map an IP address into the system for a virtual server? Arp? Much obliged if you can help! Regards Kristian ========================================================================= Date: Fri, 7 Jun 1996 10:37:08 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Krish Menon Subject: Database Error Messages Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I have a bunch of these in my log file - any idea what might be causing them? [07/Jun/1996:10:26:18 -0500][1679.0x35] Notice: Ns_Ill(default:nsdb): XTL001:Se rver file error: write of 575 bytes to file /usr/tmp/baaa000R3.89783 failed [07/Jun/1996:10:26:18 -0500][1679.0x35] Error: Text(default): Error indexing URL : /users/pheasants/stand.htm cd /usr/[07/Jun/1996:10:27:42 -0500][1679.0x35] Notice: Ns_Ill(default:nsdb): X TL001:Server file error: write of 288 bytes to file /usr/tmp/caaa000R3.41316 fai led [07/Jun/1996:10:27:42 -0500][1679.0x35] Error: Text(default): Error indexing URL : /users/pheasants/yesgames.htm -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ========================================================================= Date: Fri, 7 Jun 1996 12:29:19 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: John Stewart Subject: MiniWeb help? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To anyone with a larger clue than me about MiniWebs: I'm using the latest beta Solaris GNNpress (1.2.b3) with a 2.03 Solaris GNNserver and I "webized" a directory with html docs already in it. However, when looking at the MiniWeb view of the directory, my index.html did not have the "Home Page" icon - it just looked like a text file (and no arrows for links were anyplace). I can't seem to find any way to define what the Home Page should be for a MiniWeb. According to the documentation for 1.1 (http://www.tools.gnn.com/press/1.1/usrguide/miniweb1.htm), to set the Home Page, you "click on the down arrow to the right of the Home Page Title field". Well, in the MiniWeb view, this seems to just give you a list of recent documents. In the regular view, there is no right arrow to the right of the Title field... In fact, the server started returning one of the graphics in the directory instead of index.html when you just specified the directory name in the URL! I've been able to get the index.html to be the Home Page, by renaming it and then importing it back into the directory... definetely a kluge. I've also noticed when saving files that the file type for the html docs is ???? instead of HTML (other file types for graphics, etc. seem to work fine). Am I missing something or is this a bug of some sort? thanks! John Stewart LAN Administrator Heurikon Corporation johns@heurikon.com ========================================================================= Date: Fri, 7 Jun 1996 18:16:00 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Michael Hirmke Organization: Kommunikationsnetz Franken e.V. (Nuernberg) Subject: Re: GNNDEVELOPER-L Digest - 5 Jun 1996 to 6 Jun 1996 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit [...] > Date: Thu, 6 Jun 1996 11:24:36 -0700 > From: Infowave > Subject: Re: SSI > > I wasn't sure what you meant by "I included the modules for *cgi* and ^^^^^^^^^^^^^^^^^^^^ > *shtml*...", but just in case, did you configure GNNServer such that in ^^^^^ > nsd.ini, you included under \NS\Server\default\Modules, shtml.so, and set up ^^^^^^^^ ^^^^^.dll for NT > \NS\Server\default\module\shtml and other related parameters? That was exactly what I meant and what I did ! > > Regards, > Wendy Liu Bye. Michael. -- Michael Hirmke, Georg-Strobel-Strasse 81, D-90489 Nuernberg, Germany email mh@mike.franken.de / voice +49-911-557999 / fax +49-911-557664 ========================================================================= Date: Fri, 7 Jun 1996 17:14:01 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Ron Patterson (by way of Jeff Rawlings )" Subject: GNNserver question? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello all, I've been using the GNNserver for almost a month now and I am pretty impressed. It performs quite adaquately especially using TCL scripts to access the Illustra database. Also the management of the server is very nice especially when maintaining users and access permissions. One question that I have: I have created a directory under the main TCL script directory to put our own scripts into called Meta. This all works fine until the GNNserver gets killed and restarted for any reason then it seems that the scripts in this subdirectory are not reloading into the server. I have to reinitialize that script directory manually. Is there anyway to make this happen automatically as it does with the main TCL directory and its other subdirectories? Thanks for any help, Ron -- =============================================================== Ron Patterson | MCI Communications (warehouseMCI) Ron.Patterson@mci.com | 5775 Mark Dabling Blvd. 601-2386@mcimail.com | Dept. 1927/786 719-535-5727 | Colorado Springs, CO 80919 Fax: 719-535-6164 | ========================================================================= Date: Thu, 6 Jun 1996 23:32:21 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Chris Umali Subject: Web Browser Redirect Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, Has anyone out there developed a script that can do a redirect on an html, based on the agent browser? Or has anyone has implemented such a thing in their web site? Someone informed me that there are examples of this on the GNN Server support site, but I am unable to find it. And also, has anyone out there developed a TCL script that can do a multiple query search on the Awesome GNN server database? Thanks & Have a nice weekend, Chris Umali Assistant WebMaster ENVISION GROUP / NetWerks http://www.netwerks.com chris@netwerks.com ========================================================================= Date: Sat, 8 Jun 1996 12:15:19 UT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Doug Patton <365_TAO_DigitalBeing@msn.com> Subject: Re: Can U Help Me? Ruth - it would be best to open up the .htm or .html file you are working on. I would suggest WEBEDIT 2.0 or 1.4c you can get them from http://www.nesbitt.com - THEY have WYSIWYG Split screen HTML editing. I have used 6 editors in my time (3 years now in HTML writing) and this one is the best one for the Windows Environment., for the MAC BBEDIT. For UNIX just plain old VI. Navipress is OK but it hides you from the CODE, IT would be fine if the Hiding actually worked ;-). But until STYLES are approved by the W3C, knowing the actually code to build a page and how it works in different browsers is the only way to get a excellent presentation of ones work. It is sad that the Browser right now are forcing Webmasters to choose what HTML , VRML, SGML etc to use. This is the NET where substance is everything, not how it looks. ---------- From: Web Development with GNNserver and GNN Hosting Service on behalf of Ruth Hunter-Hill (by way of b.dobyns@clueless.com Barry A. Dobyns) Sent: Tuesday, May 28, 1996 11:15 PM To: Multiple recipients of list GNNDEVELOPER-L Subject: Can U Help Me? I'm trying out NaviPress on a PC (Windows 3x). It had been working very well, but now, everytime I try to view the code (I'm trying to set up some links within a very long document), my PC locks up on me. I have plenty of memory to work with, and there are no other applications open, so I figure it must be something with Navi. I have already spoken with my company's PC support group, and I'm about to go nuts. I'm under pressure to get several documents up on our page. You sound very (VERY) computer literate (I figured that just from the equipment you use at work and at home!). Any suggestions as to what it might be? ========================================================================= Date: Sat, 8 Jun 1996 02:51:06 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Edward C. Zimmermann" Subject: Re: My GNN server's gone nuts In-Reply-To: <9606070954.AA05086@ befor.se> from "Kristian Jorg" at Jun 7, 96 11:54:17 am Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > > Yesterday, I added one more virtual domain to our server, as usual, with > > just the basic modules. I mapped an IP to the domain alias, set it up, and > > rebooted the server. Ever since then, GNNserver has been hanging with delays > > for about 3 - 4 minutes every hour or so. > > > > The log files have nothing on to say at all - except this: > > > > [06/Jun/1996:11:20:50 -0500][1610.0x9] Error: SocketAccept(http://www.iw.net): > > Could not set socket options on socket 307: Broken pipe > > > > What's going on? I'm running GNNserver 2.03 on Solaris. > > Hi Krish, > > I don't think I can help you with this. But I have a question about > virtual servers that you obviously have an answer to. How do you set up > a new IP address for the virtual server? This has totaly eluded me. I thought For SunOS use vip (kernel module), for Solaris use virtual le built-in.. viz. le:1 le:2 le:3 ... up to 256 .. Add the address to the reverse maps and DNS ifconfig and ... > that one ethernet adapter could have only one address. In the case of setting The ethernet can have upto 256 virtual addresses under Solaris. > up PPP the system adds "virtual ethernet adapters" which holds the IP addresses. > > So how map an IP address into the system for a virtual server? Arp? ifconfig > > Much obliged if you can help! > > Regards > Kristian > -- ______________________ Edward C. Zimmermann Basis Systeme netzwerk/Munich ========================================================================= Date: Fri, 7 Jun 1996 22:03:25 PDT Reply-To: heinz@bytedesigns.com Sender: Web Development with GNNserver and GNN Hosting Service From: Heinz Wittenbecher Organization: Byte Designs Subject: Is recovery from lost password(s) possible? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 I did the unforgivable and managed to screw up (forget) passwords used. I'm running GNNserver 2.04 on Linux. Is there a way to recover without a fresh install? Thanks in advance. Heinz *********************************************************************** * Heinz Wittenbecher, Byte Designs Ltd. Voice: (604) 534-0722 * * heinz@bytedesigns.com Langley, BC CANADA Fax: (604) 534-2601 * * http://www.bytedesigns.com * ========================================================================= Date: Sat, 8 Jun 1996 18:28:44 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: Re: GNNDEVELOPER-L Digest - 6 Jun 1996 to 7 Jun 1996 Comments: cc: Kristian Jorg In-Reply-To: <199606080403.AAA22444@services.web.aol.com> (message from Automatic digest processor on Sat, 8 Jun 1996 00:01:11 -0400) Date: Fri, 7 Jun 1996 11:54:17 +0200 From: Kristian Jorg Subject: Re: My GNN server's gone nuts > Yesterday, I added one more virtual domain to our server, as usual, with > just the basic modules. I mapped an IP to the domain alias, set it up, and > rebooted the server. Ever since then, GNNserver has been hanging with delays > for about 3 - 4 minutes every hour or so. > > The log files have nothing on to say at all - except this: > > [06/Jun/1996:11:20:50 -0500][1610.0x9] Error: SocketAccept(http://www.iw.net): > Could not set socket options on socket 307: Broken pipe > > What's going on? I'm running GNNserver 2.03 on Solaris. Hi Krish, I don't think I can help you with this. But I have a question about virtual servers that you obviously have an answer to. How do you set up a new IP address for the virtual server? This has totaly eluded me. I thought that one ethernet adapter could have only one address. In the case of setting up PPP the system adds "virtual ethernet adapters" which holds the IP addresses. So how map an IP address into the system for a virtual server? Arp? Much obliged if you can help! RTFM, Kristian.... Incredibly, the GNNserver Admin manual tells you how to add IP addresses to most flavors of Unix (though I think the HP-UX info is out of date; up to date info is in http://webtools.com/wtr/ ). -- Philip Greenspun ------------------------------------------------------------- MIT Department of Electrical Engineering and Computer Science 545 Technology Square, Rm 609, Cambridge, MA 02139, (617) 253-8574 Personal Web URL: http://www-swiss.ai.mit.edu/philg/ ========================================================================= Date: Mon, 10 Jun 1996 05:38:45 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Axel Rebai Subject: cgi post methode Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" hi all, i just want to know where can i ftp a procedure for the GNNserver to handle the POST methode thanks Axel ________________________________________________________ Axel Rebai Maison de la Productique de Roanne Esplanade diderot 42300 Roanne France Tel 77 71 20 00 Fax 77 72 52 99 ________________________________________________________ ========================================================================= Date: Mon, 10 Jun 1996 11:34:56 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Lionel Menard Subject: Segmentation fault Comments: cc: lm@SERVICES.WEB.AOL.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello Gnnserver user, I have a pb that maybe one of you had already face.I have install gnnserver on my SUN OS 4.1.4 UNIX Work-sation without pb and now I'm trying to install the database facility and when I follow the steps leading me to install the template I got this message when running nsql: %nsql -U miadmin template1 Segmentation fault % Does anyone of you has already face this pb ? I've send a mail to gnnserver-bugs@tools.gnn.com but they hav'nt find a solution yet. Any help to let me install this database feature will be greatly apricaited. Lionel -- Lionel MENARD | e-mail: lm@augusta.cma.fr Ecole des Mines, Centre d'Energetique BP 207 | http://www-cenerg.cma.fr/~lm/ 06904 Sophia Antipolis FRANCE | tel: (33) 93 95 74 23 ========================================================================= Date: Mon, 10 Jun 1996 10:50:35 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Is recovery from lost password(s) possible? Comments: To: heinz@bytedesigns.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:03 PM 6/7/96 PDT, Heinz Wittenbecher wrote: >I did the unforgivable and managed to screw up (forget) passwords used. > >I'm running GNNserver 2.04 on Linux. >Is there a way to recover without a fresh install? You can edit the password entry in the servers/server1/modules/nsperm/users.dat file (assuming your virtual server is called "server1"). The password is encoded in the same manner as /etc/passwd. Note: The server considers it a security risk for the permission files to be modified out from under it. If it discovers a file has been modified it shuts down the virtual server. To avoid this, shutdown the server, edit the password, and restart. Cheers, -Jim _________________________________________________ Jim Davidson | jimbo@sb.aol.com America Online Inc. | Voice: (805) 882-2350 511 Bath Street | Fax: (805) 899-4316 Santa Barbara, CA 93101 | ========================================================================= Date: Mon, 10 Jun 1996 21:10:41 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: GNNserver 2.1 beta release 2 now available! Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, The second beta release of GNNserver 2.1 is now available. In addition to the SGI and Solaris platforms, Windows NT Intel is now supported. For the latest GNNserver beta information, open: http://www.tools.gnn.com/server/2.1beta.html If you experience any problems or have suggestions for this release be sure to report them immediately to: gsbeta@sb.aol.com If you downloaded the first beta release, please note the following: - You must register to download the second release even if you're already a registered gnnserver user. To register, open the URL above. - Be sure to read the late-breaking notes for this second release. In particular, the "nsinit" program required by the first release is no longer necessary (it's functionality is now built into nsd) and the Illustra proxy daemon has been renamed "nsillpd". - Be sure to read the new release notes as they include descriptions of 2.1 features which were not documented in the first release. Enjoy! - The GNNserver Team _________________________________________________ Jim Davidson | jimbo@sb.aol.com America Online Inc. | Voice: (805) 882-2350 511 Bath Street | Fax: (805) 899-4316 Santa Barbara, CA 93101 | ========================================================================= Date: Mon, 10 Jun 1996 21:38:50 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Searching text of indexed pages Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:02 PM 6/6/96 -0100, Hal Heisler wrote: >When /NS/GetSearchForm/table_name is called up a search form is generated for table_name. If the table contains a column named ns_url the search form will give the option to search the full text of ns_url. > >I would like to do the same kind of search only from a tcl script. > >I have tried all types of SQL queries without any success. > >Does anyone know how to mimic the actions of the full text search of ns_url found in /NS/GetSearchForm/table name in a tcl script? Hello, The full text index is store in table with the "doc" Illustra Text Datablade type. The GNNserver documentation set includes a manual for the Text datablade which describes functions for querying the index. In GNNserver 1.0, the needed query was buried deep in C code. In 2.0, the functionality was moved to Tcl scripts in the modules/tcl/nstext and modules/tcl/nsdb directories. If you're using 2.0, you should be able to use the "fulltextsearch" procedure defined in the modules/tcl/nstext/fulltext.tcl file to send the right query to the database Cheers, -Jim _________________________________________________ Jim Davidson | jimbo@sb.aol.com America Online Inc. | Voice: (805) 882-2350 511 Bath Street | Fax: (805) 899-4316 Santa Barbara, CA 93101 | ========================================================================= Date: Mon, 10 Jun 1996 21:58:44 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: ns_auth and ns_perm docs? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:04 PM 5/29/96 -0400, Scott Munro wrote: >Howard Jones wrote: > >>Are the ns_auth and ns_perm functions documented anywhere? I need to use them >>for a site to bulk-add users and to let the software be self-installing >>(OK - this is just something that'd be nice, not vital). > >>Is it safe to be using these functions? I've figured out what I need for >>ns_user at least, but not ns_perm yet. > >>Thanks for any info, > >I asked a similar question several issues ago. Apparently functions like >ns_user et al. are currently undocumented, but are supposed to be included >in the next documentation revision. > >I also needed to "bulk-add" users. In my case the user data was stored >off-line in a dBase V database. Here is my highly inelegant (but effective) >solution: > >1. Create a script in whatever application you source user information >resides to produce Tcl code like the following: > >---- clip ------------ clip ---------------- > ... >---- clip ------------ clip ---------------- > >2. Cut and paste the Tcl output into the "Ad Hoc Evaluation" utility on the >GNNServer. Click the "Evaluate Tcl" button. Voila - instant user accounts. >The returned results will let you know if anything went wrong. Is it >dangerous? Don't know... it's undocumented. Hello, The ns_user and related permission commands are safe to use and we plan to document them for the 2.1 release. Examples of their use can be found in the modules/tcl/nsperm/ directory were the scripts which implement the permissions interface are located. If you have many users to create, you might consider editing the *.dat files in the servers//modules/nsperm/ directory. The files are in text format and the passwords in the users.dat file are encoded in the same manner as /etc/passwd (i.e., using the crypt() library function). Note: You have to restart the server for the changes to take effect. Cheers, -Jim _________________________________________________ Jim Davidson | jimbo@sb.aol.com America Online Inc. | Voice: (805) 882-2350 511 Bath Street | Fax: (805) 899-4316 Santa Barbara, CA 93101 | ========================================================================= Date: Mon, 10 Jun 1996 22:41:43 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Intel Solaris Bargain Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello GNNserver Users, I want to let everyone on the gnndeveloper list know about a really great offer from Sun on Intel Solaris. For $995 you can get Solaris 2.5 plus the C and C++ compilers and multithreaded debuggers. This is a real bargain - I think the regular price is over $4000! In fact, at this price it's almost as cheap as NT and Visual C++. For the pitch from Sun, open: http://www.sun.com:80/sunsoft/Developer-products/news/devpakpromo96.html The offer's good until the end of June. If you want to run GNNserver on an Intel machine but not using NT, Intel Solaris is your best bet and this is really a great deal. Now I'm sure a lot of you are saying "ya, but Linux and FreeBSD are free and GNNserver runs on them". Well, truth be told, it's not clear GNNserver will continue to be available on Linux and FreeBSD. The reason is that GNNserver requires support for threads on all platforms and there is no thread support in Linux or FreeBSD. On these ports we have to use a user-space public domain threads package which is, well, riddled with bugs. On the other hand, Intel Solaris comes with a proven, kernel based threads interface and takes almost no effort on our part to build as it's source code compatible with Sparc Solaris, one of our primary development platforms. I'm not saying at this time that support for Linux and FreeBSD are being dropped - that will depend on how well the 2.1 code ports and the level of demand - but what I can say is that as long as there's a Sparc Solaris port there will be an Intel Solaris port. So, if you have ever considered moving to Intel Solaris, now may be a good time. Cheers, -Jim _________________________________________________ Jim Davidson | jimbo@sb.aol.com GNNserver Project Manager | America Online Inc. | 511 Bath Street | Voice: (800) 529-9166 Santa Barbara, CA 93101 | Fax: (805) 899-4316 ========================================================================= Date: Mon, 10 Jun 1996 18:34:23 EST Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Mark_Wang_at_NJTRITEC@pcmailgw.ml.com Subject: Re: Web Browser Redirect I would skip the content redirection part. I have done a lot of Tcl development with Illustra database. You can definitely to multiple queries in one proc, as long as you have enough database handlers. For example, you want to list students registered with all the courses that are hold on Tuesday. You can query all the courses hold on Tuesday, the return set will be a list of the courses. Then when you fetch each course record, use the course code to query the list of students. (you can actually go on and on) Mark Wang mark_wang@ml.com ______________________________ Reply Separator _________________________________ Subject: Web Browser Redirect Author: Web Development with GNNserver and GNN Hosting Service at UNIXGTWY Date: 6/10/96 11:52 AM Hello, Has anyone out there developed a script that can do a redirect on an html, based on the agent browser? Or has anyone has implemented such a thing in their web site? Someone informed me that there are examples of this on the GNN Server support site, but I am unable to find it. And also, has anyone out there developed a TCL script that can do a multiple query search on the Awesome GNN server database? Thanks & Have a nice weekend, Chris Umali Assistant WebMaster ENVISION GROUP / NetWerks http://www.netwerks.com chris@netwerks.com ========================================================================= Date: Tue, 11 Jun 1996 19:47:15 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ray Davis Subject: / -> /index.html redirect behavior Is there a way to get the server to simply serve the */index.html file when a request for */ comes in, rather than having it redirect to */index.html as it does now? The intent is so that the client side still sees http://www.foo.bar/ in his browser, instead of http://www.foo.bar/index.html. Thanks, Ray ========================================================================= Date: Tue, 11 Jun 1996 13:46:53 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: wells@alexandria.sdc.ucsb.edu Subject: Recognizing the browser some one is using Comments: To: Chris Umali Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Has anyone out there developed a script that can do a redirect on an >html, based on the agent browser? Or has anyone has implemented such a >thing in their web site? Someone informed me that there are examples of >this on the GNN Server support site, but I am unable to find it. I had a similar need. I wanted to detect if some one was not using Netscape (after all, MS Explorer does not run on UNIX). Most browsers include the name or identification of the browser in the header as "User-Agent". In particular, all versions of Netscape I have used identify themselves as "Mozilla" then some version numbers and stuff. So obtain headers, then extract the "User-Agent" portion of the header. Then check to see if its the browser(agent) you want. Here is some simple code to do what you asked for, redirect. (AOL Santa Barbara, I guess add this to the Developer's Corner on the home page). ns_register_proc GET /RedirectTest RedirectIfNotNetscape ns_register_proc GET /PageForNotNetscapeBrowsers PageForNotNetscapeBrowsers proc RedirectIfNotNetscape {conn ignore} { set header [ns_conn headers $conn] set agent [ns_set get $header User-Agent] if {[string match Mozilla* $agent] == 0} { ns_returnredirect $conn "/PageForNotNetscapeBrowsers" } } proc PageForNotNetscapeBrowsers {conn ignore} { ns_return $conn 200 text/html "

Download Netscape!!!

" } Cheers, Alex Wells Alexandria Digital Library ========================================================================= Date: Tue, 11 Jun 1996 10:59:48 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Gavin McGovern Subject: trying to bring up GNNServer on Indy Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi everyone, I've got the latest version of the Server, the patched one. I'm also running the latest version of tcl, 7.5. I'm not a big tcl user, so I'm unsure why I can't the Server up and running. Here's the log of what's going on. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: GNNserver version 2.031 initializing. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: Increasing maximum # of open files from 200 to 2500. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting servers. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting server: nssetup [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Setup: Building config data cache: /disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Tcl script failed: [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: 673 bytes of raw data to follow: couldn't open "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac": Permission denied while executing "open $cache w" invoked from within "set f [open $cache w]..." invoked from within "if [file exists $cache] { ns_log Notice "Setup: Reading config data cache: $cache" source $cache } else { ns_log Notice "Setup: Buildin ..." (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.tcl" line 15) invoked from within "source [ns_info tcllib]/data.tcl" (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//setup.tcl" line 7) invoked from within "source [ns_info tcllib]/setup.tcl" [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Could not initialize Tcl. [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Ns_StartServer(nssetup): Could not start server thread. [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: Waiting for servers to start. [11/Jun/1996:10:54:50 -0700][18733.18735] Fatal: Error starting virtual servers. Killed Thanks for reading it all... I've tried running it as root, not root, changed the permissions all around, etc. etc. Am I missing something real obvious? Gavin ========================================================================= Date: Tue, 11 Jun 1996 09:40:27 +0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: WEB daemon Subject: Re: Web Browser Redirect In-Reply-To: <2.2.32.19960607063221.0068f030@netwerks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > Hello, Hello. > Has anyone out there developed a script that can do a redirect on an > html, based on the agent browser? Or has anyone has implemented such a Try to use Python (http://www.python.org). He has cgi-lib and urllib who (as I think) solve you problem. > Thanks & Have a nice weekend, Regards Vladimir ========================================================================= Date: Tue, 11 Jun 1996 11:11:52 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kristian Jorg Subject: Re: Segmentation fault > Hello Gnnserver user, I have a pb that maybe one of you had already face.I > have install gnnserver on my SUN OS 4.1.4 UNIX Work-sation without pb and now > I'm trying to install the database facility and when I follow the steps > leading me to install the template I got this message when running nsql: > > %nsql -U miadmin template1 > Segmentation fault > % > > Does anyone of you has already face this pb ? > I've send a mail to gnnserver-bugs@tools.gnn.com but they hav'nt find a > solution yet. > Any help to let me install this database feature will be greatly apricaited. > Lionel Hi Lionel, I just reinstalled GNNserver on another machine and got the same problem! When I reverted to the old nsql from Gnnserver 2.03 it worked fine again. I don't remember if the GNN guys keep the old version around on their web, but if they do get it and extract nsql alone. /KJ ========================================================================= Date: Tue, 11 Jun 1996 15:24:29 -0600 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ron Patterson Organization: MCI Communications Subject: Re: GNNDEVELOPER-L Digest - 6 Jun 1996 to 7 Jun 1996 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Automatic digest processor wrote: > ------------------------------ > > Date: Fri, 7 Jun 1996 17:14:01 -0400 > From: "Ron Patterson (by way of Jeff Rawlings )" > Subject: GNNserver question? > > Hello all, > > I've been using the GNNserver for almost a month now and I am > pretty impressed. It performs quite adaquately especially using > TCL scripts to access the Illustra database. Also the management > of the server is very nice especially when maintaining users and > access permissions. > > One question that I have: I have created a directory under the > main TCL script directory to put our own scripts into called > Meta. This all works fine until the GNNserver gets killed and > restarted for any reason then it seems that the scripts in this > subdirectory are not reloading into the server. I have to > reinitialize that script directory manually. Is there anyway to > make this happen automatically as it does with the main TCL > directory and its other subdirectories? > > Thanks for any help, > Ron > End of GNNDEVELOPER-L Digest - 6 Jun 1996 to 7 Jun 1996 > *******************************************************Hello all, It looks like we took care of this problem. We added a line: ns_inittcl Meta after the line: ns_inittcl in the main init.tcl file. Thanks for your support, Ron -- =============================================================== Ron Patterson | MCI Communications (warehouseMCI) Ron.Patterson@mci.com | 5775 Mark Dabling Blvd. 601-2386@mcimail.com | Dept. 1927/786 719-535-5727 | Colorado Springs, CO 80919 Fax: 719-535-6164 | ========================================================================= Date: Tue, 11 Jun 1996 14:32:00 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: LANDON_DICK@Tandem.COM Subject: Using ODBC drivers other than nsodbc.dll I'm running NaviServer 2.0 on NT> I have two related questions. First, using nsodbc.dll and making a connection to a Tandem NonStop SQL system the /NS/Admin page shows the database Services but when I query the status message reads "Waiting for reply.." and that all I get! Server log section as follows: Notice: Ns_ModuleLoad(navi_odbc_driver): Loading module: nsodbc.dll Notice: Ns_ModuleSymbol: Loading module file:d:/nsoft20/server/bin/nsodbc.dll The default driver for the connection(made under miadmin) in winnt35\odbc.ini is tdmsrv32.dll. I have already make successful connection using Microsoft Query, MS ODBC Test and the Tandem Admin Tool. Any ideas? 2nd PROBLEM Trying to connect using driver tdmsrv32.dll instead of nsodbc.dll from the NaviServer driver&pool set-up server I get the following in the Server log. Notice: Ns_ModuleLoad(tdm_nostop_odbc): Loading module: d:\winnt35\system32\tdmsrv32.dll Notice: Ns_ModuleSymbol: Loading module file: d:/winnt35/system32/tdmsrv32.dll Error: Ns_ModuleLoad(tdm_nostop_odbc): Load failed or init procedure 'Ns_DbDriverInit' missing in module: d:\winnt35\system32\tdmsrv32.dll. Warning: Ns_DbInit(nsdb): Could not load database driver: tdm_nostop_odbc Can you quess where I messing up. Thanks Dick Landon ========================================================================= Date: Tue, 11 Jun 1996 14:41:04 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Rhett Hudson Subject: Automatic Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there an SQL interface that can be accesses by an automated process? If my server goes down without executing its shutdown scripts (like on loss of power) it won't come back up unless I manually vacuum the database using nsql. Is there a way to automate the vacuuming process so that I can include it in the start up scripts and guarantee that the system will come back up correctly after a power loss? --Rhett ========================================================================= Date: Tue, 11 Jun 1996 13:21:35 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Joe Dougherty Subject: Questions About Some C API Functions Comments: cc: "tburns@pfn.com" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Can someone explain the idea behind the storage and retrieval functions = that GNN/Navisoft make available with the C API? I'd like to know about are the Ns_ServerSpecific* and Ns_UrlSpecific* = functions in particular. What would they be used for? Any examples of = using them? =20 Thanks in advance, Joe Dougherty joed@pfn.com ========================================================================= Date: Tue, 11 Jun 1996 21:06:15 +0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Cass Tyson Subject: DB Consistency tools? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" What tools exist to verify the consistency of an Illustra database? I suspect my database is corrupted because when i issue "select * from listingIndex" from nsql, I get a memory fault and a core dump, after seeing many of the records. Thanks, Pete. ========================================================================= Date: Tue, 11 Jun 1996 21:06:17 +0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Cass Tyson Subject: Commit transaction required? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Running GNNServer 2.0 on Intel NT 3.51, using Illustra, do I need to issue commits or "end transactions" with the out-of-the-box configuration? I had been assuming that the GNNServer interface might handle it for me, but some unexpected hangs have me wondering if I'm experiencing some deadlocks. Thanks, Pete. ========================================================================= Date: Wed, 12 Jun 1996 08:31:15 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Michael Kmiec Subject: Re: Recognizing the browser some one is using Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:46 PM 6/11/96 -0700, Alex Wells wrote: >I had a similar need. I wanted to detect if some one was not using Netscape >(after all, MS Explorer does not run on UNIX). Most browsers include the name >or identification of the browser in the header as "User-Agent". In >particular, all versions of Netscape I have used identify themselves as >"Mozilla" then some version numbers and stuff. So obtain headers, then >extract the "User-Agent" portion of the header. Then check to see if its the >browser(agent) you want. Here is some simple code to do what you asked for, >redirect. (AOL Santa Barbara, I guess add this to the Developer's Corner on >the home page). The problem with any sort of User-Agent recognition -- especially when dealing with MSIE is well stated at: mike > > >ns_register_proc GET /RedirectTest RedirectIfNotNetscape >ns_register_proc GET /PageForNotNetscapeBrowsers PageForNotNetscapeBrowsers > >proc RedirectIfNotNetscape {conn ignore} { > set header [ns_conn headers $conn] > set agent [ns_set get $header User-Agent] > if {[string match Mozilla* $agent] == 0} { > ns_returnredirect $conn "/PageForNotNetscapeBrowsers" > } >} > > >proc PageForNotNetscapeBrowsers {conn ignore} { > ns_return $conn 200 text/html "

Download Netscape!!!

>" >} > > > > > >Cheers, > Alex Wells > Alexandria Digital Library > > ------------------------------------------------------ Michael Kmiec PFN Incorporated 26 Landsdowne Street Cambridge, MA 02139 mike@pfn.com 617.494.9980 ========================================================================= Date: Wed, 12 Jun 1996 02:53:44 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "George Fike Jr." Subject: Re: Searching text of indexed pages Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hal, Today my first issue of this mailing list showed up in my e-mail box, and low-and-behold put there on the list is the very problem that's been causing me to pull my hair out over for the last week. Nice to see I was on the right track as I am trying to use the fulltextsearch and pagebuilder processes to come up with the answer. My version is called OBISearch.tcl and in a nutshell, it's purpose: "This is a tcl script written to search part or all of the body of your web site based on information input from a form. Each combination of form, headerfile, and settings will yield a unique result in a choosen format. Input your settings with the type=hidden in a lot of cases to take it out of the hands of the user. This was largley hacked from fulltextsearch (should be in your tcl folder) and pagebuilder(available from GNNs Tool Page.)" The set I am using trying to get this to work are available at; www.outer-banks.nc.us the form is /search2.htm the headerfile is /header.htm and it's value is set in the form 'search2.htm' the tcl file, in a text format is available at /OBISearch.txt It seems straight forward enough to the layman (the first time I layed eyes on Tcl was eight days ago), but I just can't get the server to accept it. I get a Error Message that reads something to the tune of 'extra characters after close bracket', which also seems straight forward enough, but I just can't seem to debug it. An internal search engine that is available to the user would seem to be one of the most important and basic scripts to a site of any size, but alas none is included. Which brings me here to see if any others would like to add this feature to their site and to see if as a group we can figure out what I have done wrong without dishing up $150/hr for Tcl support. It would be nice to get something put together to submit to doug@navisoft.com to add to the "share your codes' section of the developers corner. Thank you in advance to all who take the time to read this, Jordie Fike sjordie@interpath.com employed by www.outer-banks.nc.us >Date: Mon, 10 Jun 1996 21:38:50 -0700 >From: Jim Davidson >Subject: Re: Searching text of indexed pages > >At 03:02 PM 6/6/96 -0100, Hal Heisler wrote: >>When /NS/GetSearchForm/table_name is called up a search form is generated >for table_name. If the table contains a column named ns_url the search form >will give the option to search the full text of ns_url. >> >>I would like to do the same kind of search only from a tcl script. >> >>I have tried all types of SQL queries without any success. >> >>Does anyone know how to mimic the actions of the full text search of ns_url >found in /NS/GetSearchForm/table name in a tcl script? > > >Hello, > >The full text index is store in table with the "doc" Illustra Text Datablade >type. The GNNserver documentation set includes a manual for the Text >datablade which describes functions for querying the index. In GNNserver >1.0, the needed query was buried deep in C code. In 2.0, the functionality >was moved to Tcl scripts in the modules/tcl/nstext and modules/tcl/nsdb >directories. If you're using 2.0, you should be able to use the >"fulltextsearch" procedure defined in the modules/tcl/nstext/fulltext.tcl >file to send the right query to the database > >Cheers, -Jim > > >_________________________________________________ > Jim Davidson | jimbo@sb.aol.com > America Online Inc. | Voice: (805) 882-2350 > 511 Bath Street | Fax: (805) 899-4316 > Santa Barbara, CA 93101 | > >------------------------------ ========================================================================= Date: Wed, 12 Jun 1996 07:54:52 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Weird connection problem with Illusrta In-Reply-To: <199606111435.AA7481@POST.TANDEM.COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII This morning I was unable to connect to my Illusrta server until I restarted the system that Illustra runs off of, and I was wondering if anyone might have any guesses as to why. Here is what happend: I have 4 web servers running on a SGI box and my Illustra server on its own SGI box. Everything has been fine until this morning. I brought down the server process that had three of the servers on it so I could drop one of their databases and recreate it. When I tried running "~nsadmin/bin/nsql -U miadmin -s big-server template1" it froze right before you would normally see the connected message. I also tried connecting from my workstation and directly from the db machine with the same affect. But the server that was still connected was running fine and I could do anything I wanted through it to its database. There were no error messages in the Illustra log files that would indicate a problem, but after a reboot it is all happy again. Anyone have any ideas? Thanks, Dave David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net ========================================================================= Date: Wed, 12 Jun 1996 09:59:34 +-100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: T Shankaradhas Subject: Re: trying to bring up GNNServer on Indy Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BB5845.DC6DED40" ------ =_NextPart_000_01BB5845.DC6DED40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Have you checked your unix permissions! ---------- From: Gavin McGovern[SMTP:gavin@lushcode.com] Sent: 11 June 1996 18:59 To: Multiple recipients of list GNNDEVELOPER-L Subject: trying to bring up GNNServer on Indy Hi everyone, I've got the latest version of the Server, the patched one. I'm also running the latest version of tcl, 7.5. I'm not a big tcl user, so I'm unsure why I can't the Server up and running. Here's the log of what's going on. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: GNNserver version 2.031 initializing. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: Increasing maximum # of open files from 200 to 2500. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting servers. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting server: nssetup [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Setup: Building config data cache: /disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Tcl script failed: [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: 673 bytes of raw data to follow: couldn't open "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac": Permission denied while executing "open $cache w" invoked from within "set f [open $cache w]..." invoked from within "if [file exists $cache] { ns_log Notice "Setup: Reading config data cache: $cache" source $cache } else { ns_log Notice "Setup: Buildin ..." (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.tcl" line 15) invoked from within "source [ns_info tcllib]/data.tcl" (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//setup.tcl" line 7) invoked from within "source [ns_info tcllib]/setup.tcl" [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Could not initialize Tcl. [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Ns_StartServer(nssetup): Could not start server thread. [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: Waiting for servers to start. [11/Jun/1996:10:54:50 -0700][18733.18735] Fatal: Error starting virtual servers. Killed Thanks for reading it all... I've tried running it as root, not root, changed the permissions all around, etc. etc. Am I missing something real obvious? Gavin ------ =_NextPart_000_01BB5845.DC6DED40 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IiMIAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBJAG AJABAAABAAAADAAAAAMAADADAAAACwAPDgAAAAACAf8PAQAAAHgAAAAAAAAAgSsfpL6jEBmdbgDd AQ9UAgAAAABXZWIgRGV2ZWxvcG1lbnQgd2l0aCBHTk5zZXJ2ZXIgYW5kIEdOTiBIb3N0aW5nIFNl cnZpY2UAU01UUABHTk5ERVZFTE9QRVItTEBTRVJWSUNFUy5XRUIuQU9MLkNPTQAeAAIwAQAAAAUA AABTTVRQAAAAAB4AAzABAAAAJAAAAEdOTkRFVkVMT1BFUi1MQFNFUlZJQ0VTLldFQi5BT0wuQ09N AAMAFQwBAAAAAwD+DwYAAAAeAAEwAQAAADkAAAAnV2ViIERldmVsb3BtZW50IHdpdGggR05Oc2Vy dmVyIGFuZCBHTk4gSG9zdGluZyBTZXJ2aWNlJwAAAAACAQswAQAAACkAAABTTVRQOkdOTkRFVkVM T1BFUi1MQFNFUlZJQ0VTLldFQi5BT0wuQ09NAAAAAAMAADkAAAAACwBAOgEAAAACAfYPAQAAAAQA AAAAAAADqVQBCIAHABgAAABJUE0uTWljcm9zb2Z0IE1haWwuTm90ZQAxCAEEgAEAKQAAAFJFOiB0 cnlpbmcgdG8gYnJpbmcgdXAgR05OU2VydmVyIG9uIEluZHkA8w0BBYADAA4AAADMBwYADAAJADsA IgADAE4BASCAAwAOAAAAzAcGAAwACQA6ADQAAwBfAQEJgAEAIQAAADY0NTlERkUyMzZDNENGMTE4 OEExMDA4MEM3MkFFMjEwABMHAQOQBgA8BwAAEgAAAAsAIwAAAAAAAwAmAAAAAAALACkAAAAAAAMA NgAAAAAAQAA5ACDArXk9WLsBHgBwAAEAAAApAAAAUkU6IHRyeWluZyB0byBicmluZyB1cCBHTk5T ZXJ2ZXIgb24gSW5keQAAAAACAXEAAQAAABYAAAABu1g9ea3i31llxDYRz4ihAIDHKuIQAAAeAB4M AQAAAAUAAABTTVRQAAAAAB4AHwwBAAAAGwAAAFRoYXJtYW5hbnRoYXIuU2hhbmthcmFkaGFzAAAD AAYQhSGKjQMABxB1BwAAHgAIEAEAAABlAAAASEFWRVlPVUNIRUNLRURZT1VSVU5JWFBFUk1JU1NJ T05TLS0tLS0tLS0tLUZST006R0FWSU5NQ0dPVkVSTlNNVFA6R0FWSU5ATFVTSENPREVDT01TRU5U OjExSlVORTE5OTYxOAAAAAACAQkQAQAAAKUFAAChBQAA/QwAAExaRnWLze/x/wAKAQ8CFQKoBesC gwBQAvIJAgBjaArAc2V0MjcGAAbDAoMyA8UCAHByQnER4nN0ZW0CgzN3AuQHEwKAfQqACM8J2Tvx Fg8yNTUCgAqBDbELYORuZwHQNTcK+xRRC/ICYwBAIEhhdmUg2nkIYCARcAWQawmAGzJFBcB1AwB4 IHAEkG1lBAFpAiBzIQqFCotsEGkxODAC0WktMTw0NA3wDNAfQwtZMTbXCqADYBPQYwVALSFnCofX IBsMMCDmRgNhOiJuIOY5DIIgRxsAC4AF0GNHBm8bEASgW1NNVFCUOmcmMkAKQHNoBaDlDbAuBaBt XSIPIx0GYNcCMCRPJVsxGtBKHFAbIBAxOTk2LKA4OjVmOSifIx1UbyrfJVtNaHVsdAUgbBsgFhBj jwUgCJACMAQgb2YgHqADE8AmEE5OREVWRYBMT1BFUi1MLd9xKa51YmohIS//JVt0FHJ5C4BnOLBv IGLzBRA5AXVwM4IGYSbBMwBhA6BJbmR5HW8eczMONh/nGkUg5khpIGWXJsEbQC0ALDsMSScbEd5n IQA4sBuQMzBhE9AzYd8mwR0CMwJAMjokLEAjCrAudBuBG+A+gS4/kW0g6QdAc28KhXIcUAMAOQIT QE9BU2NsQjA3LjXVQ0RuQAFhOVBpORFGQH8cQBGwQiFDwENSCoUcUHPjCHAbIHdoeTqwG3AAcP4n QBQ6JTnBAHAb4ERVQ0CySASQZScEIETTbzkQ/zMRSZBFIExACoU/8DjyAiCqLjsMWyywLyzhLy0y iDoxMC2gNDo0LWAoLTA3HuBdT2A4N2gzMy5RM10HsCEAaXxjZTbgM5FIATpSQOYysC4wMzEKhQuA aTIA+QdAaXpLsk7/UA9RH1IkczrABQBlYQCQOQEAwHi1B3B1Q4AjMwEKhW8coP8DoB8QMjAEIANS U5Ae4DkiXxhAHuBVL1Y/V0s1UehT/wGQACBU/10/Xk9fXzkQUrT+c2B/YY9in2OvOjM24EcA/wQQ EcA5wGUvZj9nT1+VagJpaaFCdQMQZDjyBaBu9R8QZwqFZEUgR1BJ8BuBCjoKhS9ukHNrMi+5J9By LxygWqAyMC8nY94vC4ATwAdAMjBkceBEcF1StC8EYTHgB5AvadUv/3DQb8EoQADQak9rV1wgbA/Z Z/JFcgNgaZFUR8EE9X5mC3BysXBWdZ92r2zeNptXkDlQeUUxMwJyYQfgn2+zOTAKhQIQcqBvd3BW uwWgMeBkShJaogqFInDfp3Hvcv90D2MicFZQHLf3b6AJ8AiQZAqFh8JJkFsBdT4geAWQdWAygPZa oySbcANJgCKHaQuAdm8bwv9bUwPwRNALgID2EbFa4Hog+YmLXS6OEIpfi2+BIwaQf3ogWvKIYTNR BCCJ1FHgXPZ7h2kAgF9MslIEgVBt1v5SWQBumW+qabCJ1I5KQ8DvCHCTsYnUCoZ9PiBDsBsg15I/ k09uNyCOHSha8oD//4IPgx+EL3SURjGORh6gLQK8NSmOX49vjIOXZFuZ4c8LgAIQRiIeoGJdoV+c j7+dn56vn7+EqGnzoa83ot//o++k/6YKrK96P3tPd70IUf9ugEcDVGcbIHihZR+zr7S/W3hEUqBf X/M6JChp1Sl/cFa2KKpxACBklUTBWPFk77evuL9731IVVwtwZFMCEH8FwGSlOSK9w77/wA/BHkb9 b8FsNuB4M720OPImQAAg9nUHQGSeSwMQqrE7DAqF8lQRgG5rWzEFsb6yOPL/VIBDkbeQjhA+zxsg OMCHMf9ER80iBCADYCEAQjBHEtAk/xFxGRAb0UJTHLjNQgqFCsDvCGA60EIwEcBjQ0DTwjsM/kFD gEnQHNNkcgNwEcCMEWc5EFjxAyBvYiZACGBz/j87DCYjyq87rzy/ISIKhQUVMQDcwAAAAAMAEBAA AAAAAwAREAAAAABAAAcwAIAXYT1YuwFAAAgwAIAXYT1YuwEeAD0AAQAAAAUAAABSRTogAAAAAJhY ------ =_NextPart_000_01BB5845.DC6DED40-- ========================================================================= Date: Tue, 11 Jun 1996 18:10:31 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Recognizing the browser some one is using Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:46 PM 6/11/96 -0700, wells@alexandria.sdc.ucsb.edu wrote: >> Has anyone out there developed a script that can do a redirect on an >>html, based on the agent browser? Or has anyone has implemented such a >>thing in their web site? Someone informed me that there are examples of >>this on the GNN Server support site, but I am unable to find it. > >I had a similar need. I wanted to detect if some one was not using Netscape >(after all, MS Explorer does not run on UNIX). Most browsers include the name >or identification of the browser in the header as "User-Agent". In >particular, all versions of Netscape I have used identify themselves as >"Mozilla" then some version numbers and stuff. So obtain headers, then >extract the "User-Agent" portion of the header. Then check to see if its the >browser(agent) you want. Here is some simple code to do what you asked for, >redirect. (AOL Santa Barbara, I guess add this to the Developer's Corner on >the home page). FYI: Many other browsers, including MS Explorer and the just-released AOL 3.0, also send a User-Agent which begins with "Mozilla". You'll get something like: "Mozilla/1.1 (compatible; MSIE 2.0)" So, you might need to check the version number and the compatible string as well. Also, if you're interested in the actual browsers accessing your site, enable the "LogUserAgent" option of the nslog module and your access log will include the User-Agent headers. For details, open: http://www.tools.gnn.com/server/docs/2.01/con-ch4.htm Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 11 Jun 1996 18:22:14 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Automatic Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:41 PM 6/11/96 -0400, Rhett Hudson wrote: >Is there an SQL interface that can be accesses by an automated process? If my >server goes down without executing its shutdown scripts (like on loss of power) >it won't come back up unless I manually vacuum the database using nsql. Is there >a way to automate the vacuuming process so that I can include it in the start up >scripts and guarantee that the system will come back up correctly after a power >loss? Hello, If you're on Unix you can create a startup script which uses the nsql command line program to vacuum the database before starting nsd. If you're on NT you could try editing the startup Tcl scripts to either exec the nsql.exe program like on Unix or connect directly with ns_db open. Caution: The Tcl scripts are evaluated multiple times at startup - once for each Tcl interpreter. You can typically get around this problem with code like the following: if {[ns_info interp] == 0} { exec [ns_info home]/bin/nsql.exe -U miadmin -c "vacuum all;" mydb } In GNNserver 2.1 this weirdness is gone because the initialization scripts execute just once at startup. Anyway, why won't your server start without vacuuming? Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 11 Jun 1996 18:29:14 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Mark Doner Subject: Re: Segmentation fault We've repackaged GNNserver 2.04 for SunOS 4.1.4 with the older version of nsql, and have also made this version of nsql available for download at: http://www.tools.gnn.com/download/server/nsql.sun4.Z and ftp://ftp.tools.gnn.com/gnnserver/nsql.sun4.Z just replace the 2.04 nsql with this one. mark@sb.aol.com ========================================================================= Date: Tue, 11 Jun 1996 18:04:49 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: / -> /index.html redirect behavior Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:47 PM 6/11/96 +0200, Ray Davis wrote: >Is there a way to get the server to simply serve the */index.html >file when a request for */ comes in, rather than having it redirect >to */index.html as it does now? The intent is so that the client >side still sees http://www.foo.bar/ in his browser, instead of >http://www.foo.bar/index.html. Hello, Version 2.1 of GNNserver does what you want. When a request for /foo comes in, 2.1 redirects to /foo/ instead of /foo/index.htm. When /foo/ is opened the content of the index file is returned. The reason the redirect from /foo to /foo/ is needed is to ensure the base URL is correct for relative links in the index.htm page. One exception: If the browser opening the page in GNNpress, you still get redirected to /foo/index.htm instead of /foo/. The reason is that the user may want to edit the page and GNNpress needs to know the complete file name to save it back. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 11 Jun 1996 22:03:45 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Questions About Some C API Functions Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:21 PM 6/11/96 -0400, Joe Dougherty wrote: >Can someone explain the idea behind the storage and retrieval functions that GNN/Navisoft make available with the C API? >I'd like to know about are the Ns_ServerSpecific* and Ns_UrlSpecific* functions in particular. What would they be used for? Any examples of using them? Hello, First let me explain the Ns_ServerSpecific* functions. These functions maintain what's called "server specific data". Server specific data is analagous to thread specific data, i.e., a place to store context unique to each server as you would store context unique to each thread. Typically you would use server specific data instead of global variables. For example, the cgi module initializes a bunch of state at startup (lists of script directories, interpreters, environment variables, etc). All this context is specfic to a virtual server so it wouldn't be appropriate to store it in a global variable. Instead, the cgi module stashes the context away in server specific data. Here's how: At startup, it uses code similar to: static int idCtx = -1; Ns_ModuleInit(char *hServer, char *module) { CgiCtx *ctx; if (idCtx == -1) { idCtx = Ns_ServerSpecificAlloc(); } ctx = ns_malloc(); Ns_ServerSpecificSet(idCtx, hServer, ctx, 0, ns_free); ... Note that the first time the module is loaded idCtx will be -1 (an invalid id) and the module catches this and allocates a new id. Remember that module initialization is guarenteed single threaded the first time so this is safe to do. This new id will forever be for the cgi context. Essentially it sets aside a location to store cgi context unique to each virtual server, whether all the servers currently exist or they load the cgi module. Later, to access the context while handling a request, the module uses code similar to: SomeCgiFnc(char *hServer, ...) { CgiCtx *ctx; if (Ns_ServerSpecificGet(idCtx, hServer, &ctx) != NS_OK || ctx == NULL) { ... return error - cgi not properly initialized ... } ... access ctx ... Think of server specific data as a way to make your code "multi-server safe" just like thread specific data can make code "thread safe". Of course, just like thread specific data, server specific data is not always necessary because you can often write your code to avoid it. For example, when you register a request function with Ns_RegisterRequest() you can pass it context which will be passed back as the first argument of your request function. This is often a more convienent way to deal with context. Now, UrlSpecificData is a bit more interesting. The idea here is that once again you set aside an id which identifies some context but in this case the context is bound not to a particular server, but to a server AND a particular hierarchy of URLs. For example, the server uses URL specific data to store the functions to run for each URL. When you use the ns_register_proc Tcl command or Ns_RegisterRequest() C function to bind a script or function to an URL, the server does little more than call UrlSpecificSet with the server, URL and an id allocated at startup for request functions. When a request arrives, the server then calls UrlSpecificGet with the server, id and URL to find the best matching fucntion to call. By "best matching" I mean the most specific URL. For example, suppose you had the following useless code: int id; void ctxA, ctxB, a, b; id = Ns_UrlSpecificAlloc(); Ns_UrlSpecificSet(hServer, "GET", "/", ctxA, id, 0, NULL, NULL); Ns_UrlSpecificSet(hServer, "GET", "/b", ctxB, id, 0, NULL, NULL); Ns_UrlSpecificGet(hServer, "GET", "/a/b/c", &a) Ns_UrlSpecificGet(hServer, "GET", "/b/c/d", &b) In this case, b = ctxB because the URL /b/c/d starts with /b which is more specific than just / and a = ctxA because /a/b/c starts with / and there is nothing more specific (such as /a, /a/b, or /a/b/c). To see another example of URL specific data, open the alias.c file in the examples/c/alias/ directory. This module provides an url-to-file translation routine which is more powerful than the simple single-directory function built into the server (BTW: This function will replace the simple single-directory function in the next beta release). The way alias works is that it allocates an id for mappings the first time it's loaded using Ns_UrlSpecificAlloc() (actually there's a typo and it really calls Ns_ServerSpecificAlloc() instead but it's the same function; server specific data is simply a wrapper around URL specific data). Then for each mapping it stores the URL prefix and directory in URL specific data using the allocated id. When the server calls the AliasedUrlToFile function to translate a path it uses UrlSpecificGet to find the directory which best matches the URL to be translated for that virtual server. As in the example above, note that multiple URL prefixes may match but that only the best match is returned. For example, if you have the maps: /=/default/dir /images=/image/dir and you open /images/foo.gif, both the /images and / prefixes match but the /images match is more specific so it's returned. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Wed, 12 Jun 1996 11:41:06 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Scott R. Madans" Organization: Instant Homepage Subject: Re: User Passwords MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Doug McKee wrote: snipit... > Jim> At this point, they get a browser > Jim> dialog box: > > Jim> Username and Password Required: > > Jim> Enter Username for Server1 at SG: > > Jim> Here, they enter their user name and *old* password. We get > Jim> an "authorization failed" message. I've looked through the > Jim> online docs, downloaded the docs an read them, and I still > Jim> don't have a clue. > > Jim> nsadmin *is* able to change passwords. > Jim> Stupid user error? Stupid Setup error? > > Neither, the default permission for changing passwords is wrong. > Sorry about that. Change the permission for > > POST /NS/Perm/ChangePassword > > to No Restriction on Users and No Restriction on Groups and you'll get > the expected behavior -- users can change their own (but nobody > else's) passwords. > > Thanks for letting us know the problem! > > doug---------------------- Hello, My server, if it were a garage, would look like I just moved in - no room for the cars and boxes thrown everywhere. Some with lables, some without. I am having the same problem as above, but I can't do anything with POST /NS/Perm/ChangePassword It doesn't show up as a permission, so I tried adding it from /NS/Perm/Admin. After clicking "Add a new permission record," the screen comes up with two boxes (METHOD URL). I am putting "POST" in the first box and /NS/Perm/ChangePassword in the second. That doesn't work. I have tried many options for the "URL" but get the same response from the server: Forbidden The requested URL cannot be accessed by this server. I know it must be a basic nubie error as I try to absorb the logic of how this thing works. Thanks in advance, Scott. ========================================================================= Date: Wed, 12 Jun 1996 14:09:01 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Michael Sigal Subject: Looking for a developer Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I am looking for a GNNServer developer that can help put together a fairly sophisticated database backed site on contract. We are already evaluating solutions based on Macromedia's Backstage, Livewire PRO, Microsoft's Database Connector & Next's WebObjects. In addition to any samples, references and qualifications you might forward, please try to provide an explanation of what benefits GNN's solution might offer at what development costs versus the solutions I mentioned above. Thanks, Mike Sigal Infragence Architects for the New Infrastructure http://www.infragence.com San Francisco, CA - 1 (415) 908-0800 London, UK - 44 (0)181 741 3081 ========================================================================= Date: Wed, 12 Jun 1996 19:20:32 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: Database Error Messages Comments: cc: krish@iw.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:37 AM 6/7/96 -0500, you wrote: >I have a bunch of these in my log file - any idea what might be causing them? > >[07/Jun/1996:10:26:18 -0500][1679.0x35] Notice: Ns_Ill(default:nsdb): XTL001:Se >rver file error: write of 575 bytes to file /usr/tmp/baaa000R3.89783 failed >[07/Jun/1996:10:26:18 -0500][1679.0x35] Error: Text(default): Error indexing URL >: /users/pheasants/stand.htm Krish, it looks like you might be out of space on /usr/tmp, and GNNserver/Illustra can't do the automatic indexing of pages saved to the server. Cheers, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Wed, 12 Jun 1996 01:32:35 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Chris Umali Subject: GNN Server Database Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, Has anyone implemented a database search form on their web site, that returns information that has hypertext links, pointing to a particular web site/pages? And also what would be the best way to put time stamps and date stamps on a web page? Thanks & Have a Sunny Day, Chris Umali Assistant WebMaster ENVISION GROUP / NetWerks http://www.netwerks.com chris@netwerks.com ========================================================================= Date: Wed, 12 Jun 1996 17:28:33 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Commit transaction required? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:06 PM 6/11/96 +0100, Cass Tyson wrote: >Running GNNServer 2.0 on Intel NT 3.51, using Illustra, do I need to issue >commits or "end transactions" with the out-of-the-box configuration? I had >been assuming that the GNNServer interface might handle it for me, but some >unexpected hangs have me wondering if I'm experiencing some deadlocks. Typically you do not need to commit transactions as Illustra is in auto-commit mode by default. Of course if you do several insert and/or delete statements in a script it's best to do them inside a transaction using code like: ns_db dml $db "begin transaction" ... multiple SQL statements ... ns_db dml $db "end transaction" This will often dramatically increase performance as the changes to the tables don't need to be written to disk until the end transaction and it let's you abort the transaction at any time with: ns_db dml $db "abort transaction" leaving the tables in their original state. In fact, if your script fails for some reason between the begin and end transaction, the Tcl interface will automatically release the database handle which will abort any active transaction. Note: This auto-abort feature is only available with the nsill Illustra driver which keeps track of the transaction state under the covers. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Fri, 14 Jun 1996 07:40:00 PDT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Lustig, Rob ITT/FSC" Subject: Naviserver locks up on NT 3.51 Has anyone experienced the following: Ever since we have upgraded to NT 3.51 from 3.5, the NaviServer version 1 [1] started locking up at random times(no errors, just no data sent to the clients) on our production server. NaviServer version 2 [2] also has the same problem. No errors in the logs, no response on the port, can go for days or just an hour before locking users out... The scenario I haven't worked on is upgrading the Illustra database to solve this problem. Background: Hardware profile: Digital S90 (Pentium/90), 64MB RAM, 2GB HD space, NT 3.51, same domain, average load is 40 users online. Production Server has been running 1 while we tested 2 and how 2 links to our SQL Server. The servers are configured exactly the same (except the production server has been running 1 before we upgraded it to 2 and the other had 2 installed from the beginning). We know that 1 has a problem of not letting us shut it down and restarting, But we haven't had a lockup problem since we made the log size unlimited (and we manually rename the logs to prevent them from getting too big) about 6 months ago. 2 lets us shutdown and restart it fine and we don't like to reboot our production server. Therefore, we upgraded to 2 on our production server ahead of schedule. Now, when it locks up, we restart the Naviserver and Illustra and it works again. But, it is very annoying to have our production site go down! ========================================================================= Date: Thu, 13 Jun 1996 14:43:57 +-100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: T Shankaradhas Subject: Re: trying to bring up GNNServer on Indy Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BB5936.C15FAEC0" ------ =_NextPart_000_01BB5936.C15FAEC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit One other thing I notices is that you have two // in your path name for the data cache!! hope it helps. ---------- From: T Shankaradhas[SMTP:Tharmananthar.Shankaradhas] Sent: 12 June 1996 09:59 To: 'Web Development with GNNserver and GNN Hosting Service' Subject: RE: trying to bring up GNNServer on Indy Have you checked your unix permissions! ---------- From: Gavin McGovern[SMTP:gavin@lushcode.com] Sent: 11 June 1996 18:59 To: Multiple recipients of list GNNDEVELOPER-L Subject: trying to bring up GNNServer on Indy Hi everyone, I've got the latest version of the Server, the patched one. I'm also running the latest version of tcl, 7.5. I'm not a big tcl user, so I'm unsure why I can't the Server up and running. Here's the log of what's going on. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: GNNserver version 2.031 initializing. [11/Jun/1996:10:54:46 -0700][18733.18733] Notice: Increasing maximum # of open files from 200 to 2500. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting servers. [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Starting server: nssetup [11/Jun/1996:10:54:46 -0700][18733.18735] Notice: Setup: Building config data cache: /disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Tcl script failed: [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: 673 bytes of raw data to follow: couldn't open "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.cac": Permission denied while executing "open $cache w" invoked from within "set f [open $cache w]..." invoked from within "if [file exists $cache] { ns_log Notice "Setup: Reading config data cache: $cache" source $cache } else { ns_log Notice "Setup: Buildin ..." (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//data.tcl" line 15) invoked from within "source [ns_info tcllib]/data.tcl" (file "/disk2/usr/people/gavin/installed/gnnserver/modules/nssetup//setup.tcl" line 7) invoked from within "source [ns_info tcllib]/setup.tcl" [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Could not initialize Tcl. [11/Jun/1996:10:54:50 -0700][18733.18735] Error: Ns_StartServer(nssetup): Could not start server thread. [11/Jun/1996:10:54:50 -0700][18733.18735] Notice: Waiting for servers to start. [11/Jun/1996:10:54:50 -0700][18733.18735] Fatal: Error starting virtual servers. Killed Thanks for reading it all... I've tried running it as root, not root, changed the permissions all around, etc. etc. Am I missing something real obvious? Gavin ------ =_NextPart_000_01BB5936.C15FAEC0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IjsNAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBJAG AJABAAABAAAADAAAAAMAADADAAAACwAPDgAAAAACAf8PAQAAAHgAAAAAAAAAgSsfpL6jEBmdbgDd AQ9UAgAAAABXZWIgRGV2ZWxvcG1lbnQgd2l0aCBHTk5zZXJ2ZXIgYW5kIEdOTiBIb3N0aW5nIFNl cnZpY2UAU01UUABHTk5ERVZFTE9QRVItTEBTRVJWSUNFUy5XRUIuQU9MLkNPTQAeAAIwAQAAAAUA AABTTVRQAAAAAB4AAzABAAAAJAAAAEdOTkRFVkVMT1BFUi1MQFNFUlZJQ0VTLldFQi5BT0wuQ09N AAMAFQwBAAAAAwD+DwYAAAAeAAEwAQAAADkAAAAnV2ViIERldmVsb3BtZW50IHdpdGggR05Oc2Vy dmVyIGFuZCBHTk4gSG9zdGluZyBTZXJ2aWNlJwAAAAACAQswAQAAACkAAABTTVRQOkdOTkRFVkVM T1BFUi1MQFNFUlZJQ0VTLldFQi5BT0wuQ09NAAAAAAMAADkAAAAACwBAOgEAAAACAfYPAQAAAAQA AAAAAAADqVQBCIAHABgAAABJUE0uTWljcm9zb2Z0IE1haWwuTm90ZQAxCAEEgAEAKQAAAFJFOiB0 cnlpbmcgdG8gYnJpbmcgdXAgR05OU2VydmVyIG9uIEluZHkA8w0BBYADAA4AAADMBwYADQAOACsA OQAEAFwBASCAAwAOAAAAzAcGAA0ADgAqADcABABZAQEJgAEAIQAAADEwQjk3MTQ3MjlDNUNGMTE4 OEExMDA4MEM3MkFFMjEwAOwGAQOQBgAMCAAAEgAAAAsAIwAAAAAAAwAmAAAAAAALACkAAQAAAAMA NgAAAAAAQAA5AMAip14uWbsBHgBwAAEAAAApAAAAUkU6IHRyeWluZyB0byBicmluZyB1cCBHTk5T ZXJ2ZXIgb24gSW5keQAAAAACAXEAAQAAABsAAAABu1g9ea3i31llxDYRz4ihAIDHKuIQADwv/NEA HgAeDAEAAAAFAAAAU01UUAAAAAAeAB8MAQAAABsAAABUaGFybWFuYW50aGFyLlNoYW5rYXJhZGhh cwAAAwAGENMxp8YDAAcQbQgAAB4ACBABAAAAZQAAAE9ORU9USEVSVEhJTkdJTk9USUNFU0lTVEhB VFlPVUhBVkVUV08vL0lOWU9VUlBBVEhOQU1FRk9SVEhFREFUQUNBQ0hFSE9QRUlUSEVMUFMtLS0t LS0tLS0tRlJPTTpUU0hBTksAAAAAAgEJEAEAAAByBgAAbgYAAJMPAABMWkZ16c7Tx/8ACgEPAhUC qAXrAoMAUALyCQIAY2gKwHNldDI3BgAGwwKDMgPFAgBwckJxEeJzdGVtAoMzdwLkBxMCgH0KgAjP Cdk78RYPMjU1AoAKgQ2xC2DkbmcB0DU3CvsUUQvyAmMAQCBPbmUgbzR0aASQIBtAC4BnIMhJIG4b MGljB5EEAFUbgWEFQHkIYCARgHaBGxB0d28gLy8cgL8DoB0RBcAKsBtAHABhB4AuIAIQG3IbEGQc 4GEgJmMA0BtQISEdQG9wDRsQaQVAG1BscHMugwqFCotsaTE4MALR4GktMTQ0DfAM0CNDuQtZMTYK oANgE9BjBUC+LSVnCockGwwwJOZGA2HOOiZuJOYMgiBUBgARgCRuawrAYWQRgHNbwFNNVFA6VBGB A4HTAHAcwXIuKkpdJg8nHS8GYAIwKE8pWzER4Ep1ARsBMTk5NiAwOZg6NTktHycdVG8vX5EpWydX ZSoARGUdcG0VoHAHgAIwIAPwHrFHdE5OEbByHXAFwABwZHE3oiBIbxPAG7IGYXaNHEEnMl8uLnVi aiUhEzR/KVtSRTxAdHJ5NRuydB3AYgUQG8F1cL83ojlSG2ECIBvgOGB5IW+5InMzNiPnGkgk10gd YnMdEiAhY2sJgB40MXBpVngegASQbQQBaQIgc/YhQK8iczIksCL/PH8lH285/yc/PE8pW0cdYB4R TahjR284EW4rBGdPIrJACkBzaAWgDbAuBaD+bS0POt8vLzA/GtAxaCLAjzIvUm80TykuTXVsHDD3 C1AbEBYQYwUgCJACMAQgOG9mICKgE8A3okRFAFZFTE9QRVIt/kxWzzrvO/9Zrz5fP29Af88iRgHB Qj1DZ2kgNrFhwEkCIGUsY/xJJx1xZ/8bMB9jC2AT0FxROBFF8lvy+x9yYxQsH2MekSAhOHBncYou aIFtOEBsc28KhT5yMXADAGHyaT9qQ2Ns8WsgNy41bDQcEThAYkD+aWIBbzBioDfhayBssGxCGwqF MXBzCHAbEHdoefMb4SAAbidpBGMVYrE4UnttRWwwSASQObAcom3hb/8b0FwBcoAc4HUwCoVo4Buy qwIgIV1bVaAvMWEvMbKIOjEwVpA0OjQx4CgtMDci4F14UDg36DMzLnojXQewHCNf0IM3uGnWMi4w MzEKhecLgCDQBzFpenSid+94/+96D3sUY7AFAGUq4BuyAMDqeAdwdWxwI1vxCoUgkf8DoEgAWyAE IANSfIAi4GISXxhAIuB+H38vgDs1ethT/wGQACB974Yvhz+ITxvQN+T/IUeJ74r/jA+NHF/QHAAE EP8RwGKwjh+PL5A/iIWS8pKRtEJ1AxBkG7IFoG5IAFZnCoUfuDoKhS+XgHPIazIvUMByLyCgIJD1 WyAvUFMvC4ATwAdAWyDuZJrQbWA35C8EYVrQB5D+L5LFHeAfslEwANCTP5RHZ4UQlP+Q4kVyA2CS gVT7cLEE9WYLcJuhmUaej5+f7ZXONoCAYkB5biFb8iqgPwfgH7NiIAqFAhCbkG93d5lGBaBa0GRz AoOSCoUiT5nPmt+b75z/YyKZRlDvRacfoAnwCJBkCoWwsnKA64PxZxB4BZB1OQKp5oOTNiQgAzdQ IrBZC4B2b/9EsoRDN2ILgKnmEbEfIKMQ+bJ7XS63ALNPtF+qEwaQf6MQg+KxUVxBBCCyxHrQXPZ7 sFkAgF91onr0qkCWxv5SgfCXiZiakqCyxLc6bLDvCHC8obLECoZ9ZxBsoBsQ17svvD+XJyC3DSiD 4qnv/6r/rA+tH52EbyG3NiKgMYK8NSm3T7hftXPAVFvC0c8LgAIQbxIioGJdyk/Ff7/Gj8efyK+t mJLjyp83y8//zN/N78761Z+jL6Q/oK0IUf+XcG/zfVcbEKGRjg/cn92vW6E0N9BfiONjFCiSxSl/ mUbfGNNhACCNhRuBgeFk7+Cf4a+kz3sFVwtwOQMfMr+NlWIS5rPn7+j/6g5GH8F+bF/QoSPmpBuy OYAAIHX7B0CNjksDENOhY/wKhSth/ypwhCEFseeiG7Ig0dOBtwH/Z78dgQiBdEf2AwQgA2AbMP9r IHAC+RQRcRkQRMFrQ0Wof/YyCoUKwAhgOGBrIBHAY/dsMPyyY/xBbHAb8EXDjWKfA3ARwBujgeED IG9iOYD5CGBzP2P8TxPzn2QvQe8XZkkKhRiBAAYgAAADABAQAAAAAAMAERAAAAAAQAAHMEBgoDku WbsBQAAIMEBgoDkuWbsBHgA9AAEAAAAFAAAAUkU6IAAAAAAexg== ------ =_NextPart_000_01BB5936.C15FAEC0-- ========================================================================= Date: Thu, 13 Jun 1996 10:13:33 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Dan Levy Subject: setting up mail for several virtual hosts MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On my dedicated Sparc at GNN Hosting, I am serving a number of virtual domains. I would like to set up separate mail services for these domains, so that I can have separate mail aliases files for each host. My primary domain's mail aliases file is /etc/mail/aliases Where would I put the alias files for domain2.com, domain3.com, etc, and how would I set up sendmail and other stuff to enable this? Dan Levy ========================================================================= Date: Thu, 13 Jun 1996 04:48:45 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Liankui Sun Subject: Database Help Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi, Friends: I have a form to be filled in by my guest visiting my Homepage. I can use a CGI to record the guest's information to a txt file easily. Now I would like to use Illustra database to store the database so I could easily organize the guestbook. My questions are 1. How could I transfer the old txt file into illastra Database. 2. How could I let the guests to fill in the form, then the form data will go to database and the old data file at same time! Thanks! sun ========================================================================= Date: Thu, 13 Jun 1996 04:29:03 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Liankui Sun Subject: Help needed on multihosts on Sun Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi, Friends; I have post a message about configure multihost on Sun Solaris2.5 before. I got no answers. I think my question is 1. How to configure the multihost, I use ifconfig, the command works ping and telnet to the new host is OK! I think this is no problem. 2. My real question is If I want to run the multihosts on the previliged port (eg, 80) on all host, I think I should login as root, start nsd, But I always got failured to start the virtual host with port 80, if I had multihost using port 80 like two hosts a.b.c:80 d.b.c:80 Could you help me. Thanks Sun ========================================================================= Date: Thu, 13 Jun 1996 10:51:22 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Naviserver locks up on NT 3.51 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:40 AM 6/14/96 PDT, Lustig, Rob ITT/FSC wrote: >Has anyone experienced the following: >Ever since we have upgraded to NT 3.51 from 3.5, the NaviServer version 1 >[1] started locking up at random times(no errors, just no data sent to >the clients) on our production server. NaviServer version 2 [2] also has >the same problem. No errors in the logs, no response on the port, can go >for days or just an hour before locking users out... >The scenario I haven't worked on is upgrading the Illustra database to >solve this problem. > >Background: >Hardware profile: Digital S90 (Pentium/90), 64MB RAM, 2GB HD space, NT >3.51, same domain, average load is 40 users online. >Production Server has been running 1 while we tested 2 and how 2 links to >our SQL Server. The servers are configured exactly the same (except the >production server has been running 1 before we upgraded it to 2 and the >other had 2 installed from the beginning). >We know that 1 has a problem of not letting us shut it down and >restarting, But we haven't had a lockup problem since we made the log >size unlimited (and we manually rename the logs to prevent them from >getting too big) about 6 months ago. > >2 lets us shutdown and restart it fine and we don't like to reboot our >production server. Therefore, we upgraded to 2 on our production server >ahead of schedule. >Now, when it locks up, we restart the Naviserver and Illustra and it >works again. But, it is very annoying to have our production site go >down! Hello, There are two known hangs on NT: - The unsupported "Shell Preview" which was an eary Win95 like desktop for NT is known to freeze NaviServer when running CGIs. - We have had several reports, and reproduced here, occasional hangs of Illustra, not NaviServer, on NT Server, not NT Workstation. This problem is Illustra SPR #6651 and is scheduled to be fixed in Illustra release 3.3. When this is the case, you can often reproduce the problem outside of the GNNserver by rapidly starting and stopping the command line nsql program. In addition there where several bug fixes betwen NaviServer 2.0 and GNNserver 2.03. We recommend you upgrade to 2.03 (it's a quick, automatic upgrade) and, if you're running NT Server, try using NT Workstation instead. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Thu, 13 Jun 1996 11:58:36 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: trying to bring up GNNServer on Indy Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:43 PM 6/13/96 +-100, T Shankaradhas wrote: >One other thing I notices is that you have two // in your path name for the data cache!! hope it helps. Hello, The extra slash is normal and shouldn't mess anything up. Anyway, your problem definitely looks like a file permissions problem. Be sure the modules/nssetup directory is owned and writable by the user who runs the nsbootstrap command (this user should *not* be root). Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Fri, 14 Jun 1996 00:16:30 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Tom Kee Subject: Re: Searching text of indexed pages Comments: cc: "George Fike Jr." Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:53 AM 6/12/96 -0400, George Fike Jr. wrote: > It seems straight forward enough to the layman (the first time I layed >eyes on Tcl was eight days ago), but I just can't get the server to accept >it. I get a Error Message that reads something to the tune of 'extra >characters after close bracket', which also seems straight forward enough, >but I just can't seem to debug it. proc obihitlist {conn ignore} { Just add an extra space between } and { in the above line and your on your way. -Tom ========================================================================= Date: Thu, 13 Jun 1996 18:51:26 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jiayong Sun Organization: InfoWave Communications Subject: Re: Help needed on multihosts on Sun Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Liankui Sun wrote: > > Hi, Friends; > > I have post a message about configure multihost on Sun Solaris2.5 before. I > got no answers. I think my question is > > 1. How to configure the multihost, > I use ifconfig, the command works > ping and telnet to the new host is OK! > I think this is no problem. > > 2. My real question is > > If I want to run the multihosts on the previliged port (eg, 80) on all > host, I think I should login as root, start nsd, > But I always got failured to start the virtual host with port 80, if I had > multihost using port 80 > like two hosts > > a.b.c:80 > d.b.c:80 > > Could you help me. > > Thanks > > Sun I have setup several virtual servers on our Sun solaris 2.4 successfully. Are you sure you do have another IP address different from your a.b.c's? If you do, when you configure your new vertual server using /NS/Setup/Module/ nssock.so, you should use this IP as d.b.c's address and use d.b.c as its Hostname. -- ************************** Jiayong Sun InfoWave Communications Email: jsun@iwnet.com Voice:(W)(408)980-5115 Fax: (W)(408)980-9528 ************************** ========================================================================= Date: Fri, 14 Jun 1996 11:29:55 +0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Nuooia Iaaae Subject: Re: Naviserver locks up on NT 3.51 I have same problem with GNNserver version 2.031 on Windows NT Server 3.51. I tried to set Debug in [NS/Parameters] on and find lot of lines like this: [13/Jun/1996:08:49:23 +0500][179.188] Debug: CheckServer(server1): Threads 50 (0 idle) I guess it mean that there is Max threads running and they wait something. Now I try to set TimeOut=1000 in [NS/Parameters/server1]. I not sure, but possible it will help. PS. By the way somebody knows what mean substring [179.188] in log file above? ---------- From: Lustig, Rob ITT/FSC[SMTP:LustigR@fsc-plans.vafb.af.mil] Sent: 14 e?iy 1996 a. 19:40 To: Multiple recipients of list GNNDEVELOPER-L Subject: Naviserver locks up on NT 3.51 Has anyone experienced the following: Ever since we have upgraded to NT 3.51 from 3.5, the NaviServer version 1 [1] started locking up at random times(no errors, just no data sent to the clients) on our production server. NaviServer version 2 [2] also has the same problem. No errors in the logs, no response on the port, can go for days or just an hour before locking users out... The scenario I haven't worked on is upgrading the Illustra database to solve this problem. Background: Hardware profile: Digital S90 (Pentium/90), 64MB RAM, 2GB HD space, NT 3.51, same domain, average load is 40 users online. Production Server has been running 1 while we tested 2 and how 2 links to our SQL Server. The servers are configured exactly the same (except the production server has been running 1 before we upgraded it to 2 and the other had 2 installed from the beginning). We know that 1 has a problem of not letting us shut it down and restarting, But we haven't had a lockup problem since we made the log size unlimited (and we manually rename the logs to prevent them from getting too big) about 6 months ago. 2 lets us shutdown and restart it fine and we don't like to reboot our production server. Therefore, we upgraded to 2 on our production server ahead of schedule. Now, when it locks up, we restart the Naviserver and Illustra and it works again. But, it is very annoying to have our production site go down! ========================================================================= Date: Fri, 14 Jun 1996 15:16:09 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Lionel Menard Subject: GNNsever search Comments: cc: lm@SERVICES.WEB.AOL.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii A simple question that I can't manage to answer; even when I read the documentation this is not clear. Is Gnnpress mendatory to administrate and query the Full text Search feature of Gnnserver/illustra package ?? If not how can I provide a "html Full text search page" to the end users to let them query all my server whatever client they used ?? I've already install Gnnserver, Illustra, textdb.dmp datablade module. Thanks. -- Lionel MENARD | e-mail: lm@augusta.cma.fr Ecole des Mines, Centre d'Energetique BP 207 | http://www-cenerg.cma.fr/~lm/ 06904 Sophia Antipolis FRANCE | tel: (33) 93 95 74 23 ========================================================================= Date: Fri, 14 Jun 1996 11:06:36 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Axel Rebai Subject: GNN and FrontPage Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" hi all, is GNN support Microsoft Frontpage 1.1? or is it going to support it? Axel. ________________________________________________________ Axel Rebai Maison de la Productique de Roanne Esplanade diderot 42300 Roanne France Tel 77 71 20 00 Fax 77 72 52 99 ________________________________________________________ ========================================================================= Date: Fri, 14 Jun 1996 13:30:11 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Stephen A. Mattin" Organization: MediLife Software Subject: returning binary files from TCL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a GNNServer TCL script to intercept requests to a Web hierarchy, perform some additional processing, then possibly serve the request. It seems to work OK using url2file, ns_guesstype, and returnfile, but image files (GIF) appear to be returned with only the first 7 chars (the GIF type code). I seem to recall reading something somewhere about TCL having trouble reading binary data. Is there some magic to returning binary data from TCL code? I tried ns_geturl with the same result. -- Stephen A. Mattin stephen@MediLife.COM ========================================================================= Date: Fri, 14 Jun 1996 15:37:23 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: John Nielsen Subject: making keys MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit What facilities are there w/the GNNsever for making primary and foreign keys? I don't find any option for it. Let's say I wanted SSN a primary key in an employee database and deptno a foreign key to the department database. CREATE TABLE EMPLOYEE ( SSN char(9) NOT NULL, ..other fields... deptno int NOT NULL, PRIMARY KEY (SSN), FOREIGN KEY (deptno) REFERENCES DEPARTMENT(DNUMBER)); john ========================================================================= Date: Fri, 14 Jun 1996 14:23:54 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: GNNsever search Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:16 PM 6/14/96 +0200, Lionel Menard wrote: > A simple question that I can't manage to answer; even when I read the >documentation this is not clear. > >Is Gnnpress mendatory to administrate and query the Full text Search feature >of Gnnserver/illustra package ?? Nope, GNNpress is not required. Just open the /NS/Search URL on your server. -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Sun, 16 Jun 1996 17:36:16 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Krish Menon Subject: usermapdir - *important* Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I've needed to let one or more users FTP their stuff in, and to save me the trouble of permissins management, with regard to their files withitn the GNN-server document root directory, I have used the usermapdir attribute in the nsd.ini file -- However, broswers such as Mosaic or AOL _cannot_ see these directories -- they give a 404 not found error. Also, Webcrawler and Altavista say they cannot find these URLs either - what's the deal, and how can I fix it.. I have a few _very_ irritated customers on hand. Any help will be appreciated. -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ========================================================================= Date: Sun, 16 Jun 1996 05:39:59 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Malte Sussdorff Subject: Postgres.c make error Hi, has anyone made it to compile the Postgres95 Driver for Linux. Im running Linux 2.0.0 with GCC 2.7.2. Postgres is installed, and all include files are found, just, there is in error (error 1) in compiling. So, if someone has it compiled for Linux, tell me how, or even better, attach me the binary. Should work (i guess). Thanx Malte P.S.: When will 2.1 be out for Linux ? ========================================================================= Date: Sat, 15 Jun 1996 11:07:43 +1000 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Malcom Matheson Subject: CGI subdirectories? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Running GNNServer 2.0 on a Digital Alpha AXP150 and Windows/NT 3.51(SP3) I have been looking for a Webserver-based group discussion package like AltaVista Forum. I recently found Netforum at www.biostat.wisc.edu which is written in Perl (I have NT Perl 5.001), and, quoting from the web page on this software, "should work on any UNIX-based system with Perl 4.0.1.8 or later that supports CGI subdirectories. Netforum will not work with httpd servers that do not allow subdirectories within a cgi directory." Even though I'm running Windows/NT not Unix, I decided to give Netforum a try. However, I keep getting "access denied" messages in the server log related to the netforum subdirectory under the cgi-bin directory. Does GNNserver 2.0 support subdirectories within a cgi directory? If so, how do I set this up e.g. CGI mappings etc? Any advice is appreciated. Mal Matheson - matheson@werple.net.au ========================================================================= Date: Mon, 17 Jun 1996 14:14:48 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "George Fike Jr." Subject: Formatting search script results Comments: To: hallclay@aol.com, doug@navisoft.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" OK, so I finially got the search engine working at www.outer-banks.nc.us, but I want to use the ns_return instead of ns_returnnotice so that I can format my results to match the rest of our site. It works just fine if I only use text in the body (along w/ #results) but referencing any image files keeps it from working. Also works, but when I change it to or so that I'm using a background image, it fails. If I add any hyperlinks in the body (I tried tgod.htm, /tgod.htm or http://www.outer-banks.nc.us, and it doesn't matter), it fails. Exactly how do you reference files from within a tcl script? As though you were doing it from the folder that the form is in, from the folder that the script is in, as http://(your site)/(foldername)/(filename)? Thank you for any help, Jordie ========================================================================= Date: Mon, 17 Jun 1996 15:24:16 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Re: Formatting search script results In-Reply-To: <1.5.4.32.19960617181448.0069f66c@interpath.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 17 Jun 1996, George Fike Jr. wrote: > OK, so I finially got the search engine working at www.outer-banks.nc.us, > but I want to use the ns_return instead of ns_returnnotice so that I can > format my results to match the rest of our site. It works just fine if I > only use text in the body (along w/ #results) but referencing any image > files keeps it from working. Also works, but when I change it to > or so that I'm using a background image, it fails. > If I add any hyperlinks in the body (I tried tgod.htm, /tgod.htm or > http://www.outer-banks.nc.us, and it doesn't matter), it fails. Exactly how > do you reference files from within a tcl script? As though you were doing it > from the folder that the form is in, from the folder that the script is in, > as http://(your site)/(foldername)/(filename)? > Thank you for any help, > Jordie It sounds like you need to quote your quotation marks. To enter a URL into Tcl it should look something like: Parking Lot Cam Whenever you want to have a quote mark apear in a variable or output you need to add a \ in front of it. Dave David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net ========================================================================= Date: Tue, 18 Jun 1996 02:20:57 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Malte Sussdorff Subject: Re: GNN Server Database In einer eMail vom 13.06.1996 15:37:38, schreiben Sie: > Has anyone implemented a database search form on their web site, >that returns information that has hypertext links, pointing to a particular >web site/pages? Yes, its quite easy. Generate the form, save it as html, and let it point to a TCL script. In this script, get the formdata, and then make an SQL select. Append the result to an HTML list, where you store the hyperlinks in, and there you are. > And also what would be the best way to put time stamps and date >stamps on a web page? > An extract of a script i wrote: set localtime [ns_localtime] set time "
Made: [lindex $localtime 3]-[lindex $localtime 4]-[lindex $localtime 5] [lindex $localtime 2]:[lindex $localtime 1]:[lindex $localtime 1]" Now append time to your page, and then you have a timestamp on your page, telling date and time in european standard. For more information look at the documenattion on ns_localtime ========================================================================= Date: Tue, 18 Jun 1996 10:33:51 +1000 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jai Lamerton Subject: nsperm modual on gnnserver. How do you configure it? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi. I have been trying to configure the GNNServer for some time now. My first problem was getting cgi's to work, everytime I execute one it would ask me for a login and password. I fixed this by removing the nsperm modual, but that's not good enough. In the documentation it describes how you can configure the users and password protect on directories, but on the version 2.0.3 for Solaris 2.4 dosn't have any link to the pages described in the documentation. So how do I configure the users and get nsperm to do it's job? Much thanks for any advice. Jai. ========================================================================= Date: Mon, 17 Jun 1996 18:15:50 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Postgres.c make error Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 05:39 AM 6/16/96 -0400, Malte Sussdorff wrote: >Hi, > >has anyone made it to compile the Postgres95 Driver for Linux. >Im running Linux 2.0.0 with GCC 2.7.2. >Postgres is installed, and all include files are found, just, there is in >error (error 1) in compiling. >So, if someone has it compiled for Linux, tell me how, or even better, attach >me the binary. Should work (i guess). The postgres driver was provided pre-compiled in the bin/ directory of the 2.04 release. >P.S.: When will 2.1 be out for Linux ? There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS (that's SunOS 4.1.x, not Solaris which is supported). These three ports rely on a third party beta implementation of Posix threads which is quite buggy, making the port very difficult. We are recommending Linux and FreeBSD users consider Intel Solaris or Windows NT for their Intel hardware. Right now is a great time to pick up Intel Solaris - SunSoft is selling it with the complete development environment for just $995, a savings of over $3000. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Mon, 17 Jun 1996 16:30:48 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: William Gomez Subject: accessing remote directories on NT machines Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've just installed GNN Server 2.03 on a Windows NT server. I'm trying to access shared directories on other NT PCs within the network group. I've tried to set up a virtual server and have tried using a logical drive name and have also tried \\\. Unfortunately, this did not work. Recently, I've spoken with a 'technical support specialist' from GNN at Chicago's Web and Email Expo. His reply was "I know this has been done...". Unfortunately, he wasn't sure how to do this and urged me to re-post my problem. Can some GNN/NT Guru please help me with this!!! Can it really be done...and can you please include instructions as to how to do this. Thanks in advance for any help. BillG -- +-------------------------+------------------------------+ | Bill Gomez | Maildrop : Rm1923/IL02 | | Control Centers Eng. | email: williamg@comm.mot.com | | Land Mobile Products | or CWG001@email.mot.com | | Motorola, Inc. | Voice : (847) 576-8712 | | 1301 E. Algonquin Rd. | Fax : (847) 576-0510 | | Schaumburg, IL 60196 | Pager : (847) 576-0295 15842 | +-------------------------+------------------------------+ ========================================================================= Date: Tue, 18 Jun 1996 12:15:34 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "PGG Graphics, Inc" Subject: User Management I've got a dedicated server at the Hosting Site, and I'm begining to dedicate more of my life to it than I'd really like to - or even have available. Is there any package out there for user management within the server? What I'd like to do is use the WEB900 service http://www.logicom.com and be able to import their codes, and when a user applies with a valid code, I'd like the software to validate the code, if valid, prompt him for a userid/password, check to make sure the ID is unique, if not, prompt again. THEN - when a valid code/password/id is entered, the code is put in the USED file, the userid/password is entered into the system, all this is logged to a file/table, and the user now has access as member of the group the code was valid for. Can this be done without leaving an elephant sized hole in the security system? My problem is not with the mechanics of the validation program, I wrote one for WC a year ago, it's with properly using the CGI interface with the database/tables here, *AND* more importantly with the permissions and access to the server. Any code I write/release is copyrighted shareware/freeware, so any help with this, or group effort would also be appreciated. Being able to take codes and money on-line is the lifeblood of a site ... and web servers are not set up like BBS's are to have their hand out for cash to the webmaster, but the ISP have their hands out every month ;) Being able to collect a toll/fee for access to a site makes a big different in traffic and the webmasters incentives to maintain it. I've used TABS before, and it's got about the same rate of return as MC/Visa, a slightly higher fee, but no risk for 'virtual' products. I like them better than FV or any of the other electronic transactions systems other than standard MC/Visa/AmEx. The next project will be to automate the deletion of accounts that have expired. If anyone has code written that works here, I'd like to see it.... -r- PGG Graphics, Inc. ========================================================================= Date: Tue, 18 Jun 1996 13:14:14 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Gustafson Subject: Help: Illustra abs function In-Reply-To: <2.2.32.19960618011550.0084cb60@199.221.53.18> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I can't seem to get the mathmatical functions to work in Illustra. Here's my SQL statement: select * from s_center where ((abs($lat - lat) * 100) < 1.0) and ((abs($long - lon) * 100) < 1.0); Why doesn't Illustra like the statement? I've tried many different revisions. That same SQL that works in Access doesn't work in Illustra. It seems Illustra is missing a lot of SQL commands... why? -- Jeffrey Gustafson jeffgus@packardbell.com Technical Resources Group Packard Bell Electronics, Inc. ========================================================================= Date: Tue, 18 Jun 1996 12:03:48 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Gustafson Subject: Linux & GNNServer (was Re: Postgres.c make error) In-Reply-To: <2.2.32.19960618011550.0084cb60@199.221.53.18> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 17 Jun 1996, Jim Davidson wrote: > At 05:39 AM 6/16/96 -0400, Malte Sussdorff wrote: > > >P.S.: When will 2.1 be out for Linux ? > > > There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS > (that's SunOS 4.1.x, not Solaris which is supported). These three ports > rely on a third party beta implementation of Posix threads which is quite > buggy, making the port very difficult. I noticed that the GNNServer includes it's own pthreads lib and does not use the pthreads libs that are "built-in" to the lastest Linux libs. Since pthreads package is "built-in" to the lastest Linux 2.0 libs does that make it "third party" now? Did the integration help with stability? Maybe requiring a certain libs version for GNNServer will help out. Also, Linux 2.0 has some sort of threading built into the kernel. I saw something to the effect of "clone". I don't know the low-level stuff really well, but I though I'd ask. I work with both Solaris and Linux. I really like some of the features the Linux kernel provides. Good stuff. Will there be a GNNServer for Linux 2.0 when ptheads gets more stable? --- Jeffrey Gustafson jeffgus@packardbell.com Technical Resources Group Packard Bell Electronics, Inc. ========================================================================= Date: Tue, 18 Jun 1996 19:27:45 CDT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Tank (SPM)" Subject: Calling canned Tcl scripts from GNN MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; X-MAPIextension=".TXT" Content-Transfer-Encoding: quoted-printable How do you call canned external Tcl scripts from GNN? We are trying to port some BSDi Tcl script over to GNN running on NT, but= are having some severe problems... can anyone point the (expectedly) eas= y solution. Thanks. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tank (SPM) Sean P. McNamara Tank@PG.NET The Planet Group, Inc. Network Operations Center Voice: (312) 772-8333 Fax: (312) 772-9214 ========================================================================= Date: Tue, 18 Jun 1996 21:14:46 CDT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Tank (SPM)" Subject: Re: Calling canned Tcl scripts from GNN In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; X-MAPIextension=".TXT" Content-Transfer-Encoding: quoted-printable On Tue, 18 Jun 96 19:27:45 CDT , Tank keyed in: > How do you call canned external Tcl scripts from GNN? > > We are trying to port some BSDi Tcl script over to GNN running on > NT, but are having some severe problems... can anyone point the > (expectedly) easy solution. Thought I could add a little more info here (sorry... was REALLY pressed = for time earlier). The scripts we have expect to be able to output to the web server simply = by writing to the stdout. ie. puts " This is some sample code" however, GNN requires the use of ns_return and it's relatives to return = data.... Is there a way I could redirect stdout to a string, or virtual = file at the beginning, and then simply use ns_return or ns_returnfile to = send it back at the end? This would mean SIGNIFIGANT time savings.... right now, the person settin= g up the server is considering GNN (at my suggestion), but will not use = it if it requires rewriting of all their existing scripts. Any help is appreciated. Tnx =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tank (SPM) Sean P. McNamara Tank@PG.NET The Planet Group, Inc. Network Operations Center Voice: (312) 772-8333 Fax: (312) 772-9214 ========================================================================= Date: Wed, 19 Jun 1996 20:01:15 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "pe: program is version 1.12IS, but resources are version 3.0b3. This means that there is an inappropriate `Netscape' file installed" Subject: HELP NEEDED. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > Hello to who ever it is, I still don't get it. > I am a knew system maneger on sgi machines > with very little experience. > I have a few questions and I would be happy > to get an answer for them. > here we go : > > 1. Isn't there a way to see all the " FAQ " at once like a news group ? > > 2. I can't set up the network preferences.(tried to do it like in > netscape I get a message "couldn't contact server" ). > > 3. The basic thing I dont anderstand, is there is a way which > I can write the html and then see is as it sepose to be ? > > THANK'S IN ADVANCE > > Danny. ========================================================================= Date: Wed, 19 Jun 1996 00:33:19 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Shawn Mathews Subject: Re: accessing remote directories on NT machines Comments: To: "williamg@comm.mot.com" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit William, As far as I know, directories for virtual servers need to be local to the PC that they are on. Even if you connect to a drive via file manager it won't work. If you need to access drives on machines over the Internet do the following: 1. On Windows NT edit the lmhosts file in your \winnt\system32\drivers\etc directory and add a line with the ip address and NT name of the machine you wish to access. e.g. 12.34.56.78 SomeMachine #PRE 2. type NBTSTAT -R and the command prompt. You can now map drives on the remote computer as long as you have a username/password which matches the username/password that you are currently logged in with. If your username does not match, then put the machine/ username in the connect as box in the file manager . Lets say you are connecting with the following info: remote share : DRIVEC machine: SERVER1 username: SOMEUSER you would fill in the following information in the connect network drive dialog. path: \\SERVER1\DRIVEC connect as: SERVER1\SOMEUSER hope this helps, Shawn Mathews us019327@Interramp.com ---------- > From: William Gomez > To: Multiple recipients of list GNNDEVELOPER-L > Subject: accessing remote directories on NT machines > Date: Monday, June 17, 1996 5:30 PM > > I've just installed GNN Server 2.03 on a Windows NT server. > I'm trying to access shared directories on other NT PCs within the > network group. I've tried to set up a virtual server and have tried > using a logical drive name and have also tried \\\. > Unfortunately, this did not work. > > Recently, I've spoken with a 'technical support specialist' from > GNN at Chicago's Web and Email Expo. His reply was "I know this > has been done...". Unfortunately, he wasn't sure how to do this and > urged me to re-post my problem. > > Can some GNN/NT Guru please help me with this!!! Can it really be done...and > can you please include instructions as to how to do this. > > Thanks in advance for any help. > > BillG > > -- > > +-------------------------+------------------------------+ > | Bill Gomez | Maildrop : Rm1923/IL02 | > | Control Centers Eng. | email: williamg@comm.mot.com | > | Land Mobile Products | or CWG001@email.mot.com | > | Motorola, Inc. | Voice : (847) 576-8712 | > | 1301 E. Algonquin Rd. | Fax : (847) 576-0510 | > | Schaumburg, IL 60196 | Pager : (847) 576-0295 15842 | > +-------------------------+------------------------------+ > ========================================================================= Date: Wed, 19 Jun 1996 11:19:56 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Bakki Kudva Organization: Navaco Subject: drill down MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Let's say I have a table with a,b,c.....z fields. Initially I want to query on b,h,x and return a hit list of only these fields. For each row returned, I want the user to be able to retrieve the complete row which is to be formatted into a table with images (fields may contain image file references). Also fields may contain foreign keys to other tables. When data is returned such keys must become links to fetch the data from those tables. How can I drill down like this?? I would appreciate any help from the tcl gurus on the list. Bakki ========================================================================= Date: Tue, 18 Jun 1996 16:02:51 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Stephen A. Mattin" Organization: MediLife Software Subject: Re: returning binary files from TCL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Stephen A. Mattin wrote: > > I have a GNNServer TCL script to intercept requests to a Web > hierarchy, perform some additional processing, then possibly > serve the request. It seems to work OK using url2file, ns_guesstype, > and returnfile, but image files (GIF) appear to be returned with only > the first 7 chars (the GIF type code). > > I seem to recall reading something somewhere about TCL having trouble > reading binary data. Is there some magic to returning binary data > from TCL code? I tried ns_geturl with the same result. I received some confirmation that it is indeed difficult, if not impossible to read binary files with TCL. This does not explain why the GNNServer support routines, which are mostly written in C, could not correctly return a binary file. Since I have taken a vow never to program in C again (actually, I don't have a compiler), my options were somewhat limited in working around this problem. I managed to do what I wanted by exec'ing "mimencode" and returning the encoded content, but this seems awfully inefficient. I guess that it would take about two minutes of GNNServer programmer time to provide a version of ns_returnfile that worked correctly on binary files. -- Stephen A. Mattin stephen@MediLife.COM ========================================================================= Date: Wed, 19 Jun 1996 12:24:26 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Nilt Subject: Using queries for data retrieval Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I am working on my site where I will want to have a screen on which users can enter data (search criteria) into fields and have the results of the search displayed. The database searched will approximately contain 2,000 records, each record will contain 6 fields. The database software I use is Microsoft Access, but I can change the format of my database to make the search faster. Has any fellow member done something similar? What's the best way to approach this project? Suggestions will be appreciated. ========================================================================= Date: Wed, 19 Jun 1996 14:40:57 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Peter M. Jansson" Subject: Re: Calling canned Tcl scripts from GNN Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" It sounds like your existing scripts are built to run as CGI scripts. They will work if you have loaded the nscgi module in your virtual server and place the scripts somewhere they can be executed, such as a script directory, or given a name that yields a cgi MIME-type. If this is the case, you may be able to use the scripts with no modification. You will have to put an external Tcl interpreter on the machine. Pete. ========================================================================= Date: Wed, 19 Jun 1996 15:36:00 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ryan Houlette Subject: tcl and ns_return MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In the documentation for tcl that comes with GNNserver, the Tcl command ns_return is specified as having the format ns_return CONNID STATUS ?TYPE LEN? I assumed that this meant that the last two arguments were optional, but in practice this does not seem to be true. A statement of the form proc mytest { conn context } { ns_return $conn 200 } gives me a server error. I'd like to be able to return a status code from my script, but I don't want to return my page in the ns_return statement. I'd rather use ns_write. Any help would be appreciated. Ryan ======================================================================= Ryan Houlette The Auto Channel East rhoulett@theautochannel.com 624 W. Main St, 6th Floor phone: +1 502 584 4100 Louisville, KY 40202 http://nexus.theautochannel.com/~rhoulett http://www.theautochannel.com ======================================================================= ========================================================================= Date: Wed, 19 Jun 1996 11:11:14 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Linux & GNNServer (was Re: Postgres.c make error) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:03 PM 6/18/96 -0700, Jeff Gustafson wrote: >On Mon, 17 Jun 1996, Jim Davidson wrote: > >> At 05:39 AM 6/16/96 -0400, Malte Sussdorff wrote: >> >> >P.S.: When will 2.1 be out for Linux ? >> >> >> There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS >> (that's SunOS 4.1.x, not Solaris which is supported). These three ports >> rely on a third party beta implementation of Posix threads which is quite >> buggy, making the port very difficult. > > I noticed that the GNNServer includes it's own pthreads lib and >does not use the pthreads libs that are "built-in" to the lastest Linux >libs. Since pthreads package is "built-in" to the lastest Linux 2.0 libs >does that make it "third party" now? Did the integration help with >stability? Maybe requiring a certain libs version for GNNServer will help >out. Also, Linux 2.0 has some sort of threading built into the kernel. I >saw something to the effect of "clone". I don't know the low-level stuff >really well, but I though I'd ask. I work with both Solaris and Linux. I >really like some of the features the Linux kernel provides. Good stuff. First of all, Linux is definitely "good stuff". Nothing has done more to bring Unix out of the universities and big business and into the hands of ordinary people than Linux. This is good because, while I have no fear or hatred of NT, I think competition is good and Linux is playing an important part keeping NT from sucking up the entire low end server market. As for the GNNserver, my understanding is that the pthreads library included in Linux 2.0, like that used in the GNNserver, is a modified version of the MIT pthreads library: http://www.mit.edu:8001/people/proven/pthreads.html There are two problems with MIT pthreads: 1. Since pthreads isn't really integrated into the system, code written with pthreads is typically incompatible with code written with the standard libraries and header files. This is why, for example, compiling the postgres driver isn't a simple matter of typing make - you need to compile against the pthreads libc and header files. 2. MIT pthreads is riddled with bugs. We had to make several important bug fixes just to get the GNNserver to run reasonably well. A continuing problem is that the select() system call is hopelessly broken. In 2.0 we could get around this problem but 2.1 uses select() even more. When we did the 2.0 port we had hopes the pthreads bugs would be fixed and the library properly integrated into Linux in time for the 2.1 release. I even sent a long list of bug fixes to the author of pthreads. Unfortunately, I received no response and, as far as I can tell, the pthreads effort at MIT has all but stopped. For example, the "late breaking news" page above hasn't been modified since November of 1995. > Will there be a GNNServer for Linux 2.0 when ptheads gets more >stable? Perhaps, but Linux will have to come a long way to convince me it's capable of a true multithreaded application like the GNNserver. I did look at the kernel sources to the "clone" system call. Clone *can* be the basis of kernel thread support in Linux. In fact, it is very similar to the SGI IRIX "sproc" system call which we use for the Irix port. However, the clone call itself is insufficient for a complete pthreads library. At a minimum you need mutexes and condition variables - perhaps easy to implement and something the GNNserver development team could do - but this would siphon off resources from more important and interesting problems (for example, Java support, an Oracle driver, ISAPI, etc.). Basically, we wanted the Linux port to work as well but right now I just can't justify the level of effort required. What I am doing is strongly suggesting all Linux and FreeBSD users upgrade to Intel Solaris. Intel Solaris is a fully supported platform which includes an excellent, kernel based threads library. In fact, SunSoft reaffirmed it's commitment to the Intel platform just yesterday (see press release below). Reminder: Now is a great time to buy Intel Solaris. Just $995 for Solaris 2.5 plus the Workshop development environment. You can also try Intel Solaris for free. Check out: http://www.sun.com/sunsoft/Products/x86.html Cheers, -Jim _________________________________________________ Jim Davidson | jimbo@sb.aol.com GNNserver Project Manager | America Online Inc. | 511 Bath Street | Voice: (800) 529-9166 Santa Barbara, CA 93101 | Fax: (805) 899-4316 Posted at 2:14 PM PT, Jun 18, 1996 NEW YORK -- SunSoft Inc. on Tuesday launched a campaign at PC Expo here to make a name for itself in the high-volume, Intel-based PC marketplace. The company announced deals to bundle its Unix operating system and selected World Wide Web server software with PC servers from IBM and Unisys Corp. This announcement is a small piece of a much larger strategy to bring its Solaris on Intel Unix operating system and server software packages into the mainstream. "We resolve that we will be in the volume Intel business," said Richard Larsen, director of strategic relationships with SunSoft in Menlo Park, Calif. While Solaris has seen a strong success on its native SPARC platform, the Intel version has lagged far behind. SunSoft, which tries to act as a software vendor independent of its Sun Microsystems Inc. parent company, knows that the Intel space is where the market is at, Larsen said. This strategy is also a back-door way to make Solaris a bundling option for IBM and Unisys servers, since these vendors did not offer the Unix operating system previous to this announcement. SunSoft's deal with IBM and Unisys is to provide its Solaris 2.5.1 and Internet gateway software along with Netscape Communications Corp.'s Commerce Server that will come pre-installed on the hardware vendors products. The product, which is meant to be a turnkey solution that offers companies a simple way to get started on the Internet, will be available through IBM resellers and Unisys' direct sales force. IBM will offer the SunSoft package on its models 320 and 520 servers immediately and will add the 310 to the list at the end of the month, Larsen said. Pricing will be around $6, 600 for an IBM model 320 with the SunSoft bundle. IBM resellers will provide technical support for the package and will be able to offer additional features, such as SunSoft's firewall software, to customers. Unisys will offer the bundle on all of its Aquanta PC servers starting next month, Larsen said. While Web software is an obvious bundling choice because of the popularity of this technology today, SunSoft is exploring other bundling options, Larsen continued. For example, the company is considering pulling together a database package that might consist of Oracle Corp.'s database and related software and offer this package to certain server vendors, he said. SunSoft will target other PC server vendors to strike similar bundling deals with, although the software company will limit itself to partnering only with those vendors that share strong synergies with SunSoft, Larsen said. The company chose IBM because of its well-developed reseller community, he said, and Unisys for its strong direct sales force. SunSoft is at http://www.sun.com:80/sunsoft/SunSoft-overview/index.html. IBM is at http://www.ibm.com/. Unisys is at http://www.unisys.com/. ========================================================================= Date: Wed, 19 Jun 1996 13:35:48 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kireau Kendrick Subject: CGI setup on NT In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I am trying to configure the cgi module of gnnserver on a Win NT 3.51/FAT server. I used gnnpress to load the module. I have configured the mapping as such: Method URL Script directory ______________________________________________________ POST /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ GET /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ Then I place a perl script file called www.cgi in the script directory above. I associate it with my perl.exe NTperl program in c:\Perl5.000\perl.exe directory. I tested the perl script in DOS mode by running perl www.cgi at my ms-dos prompt which ran fine without any errors. I stopped and started GNNServer after the configuration. However, when I access the url, http://wineguide.com/cgi-bin/www.cgi , I get a server error message saying "Forbidden The requested URL cannot be accessed by this server. Can anyone tell me what I am doing wrong? Thanks. Kireau ========================================================================= Date: Wed, 19 Jun 1996 17:49:39 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Dynamic pages with links... Comments: To: Discussion of Web Authoring with GNNpress and GNN Hosting Service , Chris Umali Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:18 AM 6/19/96 -0700, you wrote: >Hello, > I was wondering, how would I be able to make text returned by a >database search live links to other pages, or web sites? Chris, You can use the Dynamic Page Module from the Developer's Corner to create the pages you want. See: http://www.gnnhost.com/develop/code/index.htm and follow the link to get the page module. When I've done dynamic pages with links, I've set it up like this: 1) include a column in your table called "url". This column will store the URL you want to link to. Your table might also have "title" and "description" fields. 2) Make your template something like this:

#title
#description When you do your search, the dynamic page module will insert the URL, title, and description of each site into the HTML above, and produce a dynamic page that has links from your database. For a few examples of this, take a look at: http://www.gnnhost.com/publish/faq/faq.htm http://www.gnnhost.com/client/nspages.htm http://www.association.org/directory/search.html I'm sure there are many others, too. Cheers, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Wed, 19 Jun 1996 17:45:43 CDT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Tank (SPM)" Subject: Re: CGI setup on NT In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; X-MAPIextension=".TXT" Content-Transfer-Encoding: 7bit On Wed, 19 Jun 96 15:35:48 CDT , Kireau Kendrick keyed in: > I am trying to configure the cgi module of gnnserver on a Win NT 3.51/FAT > server. I used gnnpress to load the module. I have configured the mapping > as such: > > Method URL Script directory > ______________________________________________________ > POST /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ > GET /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ In the script directory field use forward slashes. ie: c:/GNN/Server/servers/server1/cgi-bin or even: /cgi-bin using backslashes is an easy mistake to make.... -S ===================================== Tank (SPM) Sean P. McNamara Tank@PG.NET The Planet Group, Inc. Network Operations Center Voice: (312) 772-8333 Fax: (312) 772-9214 ========================================================================= Date: Wed, 19 Jun 1996 15:29:54 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Chris Umali Subject: Database Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, Does anyone know how I would be able to incorporate data from other GNN server database tables, into an entry form for another database accompanied with additional information? For example, creating a pull down menu for an employee form, and getting the employees from a personel database already created? Any help would be appreciated. Thanks & Have a nice day, Chris Umali Envision Group, NetWerks chris@netwerks.com chris@envision.netwerks.com http://www.netwerks.com 310-523-2000 ========================================================================= Date: Wed, 19 Jun 1996 23:33:03 -0500 Reply-To: grodecki@sound.net Sender: Web Development with GNNserver and GNN Hosting Service From: Don Grodecki Subject: Shopping Carts? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Has anyone ever written a secure shopping cart with credit-card processing using GNNServer/Illustra? If so, are you willing to share or sell the code to it? ========================================================================= Date: Wed, 19 Jun 1996 16:58:31 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Matthew Hewitt Subject: Global varibles with arrays in TCL. In-Reply-To: <2.2.32.19960619214939.00ab0f3c@mail.gnnhost.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_19tW33g.bO1996u.N23d000A.r06Y.58:0063f7" Content-Transfer-Encoding: 7bit --=_19tW33g.bO1996u.N23d000A.r06Y.58:0063f7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I need to have an array to store information between different hits. this can normally be done using the upvar #0 name_of_array command. And it works just fine within the same execution for the hit. however when the program goes and tries to retrived the information for a differn't hit, it is not there and complains that it doesn't exist. However the same is not true for normal variables, they work just fine from one hit to the next. Any suggestions or comments would be appreciated. Thank you. --=_19tW33g.bO1996u.N23d000A.r06Y.58:0063f7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="SIG.TXT" Content-Description: The Sender's Signature Matthew Hewitt Head Programmer AM Computers The Source for Advanced Computing Solutions http://am.net --=_19tW33g.bO1996u.N23d000A.r06Y.58:0063f7-- ========================================================================= Date: Wed, 19 Jun 1996 15:56:45 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Calling canned Tcl scripts from GNN Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:14 PM 6/18/96 CDT, Tank (SPM) wrote: >On Tue, 18 Jun 96 19:27:45 CDT , Tank keyed in: > >> How do you call canned external Tcl scripts from GNN? >> >> We are trying to port some BSDi Tcl script over to GNN running on >> NT, but are having some severe problems... can anyone point the >> (expectedly) easy solution. > >Thought I could add a little more info here (sorry... was REALLY pressed for time earlier). > >The scripts we have expect to be able to output to the web server simply by writing to the stdout. ie. > >puts " This is some sample code" > >however, GNN requires the use of ns_return and it's relatives to return data.... Is there a way I could redirect stdout to a string, or virtual file at the beginning, and then simply use ns_return or ns_returnfile to send it back at the end? > >This would mean SIGNIFIGANT time savings.... right now, the person setting up the server is considering GNN (at my suggestion), but will not use it if it requires rewriting of all their existing scripts. > >Any help is appreciated. Hello, You could install a normal Tcl interpreter and run your Tcl CGI scripts unaltered. This should work but won't be as fast as using the internal Tcl interface (for simple scripts, the internal interface can easily be 10x faster by avoiding the fork() and all the data copying of CGI). If you continue modifying the scripts to run internally, I wouldn't try reopening stdout. It would be difficult to manage in the multithreaded environment. Instead, consider writing your own puts command to stash output away in a global string. Something like this: proc puts {string} { global putsBuf set n [ns_info interp] append putsBuf($n) $string append putsBuf($n) "\n" return "" } then your script can do many puts with a final ns_return of the $putBuf global string: global putsBuf set n [ns_info interp] ns_returnnotice $c 200 "Output" $putsBuf($n) The reason the temporary strings is an array indexed by the interpreter number is to allow it to work simultaneously with multiple interpreters. Of course doing this will hose the real puts command. This may be o.k. for you but if not, consider something like: # Save old puts command rename puts puts.real proc puts {args} { if {[llength $args] > 1 || [lindex $args 0] == "stdout"} { # catch "puts stderr $string" or "puts $fp $string" return [eval puts.real $args] } # handle default output to stdout global putsBuf set n [ns_info interp] append putsBuf($n) $args append putsBuf($n) "\n" return "" } This doesn't handle the -nonewline option but it's getting close. One note: I haven't actually tried any of this. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Wed, 19 Jun 1996 16:11:25 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: returning binary files from TCL Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 04:02 PM 6/18/96 -0400, Stephen A. Mattin wrote: >Stephen A. Mattin wrote: >> >> I have a GNNServer TCL script to intercept requests to a Web >> hierarchy, perform some additional processing, then possibly >> serve the request. It seems to work OK using url2file, ns_guesstype, >> and returnfile, but image files (GIF) appear to be returned with only >> the first 7 chars (the GIF type code). >> >> I seem to recall reading something somewhere about TCL having trouble >> reading binary data. Is there some magic to returning binary data >> from TCL code? I tried ns_geturl with the same result. > > >I received some confirmation that it is indeed difficult, if not >impossible to read binary files with TCL. This does not explain >why the GNNServer support routines, which are mostly written in >C, could not correctly return a binary file. Since I have taken a >vow never to program in C again (actually, I don't have a compiler), >my options were somewhat limited in working around this problem. > >I managed to do what I wanted by exec'ing "mimencode" and returning >the encoded content, but this seems awfully inefficient. I guess >that it would take about two minutes of GNNServer programmer time >to provide a version of ns_returnfile that worked correctly on binary >files. Hello, Your code should work fine because ns_returnfile doesn't look at the contents of the file so it isn't affected by the string-only limitation of Tcl. To be clear, this should work: set url [ns_conn url $conn] set file [ns_url2file $url] set type [ns_guesstype $file] ns_returnfile $conn 200 $type $file this should also work: set url [ns_conn url $conn] set file [ns_url2file $url] set len [file size $file] set type [ns_guesstype $file] set fp [open $file] ns_returnfp $conn 200 $type $fp $len but this won't: set url [ns_conn url $conn] set file [ns_url2file $url] set type [ns_guesstype $file] set fp [open $file] set data [read $fp] ; # Error: Tcl will truncate data at first \0 ns_return $conn 200 $type $data Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Thu, 20 Jun 1996 00:22:29 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: returning binary files from TCL Comments: cc: stephen@MediLife.COM In-Reply-To: <199606200403.AAA10457@services.web.aol.com> (message from Automatic digest processor on Thu, 20 Jun 1996 00:01:38 -0400) Stephen A. Mattin wrote: > > I have a GNNServer TCL script to intercept requests to a Web > hierarchy, perform some additional processing, then possibly > serve the request. It seems to work OK using url2file, ns_guesstype, > and returnfile, but image files (GIF) appear to be returned with only > the first 7 chars (the GIF type code). > > I seem to recall reading something somewhere about TCL having trouble > reading binary data. Is there some magic to returning binary data > from TCL code? I tried ns_geturl with the same result. I received some confirmation that it is indeed difficult, if not impossible to read binary files with TCL. This does not explain why the GNNServer support routines, which are mostly written in C, could not correctly return a binary file. Since I have taken a vow never to program in C again (actually, I don't have a compiler), my options were somewhat limited in working around this problem. I managed to do what I wanted by exec'ing "mimencode" and returning the encoded content, but this seems awfully inefficient. I guess that it would take about two minutes of GNNServer programmer time to provide a version of ns_returnfile that worked correctly on binary files. Hmmm... I use a very vanilla ns_returnfile $conn [ns_guesstype $filename] $filename statement to return GIFs and it works file. This statement has probably served at least 1 million GIFs from http://mmnewsstand.com without incident. I think this worked fine in versions 1.0, 2.0, and 2.03 of the server. I used it because I wanted to log something into the database sometimes before returning the URL requested by the user. -- Philip Greenspun ------------------------------------------------------------- MIT Department of Electrical Engineering and Computer Science 545 Technology Square, Rm 609, Cambridge, MA 02139, (617) 253-8574 Personal Web URL: http://www-swiss.ai.mit.edu/philg/ ========================================================================= Date: Thu, 20 Jun 1996 08:54:17 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Gustafson Subject: Re: Linux & GNNServer (was Re: Postgres.c make error) Comments: To: Jim Davidson In-Reply-To: <2.2.32.19960619181114.0075d008@199.221.53.18> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 19 Jun 1996, Jim Davidson wrote: > First of all, Linux is definitely "good stuff". Nothing has done more to > bring Unix out of the universities and big business and into the hands of > ordinary people than Linux. This is good because, while I have no fear or > hatred of NT, I think competition is good and Linux is playing an important > part keeping NT from sucking up the entire low end server market. Agreed. > > As for the GNNserver, my understanding is that the pthreads library included > in Linux 2.0, like that used in the GNNserver, is a modified version of the > MIT pthreads library: > > http://www.mit.edu:8001/people/proven/pthreads.html > > There are two problems with MIT pthreads: > ...[deleted]... > pthreads effort at MIT has all but stopped. For example, the "late breaking > news" page above hasn't been modified since November of 1995. Oh well. I was hoping it wouldn't be that bad. I found another thread page for Linux that is NOT based on MIT pthreads. Supposedly it compiles and runs the DCE-RPC perf test suite. I don't know too much about it or DCE-RPC other than it also is in beta. But it might be something to look at if you decide someday to do another Linux port. > > Will there be a GNNServer for Linux 2.0 when ptheads gets more > >stable? > > > Perhaps, but Linux will have to come a long way to convince me it's capable > of a true multithreaded application like the GNNserver. I did look at the > kernel sources to the "clone" system call. Clone *can* be the basis of > kernel thread support in Linux. In fact, it is very similar to the SGI IRIX > "sproc" system call which we use for the Irix port. However, the clone call > itself is insufficient for a complete pthreads library. At a minimum you > need mutexes and condition variables - perhaps easy to implement and > something the GNNserver development team could do - but this would siphon > off resources from more important and interesting problems (for example, > Java support, an Oracle driver, ISAPI, etc.). Basically, we wanted the > Linux port to work as well but right now I just can't justify the level of > effort required. Currently we run our web server on a Sparcstation. So, for now, I'd rather see the cool new features. Linux has been a great test bed system for GNNServer. So I still wish to see a Linux version. But I do understand that it is currently too much trouble. Thank you for the info. --- Jeffrey Gustafson jeffgus@packardbell.com Technical Resources Group Packard Bell Electronics, Inc. ========================================================================= Date: Thu, 20 Jun 1996 08:59:48 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Gustafson Subject: Re: Help: Illustra abs function Comments: To: philg@mit.edu In-Reply-To: <199606200433.VAA22158@pb.packardbell.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 20 Jun 1996, Philip Greenspun wrote: > > Date: Tue, 18 Jun 1996 13:14:14 -0700 > From: Jeff Gustafson > Subject: Help: Illustra abs function > > I can't seem to get the mathmatical functions to work in > Illustra. Here's my SQL statement: > select * from s_center where > ((abs($lat - lat) * 100) < 1.0) and > ((abs($long - lon) * 100) < 1.0); > > Why doesn't Illustra like the statement? I've tried many > different revisions. That same SQL that works in Access doesn't work in > Illustra. It seems Illustra is missing a lot of SQL commands... why? > > As far as I can tell, there are basically two flavors of SQL in the > world: "IBM SQL" which became the ANSI standard, and "Oracle SQL". > Illustra seems to adhere to IBM/ANSI SQL even where it sucks and/or > won't do what you need (see my agony in > http://www-swiss.ai.mit.edu/wtr/illustra-tips.html over the date/time > stuff). I figured it out! Apparently Access is REALLY forgiving on how an SQL statement is structured. Here's what I finally ended up with: select *, ((Abs($lat - lat)) + (Abs($long - lon))) as totcalc from s_center order by totcalc; Access allowed the statement to be contructed, well, backwards! I guess the above statement is the real way to structure it. @$#@#$@ Access! If I hadn't constructed it under Access first I probably would have found the right answer sooner! Thank you for the hints. > > There are several problems with your bug report. > > 1) you don't include what Illustra said. Sometimes error messages can > be helpful. > > 2) You have "$lat" which is meaningless in ANSI SQL or Oracle SQL or any > other SQL I've ever seen. Was this part of a Tcl program? If so, you > really need to turn on verbose db tracing and pull the actual query sent > to Illustra from server.log. Maybe your $lat variable was the empty > string or something. > > Although Bill Gates is of course the world's smartest person (see > http://www.webho.com/WealthClock ), I'm not sure that Microshaft Access > is the last word on what SQL should be. > > Personally, I think Oracle SQL is the best that I've used. It is uglier > and less consistent than Illustra SQL but usually has the features you > need. If it doesn't, you can write a PL/SQL program that does what you > want. --- Jeffrey Gustafson jeffgus@packardbell.com Technical Resources Group Packard Bell Electronics, Inc. ========================================================================= Date: Thu, 20 Jun 1996 00:33:20 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: Help: Illustra abs function Comments: cc: jeffgus@packardbell.com In-Reply-To: <199606200403.AAA10457@services.web.aol.com> (message from Automatic digest processor on Thu, 20 Jun 1996 00:01:38 -0400) Date: Tue, 18 Jun 1996 13:14:14 -0700 From: Jeff Gustafson Subject: Help: Illustra abs function I can't seem to get the mathmatical functions to work in Illustra. Here's my SQL statement: select * from s_center where ((abs($lat - lat) * 100) < 1.0) and ((abs($long - lon) * 100) < 1.0); Why doesn't Illustra like the statement? I've tried many different revisions. That same SQL that works in Access doesn't work in Illustra. It seems Illustra is missing a lot of SQL commands... why? As far as I can tell, there are basically two flavors of SQL in the world: "IBM SQL" which became the ANSI standard, and "Oracle SQL". Illustra seems to adhere to IBM/ANSI SQL even where it sucks and/or won't do what you need (see my agony in http://www-swiss.ai.mit.edu/wtr/illustra-tips.html over the date/time stuff). There are several problems with your bug report. 1) you don't include what Illustra said. Sometimes error messages can be helpful. 2) You have "$lat" which is meaningless in ANSI SQL or Oracle SQL or any other SQL I've ever seen. Was this part of a Tcl program? If so, you really need to turn on verbose db tracing and pull the actual query sent to Illustra from server.log. Maybe your $lat variable was the empty string or something. Although Bill Gates is of course the world's smartest person (see http://www.webho.com/WealthClock ), I'm not sure that Microshaft Access is the last word on what SQL should be. Personally, I think Oracle SQL is the best that I've used. It is uglier and less consistent than Illustra SQL but usually has the features you need. If it doesn't, you can write a PL/SQL program that does what you want. -- Philip Greenspun ------------------------------------------------------------- MIT Department of Electrical Engineering and Computer Science 545 Technology Square, Rm 609, Cambridge, MA 02139, (617) 253-8574 Personal Web URL: http://www-swiss.ai.mit.edu/philg/ ========================================================================= Date: Thu, 20 Jun 1996 10:36:15 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Franz ROHNER Organization: CERN Subject: Re: HELP NEEDED. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit pe: program is version 1.12IS, but resources are version 3.0b3. This means that there is an inappropriate `Netscape' file installed wrote: > > > Hello to who ever it is, I still don't get it. > > I am a knew system maneger on sgi machines > > with very little experience. > > I have a few questions and I would be happy > > to get an answer for them. > > here we go : > > > > 1. Isn't there a way to see all the " FAQ " at once like a news group ? > > > > 2. I can't set up the network preferences.(tried to do it like in > > netscape I get a message "couldn't contact server" ). > > > > 3. The basic thing I dont anderstand, is there is a way which > > I can write the html and then see is as it sepose to be ? > > > > THANK'S IN ADVANCE > > > > Danny. Hi Danny I get exactly the same problem with GNNpress when I try to set the Name server or proxies. I just have to leave those fields at their defaults. You can use the HTML button or "Tools" ===>"Show HTML" and edit. When closing the HTML window you are prompted for updating the buffered page. The displayed page is then updated as well. Franz ========================================================================= Date: Thu, 20 Jun 1996 13:47:21 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Malte Sussdorff Subject: Postgres /Gnn initialisation on Linux Hi again, i have the following problem: During of GNN Server, it connects to my postgres database. Then he wants to create the ns_tables and ns_columns table. He tries it this way: create table ns_tables (table_name varchar not null primary key, ...) The problem is: Postgres doesn't like it. It gives me an error near 'not'. Because i didn't find any possibility to edit this startup from GNN Server, i ask you, if you could help me with it. >There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS >(that's SunOS 4.1.x, not Solaris which is supported). These three ports >rely on a third party beta implementation of Posix threads which is quite >buggy, making the port very difficult. If this problem (posix threads buggy under linux) is taken care of, would it be easier for you to make a Linux release ? Thanx for any help Malte ========================================================================= Date: Thu, 20 Jun 1996 12:28:27 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Matthew Hewitt Subject: RE[2]: Calling canned Tcl scripts from GNN In-Reply-To: <2.2.32.19960619225645.007568a0@199.221.53.18> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_20tW29g.bO1996u.N19d000A.r06Y.28:001f6c" Content-Transfer-Encoding: 7bit --=_20tW29g.bO1996u.N19d000A.r06Y.28:001f6c Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit >At 09:14 PM 6/18/96 CDT, Tank (SPM) wrote: >>On Tue, 18 Jun 96 19:27:45 CDT , Tank keyed in: >> >>> How do you call canned external Tcl scripts from GNN? >>> >>> We are trying to port some BSDi Tcl script over to GNN running on >>> NT, but are having some severe problems... can anyone point the >>> (expectedly) easy solution. >> >>Thought I could add a little more info here (sorry... was REALLY pressed >for time earlier). >> >>The scripts we have expect to be able to output to the web server simply by >writing to the stdout. ie. >> >>puts " This is some sample code" >> >>however, GNN requires the use of ns_return and it's relatives to return >data.... Is there a way I could redirect stdout to a string, or virtual file >at the beginning, and then simply use ns_return or ns_returnfile to send it >back at the end? >> >>This would mean SIGNIFIGANT time savings.... right now, the person setting >up the server is considering GNN (at my suggestion), but will not use it if >it requires rewriting of all their existing scripts. >> >>Any help is appreciated. > > > >Hello, > >You could install a normal Tcl interpreter and run your Tcl CGI scripts >unaltered. This should work but won't be as fast as using the internal Tcl >interface (for simple scripts, the internal interface can easily be 10x >faster by avoiding the fork() and all the data copying of CGI). > >If you continue modifying the scripts to run internally, I wouldn't try >reopening stdout. It would be difficult to manage in the multithreaded >environment. Instead, consider writing your own puts command to stash >output away in a global string. Something like this: > > >proc puts {string} { > global putsBuf > set n [ns_info interp] > append putsBuf($n) $string > append putsBuf($n) "\n" > return "" >} > > >then your script can do many puts with a final ns_return of the $putBuf >global string: > > global putsBuf > set n [ns_info interp] > ns_returnnotice $c 200 "Output" $putsBuf($n) > > >The reason the temporary strings is an array indexed by the interpreter >number is to allow it to work simultaneously with multiple interpreters. > > >Of course doing this will hose the real puts command. This may be o.k. for >you but if not, consider something like: > > ># Save old puts command >rename puts puts.real > >proc puts {args} { > if {[llength $args] > 1 || [lindex $args 0] == "stdout"} { > # catch "puts stderr $string" or "puts $fp $string" > return [eval puts.real $args] > } > # handle default output to stdout > global putsBuf > set n [ns_info interp] > append putsBuf($n) $args > append putsBuf($n) "\n" > return "" >} > > >This doesn't handle the -nonewline option but it's getting close. > >One note: I haven't actually tried any of this. > > >Cheers, -Jim >_______________________ > Jim Davidson > jimbo@sb.aol.com > Voice: (805) 882-2350 > Fax: (805) 899-4316 > One thing about your code that I noticed, is that you can't use the global command when dealing with arrays. YOu have to use the "upvar #0 globalvar functionvar" in order to get it to work. Why better support for arrays is not included in TCL I don't know. --=_20tW29g.bO1996u.N19d000A.r06Y.28:001f6c Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="SIG.TXT" Content-Description: The Sender's Signature Matthew Hewitt Head Programmer matthew@am.net AM Computers The Source for Advanced Computing Solutions http://am.net --=_20tW29g.bO1996u.N19d000A.r06Y.28:001f6c-- ========================================================================= Date: Thu, 20 Jun 1996 11:35:07 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kireau Kendrick Subject: Re: CGI setup on NT In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 19 Jun 1996, Tank (SPM) wrote: > On Wed, 19 Jun 96 15:35:48 CDT , Kireau Kendrick keyed in: > > > I am trying to configure the cgi module of gnnserver on a Win NT 3.51/FAT > > server. I used gnnpress to load the module. I have configured the mapping > > as such: > > > > Method URL Script directory > > ______________________________________________________ > > POST /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ > > GET /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ > > In the script directory field use forward slashes. ie: > c:/GNN/Server/servers/server1/cgi-bin > > or even: > /cgi-bin I made these changes as you suggest, but I am still getting the same error message. This is WindowsNT though, not unix - doesn't that matter? Help!! Thanks. Kireau ========================================================================= Date: Thu, 20 Jun 1996 13:04:18 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Postgres /Gnn initialisation on Linux Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:47 PM 6/20/96 -0400, Malte Sussdorff wrote: >Hi again, > >i have the following problem: > >During of GNN Server, it connects to my postgres database. >Then he wants to create the ns_tables and ns_columns table. >He tries it this way: >create table ns_tables (table_name varchar not null primary key, ...) > >The problem is: Postgres doesn't like it. It gives me an error near 'not'. >Because i didn't find any possibility to edit this startup from GNN Server, i >ask you, if you could help me with it. The ns_tables and ns_columns tables are used when the database pool has the "ExtenedTableInfo" option set. I think Postgres has a limit on column name length and that's what messes up the table create SQL. Try setting ExtendedTableInfo off and see if it starts up o.k. >>There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS >>(that's SunOS 4.1.x, not Solaris which is supported). These three ports >>rely on a third party beta implementation of Posix threads which is quite >>buggy, making the port very difficult. > >If this problem (posix threads buggy under linux) is taken care of, would it >be easier for you to make a Linux release ? Yes - if pthreads were bug-free and integrated into Linux at the library and header file level the port would be relatively easy. Perhaps Linux will be at this state a year or so from now. I won't be watching so if things do take a turn for the better send me a note and I'll take another look. For now, Solaris is the Unix OS to use with Intel hardware. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Thu, 20 Jun 1996 15:49:48 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Chris Umali Subject: Re: GNNDEVELOPER-L Digest - 10 Jun 1996 to 11 Jun 1996 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I was wondering, is there a way to download the database in a given site. Meaning downloading the information inside the table? Is a table an actual SQL file located in the server? And is there a way to device the download of this information based on repetitively without downloading, for example last weeks entries on a database? Thanks For you help, Chris Umali Envision Group, NetWerks chris@netwerks.com chris@envision.netwerks.com http://www.netwerks.com 310-523-2000 ========================================================================= Date: Thu, 20 Jun 1996 15:20:55 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: RE[2]: Calling canned Tcl scripts from GNN Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:28 PM 6/20/96 -0700, Matthew Hewitt wrote: >One thing about your code that I noticed, is that you can't use the global >command when dealing with arrays. YOu have to use the "upvar #0 globalvar >functionvar" in order to get it to work. Why better support for arrays is >not included in TCL I don't know. Hello, The "global" command does work with arrays. There are a few cases of this in the GNNserver, for example, the "NSAdmin" array in the admin.tcl script and the "NS" array in the nsdb/tables.tcl script. In fact, if you look at the Tcl source code you'll find that the global command is identical to "upvar #0" - they both call the same function (I think it's called MakeUpvar) to link a variable at a global level into the current procedure frame. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Thu, 20 Jun 1996 21:14:08 -0100 Reply-To: heisler@teleport.com Sender: Web Development with GNNserver and GNN Hosting Service From: Heisler Subject: Shopping Cart MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am interested in creating a shopping cart type tcl script. I really have no Idea where to begin. I have scripts for searching the ilustra database and returning the content. Now I would like to add radio boxes that would somehow keep track of items a person would like to order. Where would I start. Should I keep a table with date time stamps? I would prefer if the user did not have to log into the site. Any one have any getting started pointers or examples of this type of thing. ========================================================================= Date: Fri, 21 Jun 1996 05:41:59 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Thomas R. Bruce" Subject: CGI/Perl performance tweaking/enhancement. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Folks: We run a site with moderately high volume (~= 1/2 million hits/week) which makes extensive use of various customized CGI scripts for searching WAISindexes, some of which are fairly large in size (eg. all the Supreme Court decisions for the last five years). We are eager to use GNNserver as our primary production server, but thus far every time we've tried to test it in full production it's been overwhelmed by load, specifically by its inability to run these various CGI-based searches. The search scripts themselves are written in perl and operate directly on the WAIS databases (meaning they're not in turn invoking something like waisq or waissearch). Oh yeah, we're also SunOS4.1.4 I can tell very little about what's actually going on beyond what I can see from top or ps, but it seems that GNNserver just doesn't manage these very well -- it seems to fork them and then forget about them; I watched the machine go from zero to seventy of these hanging around in the process table in about 10 minutes one morning; at first it was handling them just fine and then rapidly got overwhelmed. The server log shows a lot of "can't fork() that" messages. It may be that the scripts are not returning properly, but they've never been a problem under any other regime. So, some concrete questions before I get involved in a lot of bit-twiddling in Tcl, which does not strike me as a good time: 1) What exactly happens, process-wise, when GNNServer invokes a perl CGI script? 2) How does it manage these threads, eg. if a CGI script seems to be running past some time limit, does it get shoved to a lower priority? Forgotten? 3) Are there special exit conditions/procedures that GNNServer is expecting? 4) Is there a way to configure for more efficient management of these things? 5) What did I miss here? Overall my impression is that CGI in perl is fine if you're just handling the odd interactive forms submission but that anything more serious is going to have problems -- please tell me I'm wrong about this. And BTW for a bunch of reasons too long to detail here it's not practical to switch these searches over to the built-in text whacker. TIA for any help, Tb. (who is anxious not to port this to Tcl) -- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | Thomas R. Bruce trb2@cornell.edu | | Cornell Law School Vox: 607-255-1221 | | Ithaca, NY 14853 | | "Sometimes you make progress just learning how to get your mind | | right" -- P.J. Plauger | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ ========================================================================= Date: Fri, 21 Jun 1996 15:01:32 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Gaute Amundsen Subject: Illustra keys?? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sorry, but I seem to have miss placed the "free" license keys that came with the latest release. Since the old ones allowed me to use IQT I have used them until now, but now I have to make sure the server survives the end of june while I am away on holiday. Could someone please mail me the necessary keys? gaute -- ----------------------------------------------------------- Gaute Amundsen Grafisk InterLink TCL/CGI & Drift Din kurs leverandor gaute@gil.no www.GIL.no ----------------------------------------------------------- ========================================================================= Date: Fri, 21 Jun 1996 11:35:21 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Alex Finkel Subject: Problem with Naviserver 2.0 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi all, I'm having some trouble with Naviserver 2.0 on Sparc Solaris 2.4. Our nsd processes have on occasion been dying and leaving behind a core file. Doing an "adb core" usually tells me that nsd died because of a SIGBUS or a SIGSEGV. When I try and use Proctool to analyze the memory map of the nsd process, Proctool itself will die and coredump due to a SIGSEGV. This is reproducable every time I try this. This only happens when I try to look at nsd; no other processes do this. This leads me to believe that a problem with nsd's use of memory is causing a segment violation in itself and in proctool when I try to look at nsd. I tried to use truss with nsd, but as soon as nsd is done loading, the initial nsd process exits and truss stops. I then did a truss on proctool and tried to look at the memory map for the nsd process. Below is the tail of the truss output from proctool, right before it died. Is this a problem in 2.0 and would the latest GNN release fix the problem? Also, is there a way to truss the nsd process while it is running? Thanks in advance. - Alex ------- (output from truss of proctool v.2.4.3) --------- . . . poll(0xEFFFB728, 1, -1) = 1 read(8, "\f\017 5\0 01 K\0\n\003".., 32) = 32 read(8, "16\01790\0 01 I\0 01 I".., 32) = 32 read(8, "\f 51790\0 01 H\0AC\0 J".., 32) = 32 read(8, "\f\01790\0 01 H\0A8\0 N".., 32) = 32 read(8, "\f\01790\0 01 I\0\0\0\0".., 32) = 32 read(8, "\f\01791\0 01 I\0\0\0\0".., 32) = 32 read(8, "010317A2\0\0\0\0\0 01 <".., 32) = 32 brk(0x000E7120) = 0 brk(0x000E9120) = 0 write(8, " 801\004\0 \0 "\0\0\b\0".., 2048) = 2048 write(8, " ;\0\005\0 \0 !\0\0\0\0".., 2000) = 2000 write(8, " R\0 E E 2 0 8 0 0 0 ".., 2048) = 2048 write(8, " F\0\005\0 01 <\0 \0 !".., 2040) = 2040 write(8, " J\0\019\0 01 <\0 \0 !".., 2044) = 2044 write(8, " 8\0\005\0 \0 !\0\0\0\f".., 2028) = 2028 writev(8, 0xEFFFD518, 2) = 2056 write(8, " F\0\005\0 01 <\0 \0 !".., 1972) = 1972 write(8, " R\0 E D B 0 1 0 0 0 ".., 2040) = 2040 write(8, " 8\0\005\0 \0 !\0\0\0\f".., 2028) = 2028 Incurred fault #5, FLTACCESS %pc = 0x0002B8EC siginfo: SIGBUS BUS_ADRALN addr=0x45432012 Received signal #10, SIGBUS [caught] siginfo: SIGBUS BUS_ADRALN addr=0x45432012 Incurred fault #6, FLTBOUNDS %pc = 0x00016584 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 Received signal #11, SIGSEGV [caught] siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 Incurred fault #6, FLTBOUNDS %pc = 0x00016584 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 *** process killed *** -- (( / \ )) | Alex Finkel | 26 Landsdowne St. | Macintosh, Jr. / \ | Network Manager | University Park at MIT | / \ | PFN, Incorporated | Cambridge, MA 02139 | The power to crush / P F N \ | afinkel@pfn.com | http://www.pfn.com/ | the other kids. ========================================================================= Date: Fri, 21 Jun 1996 12:04:21 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Gary A. Huber" Subject: Re: Is there any way for me to automatically save every page within a miniweb? Comments: cc: rlangdon@mitre.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:15 PM 4/26/96 -0700, you wrote: >>One of the reasons that I would prefer this is that we've experienced >>some strange problems with saving from gnnpress to gnnserver. Part of >>the problem is that when we use our web proxy, we can't save to >>gnnserver at all .. I'm not sure if that's gnn's fault or our >>webproxy's fault. Another problem separate from the proxy business is >>that files too deep in the file heirarchy seems not to want to be >>saved. I'm not sure why. Also .. sometimes editing in gnnpress >>(gnnpress sunos version 1.1) it's really really slow .. I can actually >>see each and every letter being highlighted and then deleted as I >>press delete a couple of times. If these problems were addressed, I >>would not mind using gnnpress all the time to do editing and what not. >> >>Thanks. > >We intend the MiniWeb to provide this function. You can webize directory >structures and then Save them to a server. > >I have heard (but no first hand experience) that the Cern server acting as >a proxy will not, by default, proxy PUT requests but than it can be changed >to allow proxy of PUTS. I don't know if this involves just editing a config >file or if it actually involves hacking the server. > We here have been experiencing similar problems trying to update a GNNServer through a CERN Proxy firewall, we are currently looking at configuration file changes to solve the PUT issue. We also have a problem in that the proxy does not recognize the "BROWSE" method as valid and gives back an error. I realize this may be more of a CERN question, but has anyone out there been able to configure a CERN proxy such that full GNNServer capabilities exist? Any help would be appreciated... Gary Huber The MITRE Corporation (301) 669-4380 ========================================================================= Date: Fri, 21 Jun 1996 09:50:41 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kireau Kendrick Subject: GNNServer SSL module for Intel NT In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Is there any word on when the SSL module will be available for Intel NT platform of GNNServer? Kireau Kendrick ========================================================================= Date: Fri, 21 Jun 1996 11:15:01 -0600 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: jyu@novatel.ca Subject: Disable Directory Browsing Is there any way to disable directory browsing in GNN Server 2.03? Thanks for any help. Jacky Yu jyu@novatel.ca ========================================================================= Date: Fri, 21 Jun 1996 11:28:55 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: CGI/Perl performance tweaking/enhancement. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, I'm assuming you're running GNNserver 2.04 on SunOS. I just took a look at the CGI code in the GNNserver and there's nothing obviously wrong, i.e., we're not falling through a switch somewhere and forgeting to do the waitpid() which would lead to zombie processes. However, I also just looked at the pthreads library code used on SunOS and it's possible it's being overwhelmed by too many processes. This isn't surprising given what it has to do in this user-space implementation of threads. Basically it has to turn all blocking waitpid's into non-blocking waitpid's. When a waitpid would block, the thread is put to sleep. At the same time, the library is always waiting on SIGCHLD. When SIGCHLD arrives, the library stops whatever it's doing and schedules all threads waiting in waitpid to wakeup. The next time the threads library context switches it has to wakeup all these threads to issue the waitpid's again and in the most likely case only one thread will actually return with status to move on. This is quite a bit of load and it's possible it's simply falling behind. In addition, I saw that the library uses signal() on Sun4 instead of sigaction(). This is an additional complication because signal() does not ensure signals are always caught like sigaction(). Now I can't say this is your problem but I am suspicious. But there's one more thing I have to say: There will be no fix forthcoming because, like the Linux and FreeBSD ports which also use this buggy pthreads library, we have no plans to continue development of the SunOS port. If possible you should migrate to Solaris which is a fully supported platform based on an excellent kernel-based threads interface integrated into the core operating system. However, before giving up with the 2.04 release you can try setting the undocumented "Limit" parameter of the CGI interface. The Limit parameter causes threads to wait on a semaphore before setting up all the expensive CGI state (the pipes, file, processes, and what not). It's set in the nscgi configuration section, e.g.: [ns/server/myserver/module/nscgi] limit=5 Of course this means you'll be handling fewer simultaneous CGI requests but this might not be noticble to your end users. Set it to something small like 5 and, if the problem goes away, steadly increase it until you start getting zombies again. Let me know if this works for you. One other thing to consider: If you move your code to Tcl but your Tcl script ends up calling "exec" to execute external programs you'll be back were you started. To realize performace gain you have to eliminate the expense of forking which typically means accessing remote server process over the network or through pipes setup at startup. This is a bit involved but the performance gain is dramatic. Cheers, -Jim At 05:41 AM 6/21/96 -0400, Thomas R. Bruce wrote: >Folks: > >We run a site with moderately high volume (~= 1/2 million hits/week) >which makes extensive use of various customized CGI scripts for searching >WAISindexes, some of which are fairly large in size (eg. all the Supreme >Court decisions for the last five years). We are eager to use GNNserver >as our primary production server, but thus far every time we've tried to >test it in full production it's been overwhelmed by load, specifically by >its inability to run these various CGI-based searches. The search >scripts themselves are written in perl and operate directly on the WAIS >databases (meaning they're not in turn invoking something like waisq or >waissearch). Oh yeah, we're also SunOS4.1.4 > >I can tell very little about what's actually going on beyond what I can >see from top or ps, but it seems that GNNserver just doesn't manage these >very well -- it seems to fork them and then forget about them; I watched >the machine go from zero to seventy of these hanging around in the >process table in about 10 minutes one morning; at first it was handling >them just fine and then rapidly got overwhelmed. The server log shows a >lot of "can't fork() that" messages. It may be that the scripts are not >returning properly, but they've never been a problem under any other regime. > >So, some concrete questions before I get involved in a lot of >bit-twiddling in Tcl, which does not strike me as a good time: > >1) What exactly happens, process-wise, when GNNServer invokes a perl CGI >script? > >2) How does it manage these threads, eg. if a CGI script seems to be >running past some time limit, does it get shoved to a lower priority? >Forgotten? > >3) Are there special exit conditions/procedures that GNNServer is expecting? > >4) Is there a way to configure for more efficient management of these things? > >5) What did I miss here? > >Overall my impression is that CGI in perl is fine if you're just handling >the odd interactive forms submission but that anything more serious is >going to have problems -- please tell me I'm wrong about this. > >And BTW for a bunch of reasons too long to detail here it's not practical >to switch these searches over to the built-in text whacker. > >TIA for any help, >Tb. (who is anxious not to port this to Tcl) > >-- >+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ >| Thomas R. Bruce trb2@cornell.edu | >| Cornell Law School Vox: 607-255-1221 | >| Ithaca, NY 14853 | >| "Sometimes you make progress just learning how to get your mind | >| right" -- P.J. Plauger | >+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ > > _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Fri, 21 Jun 1996 12:31:41 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Problem with Naviserver 2.0 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, There are many important bug fixes in GNNserver 2.031. Please upgrade by downloading from: http://www.tools.gnn.com/server/download.html Cheers, -Jim At 11:35 AM 6/21/96 -0400, Alex Finkel wrote: >Hi all, > >I'm having some trouble with Naviserver 2.0 on Sparc Solaris 2.4. > >Our nsd processes have on occasion been dying and leaving behind a core >file. Doing an "adb core" usually tells me that nsd died because of a >SIGBUS or a SIGSEGV. > >When I try and use Proctool to analyze the memory map of the nsd process, >Proctool itself will die and coredump due to a SIGSEGV. This is >reproducable every time I try this. This only happens when I try to look at >nsd; no other processes do this. This leads me to believe that a problem >with nsd's use of memory is causing a segment violation in itself and in >proctool when I try to look at nsd. > >I tried to use truss with nsd, but as soon as nsd is done loading, the >initial nsd process exits and truss stops. I then did a truss on proctool >and tried to look at the memory map for the nsd process. Below is the tail >of the truss output from proctool, right before it died. > >Is this a problem in 2.0 and would the latest GNN release fix the problem? > >Also, is there a way to truss the nsd process while it is running? > >Thanks in advance. > >- Alex > >------- (output from truss of proctool v.2.4.3) --------- >. >. >. >poll(0xEFFFB728, 1, -1) = 1 >read(8, "\f\017 5\0 01 K\0\n\003".., 32) = 32 >read(8, "16\01790\0 01 I\0 01 I".., 32) = 32 >read(8, "\f 51790\0 01 H\0AC\0 J".., 32) = 32 >read(8, "\f\01790\0 01 H\0A8\0 N".., 32) = 32 >read(8, "\f\01790\0 01 I\0\0\0\0".., 32) = 32 >read(8, "\f\01791\0 01 I\0\0\0\0".., 32) = 32 >read(8, "010317A2\0\0\0\0\0 01 <".., 32) = 32 >brk(0x000E7120) = 0 >brk(0x000E9120) = 0 >write(8, " 801\004\0 \0 "\0\0\b\0".., 2048) = 2048 >write(8, " ;\0\005\0 \0 !\0\0\0\0".., 2000) = 2000 >write(8, " R\0 E E 2 0 8 0 0 0 ".., 2048) = 2048 >write(8, " F\0\005\0 01 <\0 \0 !".., 2040) = 2040 >write(8, " J\0\019\0 01 <\0 \0 !".., 2044) = 2044 >write(8, " 8\0\005\0 \0 !\0\0\0\f".., 2028) = 2028 >writev(8, 0xEFFFD518, 2) = 2056 >write(8, " F\0\005\0 01 <\0 \0 !".., 1972) = 1972 >write(8, " R\0 E D B 0 1 0 0 0 ".., 2040) = 2040 >write(8, " 8\0\005\0 \0 !\0\0\0\f".., 2028) = 2028 > Incurred fault #5, FLTACCESS %pc = 0x0002B8EC > siginfo: SIGBUS BUS_ADRALN addr=0x45432012 > Received signal #10, SIGBUS [caught] > siginfo: SIGBUS BUS_ADRALN addr=0x45432012 > Incurred fault #6, FLTBOUNDS %pc = 0x00016584 > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 > Received signal #11, SIGSEGV [caught] > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 > Incurred fault #6, FLTBOUNDS %pc = 0x00016584 > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 > Received signal #11, SIGSEGV [default] > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000010 > *** process killed *** >-- > (( / \ )) | Alex Finkel | 26 Landsdowne St. | Macintosh, Jr. > / \ | Network Manager | University Park at MIT | > / \ | PFN, Incorporated | Cambridge, MA 02139 | The power to crush > / P F N \ | afinkel@pfn.com | http://www.pfn.com/ | the other kids. > > _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Sat, 22 Jun 1996 16:35:19 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Jason Y. Chiang" Subject: Please help. In-Reply-To: <2.2.32.19960621130132.0035679c@ntws1.gil.no> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I happened to delete something from my database. How can I get them back? Please help me as much as you can. Thank you very much. Chiang ========================================================================= Date: Sun, 23 Jun 1996 00:54:56 +0000 Reply-To: james@plantaganet.com Sender: Web Development with GNNserver and GNN Hosting Service From: James Smallacombe Organization: PlantagaNet, Inc. Subject: access.log/Solaris prob. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello folks, I'm new to this list, so I apologize if this has been covered before. I have GNNserver 2.03 running under Solaris 2.5 and am having a slight problem with the virtual servers' access log. Although I have the log size limit set to 0, the access log stops showing new entries after only a few pages worth. I "fixed" this in one of the virtual hosts by deleting all of the entries. I tried this with several others with no luck. Any tips/clues would be appreciated. Along the same lines, I have a customer who'd like to view their log from their browser. Per someone else's advice, I created a symbolic link from the "pages" directory to the access.log. When I use that as a URL, Netscape just downloads it without displaying it. Is there a quick and easy way to do this? TIA ____________________________________________________________________ James Smallacombe Bucks County, PA PlantagaNet, Inc. Internet Access Providers james@plantaganet.com http://www.plantaganet.com "Slave, I have set my life upon a cast, and I will stand the hazard of the die." Richard III, V, v. ========================================================================= Date: Mon, 24 Jun 1996 12:48:30 BST Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ed Toner Subject: CGI scripts with GNNserver2.04 and SunOS4.1.3 I'm having two problems with cgi scripts. 1. If the script returns text over a certain amount (about 40 lines) the script hangs up and I have to go in and kill it off. The same script works fine if I reduce the output. (Its a perl script BTW) 2. If i try and exec or system from a perl script the same thing happens so I end up with loads of script processes filling up my machine. Any one any ideas whats up ? Cheers, Ed ========================================================================= Date: Mon, 24 Jun 1996 11:30:28 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: drill down Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:19 AM 6/19/96 -0400, you wrote: >Let's say I have a table with a,b,c.....z fields. Initially I want to >query on b,h,x and return a hit list of only these fields. For each row >returned, I want the user to be able to retrieve the complete row which >is to be formatted into a table with images (fields may contain image >file references). Also fields may contain foreign keys to other >tables. When data is returned such keys must become links to fetch >the data from those tables. How can I drill down like this?? I would >appreciate any help from the tcl gurus on the list. Bakki, I have set up several applications that have similar functionality. Most of them are based on the dynamic page module in the Developer's Corner: http://www.gnnhost.com/develop/code/index.htm The general approach for making a two-level or multi-level application is to get the oid (a unique row identifier) from the database, and include that in the link to the full data. You will want to set your SQL statement to "select *,oid from table" etc. Then, your template should include a link to the script that builds the complete row. The link should provide the oid to the second script. Here's an example template:

Some Brief Info: #name etc.
More Info Then, your "moreinfo" script could use the formdata to get the complete row in order to build the full-information page: "select * from table where oid = '$oid';" When I have a chance, I will extend the dynamic page module with a specific example of this approach. Cheers, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Mon, 24 Jun 1996 12:19:27 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: tcl and ns_return Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:36 PM 6/19/96 -0400, Ryan Houlette wrote: >proc mytest { conn context } { > ns_return $conn 200 >} > >gives me a server error. I'd like to be able to return a status >code from my script, but I don't want to return my page in the >ns_return statement. I'd rather use ns_write. Ryan, Philip Greenspun has written a nice little script called ReturnHeaders that does exactly what you want. It's part of his excellent utilities file, which is on demo.webho.com. I think the exact URL is: http://demo.webho.com/view-source.tcl?filename=/tcl/utilities.tcl Cheers, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Mon, 24 Jun 1996 11:17:53 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Cass Tyson Subject: Re: access.log/Solaris prob. Comments: To: James Smallacombe In-Reply-To: <31CC95E0.A8E@plantaganet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 23 Jun 1996, James Smallacombe wrote: > Along the same lines, I have a customer who'd like to view their log > from their browser. Per someone else's advice, I created a symbolic > link from the "pages" directory to the access.log. When I use that > as a URL, Netscape just downloads it without displaying it. Is there > a quick and easy way to do this? Clone the /ns/showlog script and make an /ns/accesslog script. Works for us. ------------------ Cass Tyson E-mail Voice Mail Corp: ctyson@netsmarts.com 410-859-4167 Acad: ctyson@ubmail.ubalt.edu 410-837-6022 Pers: ctyson@charm.net 410-602-1392 Info: 410-555-1212 ========================================================================= Date: Mon, 24 Jun 1996 09:26:43 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: John Mantegna Subject: Re: GNNServer SSL module for Intel NT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:50 AM 6/21/96 -0700, you wrote: >Is there any word on when the SSL module will be available >for Intel NT platform of GNNServer? > >Kireau Kendrick > > We plan to be sending it out by the end of this week. Keep an eye on http://www.tools.gnn.com/server/2.1news.html for the latest news. -John ______________________________________________ John Mantegna AOL Santa Barbara Vox:805-882-2350 511 Bath St. Fax:805-882-4316 Santa Barbara, CA 93101 ========================================================================= Date: Mon, 24 Jun 1996 10:00:00 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: LANDON_DICK@Tandem.COM Subject: ODBC question I am trying to connect to a remote sybase db and I get the following errors. I found that I have to make the data source as miadmin and sets up data sources local to a computer with System DSN. I can connect with a GQL client. Thanks for any help. naviserver.log [24/Jun/1996:08:51:53 -0700][93.99] Notice: Ns_DbOpenDb(navi_odbc_driver): Opening datasource: genesis1 [24/Jun/1996:08:51:53 -0700][93.99] Notice: SQLConnect(genesis1, Report_Writer, genesis) [24/Jun/1996:08:52:09 -0700][93.99] Error: ODBC message: SQLSTATE = 01000, Native err = 53, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen (CreateFile()).' [24/Jun/1996:08:52:09 -0700][93.99] Error: ODBC message: SQLSTATE = 08001, Native err = 6, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]Specified SQL server not found.' [24/Jun/1996:08:52:09 -0700][93.99] Notice: Ns_DbOpenDb(navi_odbc_driver): Opening datasource: genesis1 [24/Jun/1996:08:52:09 -0700][93.99] Notice: SQLConnect(genesis1, Report_Writer, genesis) [24/Jun/1996:08:52:25 -0700][93.99] Error: ODBC message: SQLSTATE = 01000, Native err = 53, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen (CreateFile()).' [24/Jun/1996:08:52:25 -0700][93.99] Error: ODBC message: SQLSTATE = 08001, Native err = 6, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]Specified SQL server not found.' [24/Jun/1996:08:52:25 -0700][93.99] Warning: Ns_DbInit(nsdb): Could not initialize pool: genesis ========================================================================= Date: Mon, 24 Jun 1996 19:03:17 +0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Howard Jones Subject: Re: GNNServer SSL module for Intel NT In-Reply-To: <199606241626.JAA04895@bast.navisoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 24 Jun 1996, John Mantegna wrote: > At 09:50 AM 6/21/96 -0700, you wrote: > >Is there any word on when the SSL module will be available > >for Intel NT platform of GNNServer? > > > >Kireau Kendrick > > > > > > We plan to be sending it out by the end of this week. > Keep an eye on http://www.tools.gnn.com/server/2.1news.html > for the latest news. > Will there be a non-US version? If so, how would I get it? Howard. -- Howard Jones Voss Net Plc. Internet: hjones@vossnet.co.uk http://www.vossnet.co.uk/people/Howard/index.html ========================================================================= Date: Mon, 24 Jun 1996 15:41:05 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "George Fike Jr." Subject: Chat Room done in Tcl Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Morning All, Well, this weeks project at OBI (www.outer-banks.nc.us) is the creation of a chat room on the Web using tcl scripts. I've seen this done, and am in possesion of, this same process being done in Perl...but I'ld like to do it with tcl scripts that access the our Illustra Database. If there is anyone out there who has already accomplished this, and you would like to share/sell your code, please e-mail me at sjordie@interpath.com. Otherwise I plan to start on this task Tues am. I was thinking of taking the following approach; Using frames, divide the screen into (1) a message board and (2) an input text area with a submit button. The bottom frame is created by a script (chatpage.tcl)that when POSTed to, accesses a table called 'chat' and then updates the table so that row 1 is replaced by row2, row 2 is replaced by row 3 and so on until the text input from the form updates row 10 (or however many rows of text we want to show on the message screen at one time.) When it finishes this process it regenerates the input form to be placed in the bottm frame to start it all over again. The top frame would be updated every x number of seconds (using the metarefresh tag?) and would be built from the information in the 'chat' table with row 1 being at the top of the screen and row 10 at the bottom. This table would have two columns, 'user_handle' and 'message'. I would think the definition tags would work nicely for formatting this output. Which brings me to the problem of how you show the user_name. Too many people aren't comfortable w/ their e-mail address or IPN or anything else that they KNOW you are pulling from the connection being used....so; Before they enter the chat page/room you have them register a user name, which gets submitted to a database in a two column table labled 'chatters' and whose columns are 'e_mail_address' (or ipn_number, which ever is easier to pull out of the connections. Thought=e-mail addresses are static while many ipns are dynamic) and 'user_handle'. Now whenever the user submits a row of text into the 'chat' table, chatpage.tcl pulls out the 'user_handle' out by doing a search on 'e_mail_address' in the 'chatters' table. The 'user_handle' is then input into the proper row and column in the 'chat' table (row 10 column 1). A third frame could run along the right side of the screen listing the 6 most recent posters (handles) to the chat page. Now, I know that this doesn't compete in any way with mIRC and that is not my intent. I'm just looking for a way for clients to incorperate low volume chat rooms into their sites that are idiot proof and that can be done from their browser window. I'll be in mIRC Tues from 11am until at least 3 pm est on the undernet server (try dallas.tx.us.undernet.org or blacksburg.va.us.undernet.org if your not familar with mIRC) in the #outerbanks room if anyone wants to stop by to share ideas and brain storm on this. The above message shows the extent of the effort I have put into this so far...the overall picture and the schematic have been mapped out...but I'm waiting to hear if this is already available before I write any code. If this already available to the public, and there is something else that someone can think of that would be enjoyed by all, stop by mIRC tomorrow for a sharing session. Thanks all, Jordie ========================================================================= Date: Mon, 24 Jun 1996 11:34:38 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Gustafson Subject: Re: Postgres /Gnn initialisation on Linux In-Reply-To: <2.2.32.19960620200418.0096cad0@199.221.53.18> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 20 Jun 1996, Jim Davidson wrote: > At 01:47 PM 6/20/96 -0400, Malte Sussdorff wrote: > >>There are presently no plans for a 2.1 port to Linux, FreeBSD, or SunOS > >>(that's SunOS 4.1.x, not Solaris which is supported). These three ports > >>rely on a third party beta implementation of Posix threads which is quite > >>buggy, making the port very difficult. > > > >If this problem (posix threads buggy under linux) is taken care of, would it > >be easier for you to make a Linux release ? > > > Yes - if pthreads were bug-free and integrated into Linux at the library and > header file level the port would be relatively easy. Perhaps Linux will be > at this state a year or so from now. I won't be watching so if things do > take a turn for the better send me a note and I'll take another look. For > now, Solaris is the Unix OS to use with Intel hardware. It seems the only problem is the buggy part. My RedHat 3.0.3 release has a libc.so that has pthread stuff in it. Did you happen to check out the PCthreads POSIX .1c project for Linux (http://www.aa.net/~mtp/PCthreads.html)? Here's a quote: "To accomplish this, I found it necessary to develop a POSIX and DCE-compatible multithreading library for Linux (DCE is heavily threaded). For more information about the library, or to obtain the package, click >> here. " Is the stability any better than MIT's project? --- Jeffrey Gustafson jeffgus@packardbell.com Technical Resources Packard Bell Electronics, Inc. ========================================================================= Date: Mon, 24 Jun 1996 13:13:00 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: LANDON_DICK@Tandem.COM Subject: ODBC FAQs? Comments: To: doug@tools.gnn.com Doug, I was wondering when this might be available? Also, per our conversation last thursday here is the server log trying to connect to a Tandem NonStop SQL using the Tandem 32 bit driver on a NT and using nsodbc.dll in the database pool. Ns_DbOpenDb(navi_odbc_driver): Opening datasource: nssql1 [24/Jun/1996:10:49:33 -0700][94.99] Notice: SQLConnect(nssql1, srs.dickl, gstqam) [24/Jun/1996:10:49:35 -0700][94.99] Notice: Ns_DbOpenDb(navi_odbc_driver): Opening datasource: nssql1 [24/Jun/1996:10:49:35 -0700][94.99] Notice: SQLConnect(nssql1, srs.dickl, gstqam) NaviServer database services shows the pool but when I query is just says....waiting for reply...and I don't get the listing of tables?? I'm thinking I need to pass some additional parameters in the set-up. As I told you before, I have successful queried using the same connection and Microsoft Query. Also, has anyone connected to a sybase using Microsoft SQL Server (sqlsrv32.dll)? I tried and got this results. I get the same errors in Microsoft Query. [24/Jun/1996:10:49:36 -0700][94.99] Notice: Ns_DbOpenDb(navi_odbc_driver): Opening datasource: genesis1 [24/Jun/1996:10:49:36 -0700][94.99] Notice: SQLConnect(genesis1, Report_Writer, genesis) [24/Jun/1996:10:49:52 -0700][94.99] Error: ODBC message: SQLSTATE = 01000, Native err = 53, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen (CreateFile()).' [24/Jun/1996:10:49:52 -0700][94.99] Error: ODBC message: SQLSTATE = 08001, Native err = 6, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]Specified SQL server not found.' [24/Jun/1996:10:49:52 -0700][94.99] Notice: Ns_DbOpenDb(navi_odbc_driver): Opening datasource: genesis1 [24/Jun/1996:10:49:52 -0700][94.99] Notice: SQLConnect(genesis1, Report_Writer, genesis) [24/Jun/1996:10:50:08 -0700][94.99] Error: ODBC message: SQLSTATE = 01000, Native err = 53, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen (CreateFile()).' [24/Jun/1996:10:50:08 -0700][94.99] Error: ODBC message: SQLSTATE = 08001, Native err = 6, msg = '[Microsoft][ODBC SQL Server Driver][dbnmpntw]Specified SQL server not found.' [24/Jun/1996:10:50:08 -0700][94.99] Warning: Ns_DbInit(nsdb): Could not initialize pool: genesis Thanks Dick Landon Tandem Computers ps- It would mean alot around Tandem if I could get the GNNserver/Illustra sysadim to work via ODBC with Tandem's NSSQL. ------------ ORIGINAL ATTACHMENT -------- SENT 05-21-96 FROM SMTPGATE (doug@NAVISOFT.COM) >>>>> "Justin" == Justin Newnam writes: Justin> I'm currently having problems in connecting the GNNserver Justin> running under WindowsNT to an ODBC database. I'm using Justin> GNNserver 2.3 with the upgrade. Justin> As a test of the system I created a simple Excel Justin> Spreadsheet, and used the ODBC-32 icon under the control Justin> panel to reference the file using the XLS driver. This was Justin> done for my login (jnewnam), and the database source was Justin> called 'test'. Justin> When starting the server, the log file gives the Justin> following: Justin> [] Notice: Ns_ModuleSymbol: Loading module file: Justin> c:/gnn/server/bin/nsshtml.dll [] Notice: Justin> Ns_ModuleLoad(ferdinand): Loading module: nsdb.dll [] Justin> Notice: Ns_ModuleSymbol: Loading module file: Justin> c:/gnn/server/bin/nsdb.dll [] Notice: Ns_ModuleLoad(odbc): Justin> Loading module: nsodbc.dll [] Notice: Ns_ModuleSymbol: Justin> Loading module file: c:/gnn/server/bin/nsodbc.dll [] Justin> Notice: Ns_DbOpenDb(odbc): Opening datasource: test [] Justin> Notice: SQLConnect(test, jnewnam, ) [] Error: ODBC Justin> message: SQLSTATE = IM002, Native err = 0, msg = Justin> '[Microsoft][ODBC Driver Manager] Data source name not Justin> found and no default driver specified' [] Warning: Justin> Ns_DbInit(nsdb): Could not initialize pool: test [] Justin> Notice: SockStart(ferdinand, nssock): Listening on: Justin> http://ferdinand.armltd.co.uk Justin> Note, I have removed the time and date info. I'm actually going out of town for the next few weeks, but when I get back one of my first orders of business is to setup a FAQ for this list and get the list contents archived and searchable. You need to do one of two things: 1. Define your datasource as a System datasource; if you don't have a button for this in your ODBC-32 Administrator, you've got an old version. OR 2. Specify that the GNNserver service login as you; do this through the services control panel. doug -- ---------------------------------------------------------------- Doug McKee America Online, Inc. Email: doug@tools.gnn.com 511 Bath Street Voice: (800) 529-9166 Santa Barbara, CA (805) 882-2350 93101 Fax: (805) 899-4316 http://www.tools.gnn.com ---------------------------------------------------------------- ========================================================================= Date: Tue, 25 Jun 1996 11:27:12 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Martin Hadersbeck Subject: GNNSERVER and Postgres under LINUX - HOW? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all I tried to connect a POSTGRES95 database with GNNSERVER under LINUX 2.0. All the neccessary modules are loaded but whenever I try to start the server with this configuration, it can not connect to my database. The server logfile says "localhost:mydb malformed datasource". Maybe I did not define the datasource correctly. I defined it as localhost:mydb. So if anyone out there can tell me exactly how to set up a database and use it with GNNSERVER, that would be great. Thanks in advance. Martin ========================================================================= Date: Mon, 24 Jun 1996 11:51:05 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: Please help. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 04:35 PM 6/22/96 -0400, Jason Y. Chiang wrote: >I happened to delete something from my database. How can I get them back? >Please help me as much as you can. Thank you very much. Hello, If you haven't vacuum'ed your database yet, you should be able to get at the old data using Illustra "time travel". For example, select * from mytable@[date '1996-06-20'] should give you a look at the table as it existed on June 20th. This works until you vacuum your database which removes all the historical data. -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Mon, 24 Jun 1996 12:48:18 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: John Mantegna Subject: Re: GNNServer SSL module for Intel NT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:03 PM 6/24/96 +0100, you wrote: >Will there be a non-US version? >If so, how would I get it? > >Howard. > >-- >Howard Jones >Voss Net Plc. >Internet: hjones@vossnet.co.uk >http://www.vossnet.co.uk/people/Howard/index.html > We do plan on providing an exportable version of our SSL module. Unfortunately, we've been experiencing unexpected delays in the approval process, but when our SSL module is approved for export, we'll make it available for download from our website. Keep an eye on http://www.tools.gnn.com/server/2.1news.html for the latest news. -John ______________________________________________ John Mantegna AOL Santa Barbara Vox:805-882-2350 511 Bath St. Fax:805-882-4316 Santa Barbara, CA 93101 ========================================================================= Date: Mon, 24 Jun 1996 11:43:28 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: CGI scripts with GNNserver2.04 and SunOS4.1.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:48 PM 6/24/96 BST, Ed Toner wrote: >I'm having two problems with cgi scripts. > >1. If the script returns text over a certain amount (about 40 lines) > the script hangs up and I have to go in and kill it off. The > same script works fine if I reduce the output. (Its a perl script BTW) > >2. If i try and exec or system from a perl script the same thing happens > so I end up with loads of script processes filling up my machine. > > >Any one any ideas whats up ? Hello, I think the underlying threads interface on SunOS is failing to wakeup the process when output from the client fills the CGI pipe. Perhaps varying the size of the reads from the pipe will keep it flowing. You can do this by setting the BufferSize parameter - the default is 8k. Try something small, like 1024 (1k) or something huge like 32k. The variable is set in the CGI module section, e.g.,: [ns\server\server1\module\nscgi] buffersize=1024 You could also try setting the Debug parameter to "on". This will copy all CGI I/O to cgi* files in the /var/tmp directory (make sure you don't leave Debug on and fill up the /var/tmp disk!). -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 25 Jun 1996 12:32:23 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Frank Cusack Subject: disable directory indexing? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Is it possible to disable directory indexing totally? If a user doesn't have an index.html (or whatever is specified as DirectoryFile) GNNserver (UNIX) automatically generates an index. That's just plain silly; there should be a configurable paramter to enable/disable it. It is not feasible for me to create an empty index.html file in all directories I don't want indexed. Am I going to have to go back to Apache? thanks, Frank ========================================================================= Date: Tue, 25 Jun 1996 12:17:49 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: disable directory indexing? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:32 PM 6/25/96 -0400, Frank Cusack wrote: >Is it possible to disable directory indexing totally? If a user doesn't >have an index.html (or whatever is specified as DirectoryFile) GNNserver >(UNIX) automatically generates an index. That's just plain silly; there >should be a configurable paramter to enable/disable it. > >It is not feasible for me to create an empty index.html file in all >directories I don't want indexed. GNNserver 2.1 supports "None" in addition to "Simple", "Fancy", and "Stats" as an option for DirectoryListing. >Am I going to have to go back to Apache? GNNserver tries to be a good general purpose Web server with all the features common to Apache, NCSA, and Netsite. But the truth of the matter is Apache is still a better Apache than GNNserver. If you're not taking advantage of the features unique to GNNserver (like network save from GNNpress, Tcl scripts and database pools) than maybe you should go back. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 25 Jun 1996 12:24:25 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: CGI scripts with GNNserver2.04 and SunOS4.1.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:43 AM 6/24/96 -0700, Jim Davidson wrote: >At 12:48 PM 6/24/96 BST, Ed Toner wrote: >>I'm having two problems with cgi scripts. >> >>1. If the script returns text over a certain amount (about 40 lines) >> the script hangs up and I have to go in and kill it off. The >> same script works fine if I reduce the output. (Its a perl script BTW) >> >>2. If i try and exec or system from a perl script the same thing happens >> so I end up with loads of script processes filling up my machine. >> >> >>Any one any ideas whats up ? > > >Hello, > >I think the underlying threads interface on SunOS is failing to wakeup the >process when output from the client fills the CGI pipe. Perhaps varying the >size of the reads from the pipe will keep it flowing. You can do this by >setting the BufferSize parameter - the default is 8k. Try something small, >like 1024 (1k) or something huge like 32k. The variable is set in the CGI >module section, e.g.,: > >[ns\server\server1\module\nscgi] >buffersize=1024 > >You could also try setting the Debug parameter to "on". This will copy all >CGI I/O to cgi* files in the /var/tmp directory (make sure you don't leave >Debug on and fill up the /var/tmp disk!). Hello, Someone else reported the same problem so I finally took a closer look. Here's what I found: The bug you discovered had nothing to do with GNNserver but instead was in the pthread library we compiled GNNserver with. Pthreads somehow breaks fcntl(F_SETFD) meaning that all the files we carefully mark to be close-on-exec in fact stay open after execve(). In your case this was breaking the Ns_ExecProcess function which is used to spawn child processes. Specifically, Ns_ExecProcess uses a pipe to send any error message from the child to the parent if there are problems dup'ing files about or if the actual execve() fails (e.g., a bad program file or missing interpreter file). The parent does a blocking read on the other end of this pipe, expecting it to close after the execve() in the child. Since there was no close, the parent read never returned and you ended up with a deadlock as soon as the stdout pipe the child process was using filled up (4k is the buffer size of a pipe on SunOS). The good news is I've compiled a hacked nsd binary you can download which works around this problem. What I did was add an explict close before the execve for SunOS. This isn't exactly right but it's good enough to let you run CGI's with unlimited output. You can grab this modified nsd binary at: ftp://gnnserver@ftp.tools.gnn.com/gnnserver/nsd2.04b77sun4.Z The bad news is this will likely be the last fix of any kind for SunOS. It's bugs like this which keep popping up in that horrid pthreads library which has lead us to realize SunOS simply can't support a true multithreaded application such as GNNserver. We are recommending all SunOS customers upgrade to Solaris before the 2.1 release. GNNserver runs great on Solaris. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Tue, 25 Jun 1996 12:27:41 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jim Davidson Subject: Re: GNNSERVER and Postgres under LINUX - HOW? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:27 AM 6/25/96 +0200, Martin Hadersbeck wrote: >Hello all > >I tried to connect a POSTGRES95 database with GNNSERVER under >LINUX 2.0. >All the neccessary modules are loaded but whenever I try to >start the server with this configuration, it can not connect >to my database. The server logfile says "localhost:mydb malformed >datasource". >Maybe I did not define the datasource correctly. I defined it as >localhost:mydb. > >So if anyone out there can tell me exactly how to set up a database and >use it with GNNSERVER, that would be great. Hello, The datasource for Postgres is "host:port:database", for example, "localhost:5432:mydb". For details, take a look at the code; it's in examples/c/postgres/postgres.c. Cheers, -Jim _______________________ Jim Davidson jimbo@sb.aol.com Voice: (805) 882-2350 Fax: (805) 899-4316 ========================================================================= Date: Wed, 26 Jun 1996 09:10:51 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeff Rawlings Subject: Re: nsperm modual on gnnserver. How do you configure it? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:33 AM 6/18/96 +1000, you wrote: >Hi. > >I have been trying to configure the GNNServer for some time now. My first >problem was getting cgi's to work, everytime I execute one it would ask me >for a login and password. I fixed this by removing the nsperm modual, but >that's not good enough. In the documentation it describes how you can >configure the users and password protect on directories, but on the version >2.0.3 for Solaris 2.4 dosn't have any link to the pages described in the >documentation. If you remove the nsperm module in the setup server, the link to the permissions configuration pages will disappear as well. I think you need to go to the setup server and add the permissions module back to your virtual server. Then, restart the server, go to your virtual server's /NS/Admin page, and go to the Access Control link. You can then add a permission record to set POST of your cgi URLs to "No restriction on users" and "no restriction on groups". Cheers, Jeff Rawlings rawlings@gnnhost.com Webmaster, GNN Hosting Service http://www.gnnhost.com/ Moderator, gnnhost-l and gnndeveloper-l For inquiries about Web Hosting, send email to ========================================================================= Date: Tue, 25 Jun 1996 22:25:10 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Jason Y. Chiang" Subject: Please help. In-Reply-To: <2.2.32.19960624185105.0096948c@199.221.53.18> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Recently our server gets a lot of hits, especially simultaneous requests. And most (almost all) of the requests are database action (SELECT). The following error always happen once in awhile in Server.Log: Database operation "dml" failed (exception S1002, "XS1002:Deadlock: transaction aborted, all commands ignored until end transaction") And in Illustra miserver.log: server 25471:Tue Jun 25 22:07:34:W01M03:warning: bad transaction state: not inside a transaction block server 25468:Tue Jun 25 22:07:35:XS1002:Deadlock: transaction aborted, all commands ignored until end transaction server 25474:Tue Jun 25 22:08:35:XS1002:Deadlock: transaction aborted, all commands ignored until end transaction server 25474:Tue Jun 25 22:09:25:X03I01:Operation interrupted server 25474:Tue Jun 25 22:09:25:W01M02:warning: not currently in a transaction server 25474:Tue Jun 25 22:09:25:W01M02:warning: not currently in a transaction server 25474:Tue Jun 25 22:09:25:W01M03:warning: bad transaction state: not inside a transaction block server 25471:Tue Jun 25 22:09:51:X03I01:Operation interrupted server 25471:Tue Jun 25 22:09:51:W01M02:warning: not currently in a transaction server 25471:Tue Jun 25 22:09:51:W01M02:warning: not currently in a transaction Experts. Please help me tune it up! ( I configure the server with maximum 50 threads and 30 database pool connections. And the server is a SGI Challenge with 32Mb RAM within GNN Hosting service. ) Thanks a lot! Jason Chiang ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jason Y. Chiang CyberSurfer Studios 22 West 19th Street New York, NY 10011 Tel: 212-807-7071 212-691-9117 Fax: 212-691-9203 www: http://sparky.cs.nyu.edu:12345 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ========================================================================= Date: Wed, 26 Jun 1996 01:58:20 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Malte Sussdorff Subject: Re: GNNSERVER and Postgres under LINUX - HOW? In einer eMail vom 25.06.1996 16:29:50, schreiben Sie: >to my database. The server logfile says "localhost:mydb malformed >datasource". >Maybe I did not define the datasource correctly. I defined it as >localhost:mydb. > > It should be localhost:port:mydb normally localhost:5432:mydb ========================================================================= Date: Wed, 26 Jun 1996 03:40:04 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Marco Coletti Subject: TrailerFindEnd ignored? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I'm running GNNServer 2.031 on Windows NT 3.51 sp4. The server seems to ignore the parameter TrailerFindEnd. No matter whether it is set to "On" or "Off", the server attaches the TrailerText AFTER the and tags (and NaviPress 1.1 does not display it). Ciao. -= MarCo =- ========================================================================= Date: Wed, 26 Jun 1996 03:20:07 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Marco Coletti Subject: Describe Page and Metadata? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I'm running GNNServer 2.031 on Windows NT 3.51 sp4. When I select Tools/Administer_Page/Describe, in NaviPress 1.1, I get: This server does not support "describing" pages. NaviPress really does a GET of /NS/GetMetaTables/..., and I'm unable to find any reference to "describing" or "metadata" in the server setup HTML pages. Nor I'm able to find it in GNNServer 2.0 online manual. I remember however there was some speaking about "metadata" in NaviServer 1.0 manual. Has this feature been taken out from GNNServer? I'm talking about some method to associate keywords with pages. Ciao. -= MarCo =- ========================================================================= Date: Tue, 25 Jun 1996 21:43:31 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Jeremy Hansen Subject: CGI Permissions with GNNserver 2.04 and Linux In-Reply-To: <199606250404.AAA15661@services.web.aol.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I'm using GNNserver 2.04 on a Linux machine and I cannot figure out how to set permissions for pages with cgi refernces, using POST methods. Also I have a page with the Count.cgi img reference for home page counters and everytime someone accesses pages with a CGI counter on it, it spawns a server process, a lot of them. I assume this is from the same permissions problem, but I'm kinda lost on this. Thanks for any help. Jeremy Hansen xxedgexx.com ========================================================================= Date: Wed, 26 Jun 1996 08:43:37 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Axel Rebai Subject: frontpage Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" hi i have a client who is using microsoft frontpage to make his web. but there is a pb with CGI. when you submit a form there is a frontpage error and GNN write in the log\serverlog file [26/Jun/1996:14:23:43 +0100][161.194] Warning: CGI '' returned non-zero exit status '1' is a solution to make frontpage supported by GNN? thank AXEL ________________________________________________________ Axel Rebai A.R.D.E.P Esplanade diderot 42300 Roanne France Tel 77 71 20 00 Fax 77 72 52 99 ________________________________________________________ ========================================================================= Date: Wed, 26 Jun 1996 16:11:34 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Ivar Ruyter Subject: www.tools.gnn.com permanently down ?! Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi ! Is my connection to US of A at fault or is www.tools.gnn.com on the blink ? Have been trying for days to lookup the status of gnnserver-2.1 for HPUX but no joy. Any news ? -- Ivar Ruyter ZFK/HZ Division Phone: 02461-61-2767 FAX: 02461-61-6435 Forschungszentrum Juelich GmbH E-Mail: I.Ruyter@kfa-juelich.de 52428 Juelich Germany Finger ivarr@troll.hz.kfa-juelich.de #include 4 PGP key, Encrypted Mail Welcome Common sense unfortunately isn't ========================================================================= Date: Wed, 26 Jun 1996 10:09:33 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Jason Hargreaves (by way of Jeff Rawlings )" <101737.3231@COMPUSERVE.COM> Subject: Image Maps Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I am having trouble editing image maps using GNNpress. When I click on a selected area when editing an image map to add a URL I always encounter an application error in NAVIPRES. I have tried this on several images and also when booting 'clean' without running unnecessary network drivers etc., so I assume it's not a memory problem. Help! Cheers. ========================================================================= Date: Wed, 26 Jun 1996 10:53:21 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Frank Cusack Subject: Re: disable directory indexing? In-Reply-To: <199606260404.AAA28238@services.web.aol.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > Date: Tue, 25 Jun 1996 12:17:49 -0700 > From: Jim Davidson > Subject: Re: disable directory indexing? > > At 12:32 PM 6/25/96 -0400, Frank Cusack wrote: > >Is it possible to disable directory indexing totally? If a user doesn't > >have an index.html (or whatever is specified as DirectoryFile) GNNserver > >(UNIX) automatically generates an index. That's just plain silly; there > >should be a configurable paramter to enable/disable it. > > > >It is not feasible for me to create an empty index.html file in all > >directories I don't want indexed. > > > GNNserver 2.1 supports "None" in addition to "Simple", "Fancy", and "Stats" > as an option for DirectoryListing. > Ahh.. excellent. I didn't see this anywhere is the release notes, so I didn't bother to download it. Perhaps it should be added? Or maybe I just missed it. ========================================================================= Date: Wed, 26 Jun 1996 13:13:04 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Cass Tyson In-Reply-To: <1.5.4.32.19960626012007.002e6c84@mbox.vol.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII A while ago there was a thread hereon about GNNserver 2.031 on NT 3.5 hanging or quitting periodically, but I don't recall seeing any solutions. I'm having a heck of a time keeping this thing running. Sometimes only the DB functions stop working, but static web pages continue to be served up fine. Sometimes one or more virtual servers stop completely, and others are unaffected. Sometimes (like today) the whole machine locks up and has to be physically switched off and on--this has happened 3 times now over the past 2 months. I'm at the end of my rope, and needless to say my virtual server clients are too. The pleasures of GNNPress editing are being offset by the frustration of a server that won't stay up. GNN/Illustra is virtually the only thing on this box, plus WFTPD, Perl 5, and other necessities. I'll listen to any an all suggestions from NT and/or GNNserver gurus out there. TIA ------------------ Cass Tyson E-mail Voice Mail Corp: ctyson@netsmarts.com 410-859-4167 Acad: ctyson@ubmail.ubalt.edu 410-837-6022 Pers: ctyson@charm.net 410-602-1392 Info: 410-555-1212 ========================================================================= Date: Fri, 17 May 1996 18:39:44 -0600 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: jyu@NOVATEL.CA Subject: Uploading File using HTML Form I am working on a document database. I want to use the browser to upload the document to the web server. I use the following HTML to do the upload.

On the server, I wrote a CGI script to save the incoming data to the file. Everything works OK except the upload file size cannot exceed 1 MB. If the file being uploaded is bigger than 1 MB, the browser complain that the "connection is reset by peer." I am running GNN Server 2.03 on 486DX2/66 with 16 MB RAM running Windows NT Workstation 3.51 with SP4. BTW, I use Delphi 2.0 to develop the script. Any help is appreciate! Jacky Yu jyu@novatel.ca ========================================================================= Date: Wed, 26 Jun 1996 20:19:24 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Kireau Kendrick Subject: Re: wincgi.tcl example & WebBoard ?? In-Reply-To: <199604130636.BAA27946@iway1.iw.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Did this bbs program ever get released? I am looking for something that will work on Intel WinNT. Thanks. Kireau Kendrick On Sat, 13 Apr 1996, Krish Menon wrote: > >We are very much in need of some kind of BBS on our system, > >and WebBoard seems to be the best choice by far, > > Currently in development (well, testing stages, actually) is ForumUlation > V1.0, a threaded, multi-user forum program exclusively for use with the GNN > Server. Its got all kindsa funky features, and interfaces with the Illustra > database to store and retrieve messages. It'll be out end of April/beginning > of May, and is absolutely free. :) Once debugged to a point I'm comfortable > with its release, I'll mail the archive to Doug, and see if he wants to post > it to the GNN Developer's Corner. ========================================================================= Date: Thu, 27 Jun 1996 11:17:00 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Krish Menon Subject: Re: wincgi.tcl example & WebBoard ?? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" No: We had a drive crash a while ago, and apparently, backups were done on that partcular system only once a month - (only 2 users on it); I lost most of the code -- haven't had the time to redo it yet. krish At 08:19 PM 6/26/96 -0700, you wrote: >Did this bbs program ever get released? I am looking for something >that will work on Intel WinNT. Thanks. > >Kireau Kendrick > >On Sat, 13 Apr 1996, Krish Menon wrote: > >> >We are very much in need of some kind of BBS on our system, >> >and WebBoard seems to be the best choice by far, >> >> Currently in development (well, testing stages, actually) is ForumUlation >> V1.0, a threaded, multi-user forum program exclusively for use with the GNN >> Server. Its got all kindsa funky features, and interfaces with the Illustra >> database to store and retrieve messages. It'll be out end of April/beginning >> of May, and is absolutely free. :) Once debugged to a point I'm comfortable >> with its release, I'll mail the archive to Doug, and see if he wants to post >> it to the GNN Developer's Corner. > > -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ========================================================================= Date: Thu, 27 Jun 1996 11:18:11 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Krish Menon Subject: Re: wincgi.tcl example & WebBoard ?? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Add on to previous message: I do suggest using PG's wwwboard. Its available at http://demo.webho.com/. krish At 08:19 PM 6/26/96 -0700, you wrote: >Did this bbs program ever get released? I am looking for something >that will work on Intel WinNT. Thanks. > >Kireau Kendrick > >On Sat, 13 Apr 1996, Krish Menon wrote: > >> >We are very much in need of some kind of BBS on our system, >> >and WebBoard seems to be the best choice by far, >> >> Currently in development (well, testing stages, actually) is ForumUlation >> V1.0, a threaded, multi-user forum program exclusively for use with the GNN >> Server. Its got all kindsa funky features, and interfaces with the Illustra >> database to store and retrieve messages. It'll be out end of April/beginning >> of May, and is absolutely free. :) Once debugged to a point I'm comfortable >> with its release, I'll mail the archive to Doug, and see if he wants to post >> it to the GNN Developer's Corner. > > -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ========================================================================= Date: Thu, 27 Jun 1996 09:01:25 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Liankui Sun Subject: Re: CGI setup on NT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I have the same problem on setup the perl scripts on NT machine, I do exactly the same procedure as Kireau, got same results. Any hints are much appreciated! At 01:35 PM 6/19/96 -0700, you wrote: >I am trying to configure the cgi module of gnnserver on a Win NT 3.51/FAT >server. I used gnnpress to load the module. I have configured the mapping >as such: > >Method URL Script directory >______________________________________________________ >POST /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ >GET /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ > >Then I place a perl script file called www.cgi in the script directory >above. I associate it with my perl.exe NTperl program in >c:\Perl5.000\perl.exe directory. I tested the perl script in DOS mode >by running perl www.cgi at my ms-dos prompt which ran fine without >any errors. I stopped and started GNNServer after the configuration. > >However, when I access the url, http://wineguide.com/cgi-bin/www.cgi , >I get a server error message saying "Forbidden The requested URL >cannot be accessed by this server. Can anyone tell me what I am >doing wrong? Thanks. > >Kireau > > ========================================================================= Date: Fri, 28 Jun 1996 09:06:58 -0500 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: "Peter M. Jansson" Subject: Indexing dynamically-generated pages Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I have some pages on a server which are generated by script using an Illustra database, and I would like them to appear in the text index. The pages come entirely from a script; there's no HTML file laying around (Illustra performance has been good enough to avoid this). I have tried doing an ad-hoc Tcl evaluation of: ns_textindex add /members/listing/general/20a9.208d.html which contains a perfectly good URL, but the server always give me the informative error "Could not index URL /members/listing/general/20a9.208d.html" What might make this work? Desperately seeking a clue, Pete. ------------- Peter M. Jansson petej@clickvision.com Click Interactive Visions, LLC. (410) 488-3690 Interactive WWW development services. ========================================================================= Date: Fri, 28 Jun 1996 14:52:19 +0300 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Demetris Papallis Subject: "Document contains no data" error MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, when trying to submit a form I get the error message "Document contains no Data", however I do insert data in all the fields. The CGI script behind the form is a perl script, and I did add /usr/bin/perl as a new interpreter in the GNN setup and restartted the server). This does look like a GNN server error and not a CGI script error. Any ideas??? thanx, demetris ======= ___ === === Demetris Papallis,System Administrator ====== / / / ___ ____ _/_ ==== Cylink Ltd. / EUnet Cyprus ===== /--- / / / / /___/ / ===== 504 Augousta House, 10 Stassandrou str. ==== /___ /___/ / / /___ /_ ====== Nicosia 1660, Cyprus === ======= demetris@Cyprus.EU.net == ==== ==== ======== http://www.Cyprus.EU.net ========================================================================= Date: Fri, 28 Jun 1996 00:58:40 -0400 Reply-To: philg@mit.edu Sender: Web Development with GNNserver and GNN Hosting Service From: Philip Greenspun Subject: Re: GNNDEVELOPER-L Digest - 26 Jun 1996 to 27 Jun 1996 Comments: cc: Kireau Kendrick , krish@iw.net In-Reply-To: <199606280402.AAA29458@services.web.aol.com> (message from Automatic digest processor on Fri, 28 Jun 1996 00:00:01 -0400) Date: Thu, 27 Jun 1996 11:17:00 -0500 From: Krish Menon Subject: Re: wincgi.tcl example & WebBoard ?? No: We had a drive crash a while ago, and apparently, backups were done on that partcular system only once a month - (only 2 users on it); I lost most of the code -- haven't had the time to redo it yet. Sounds like the same high quality sysadmin practices we have in place here at MIT.... Anyway, I don't see why my bboard system wouldn't work on NaviServer NT with an arbitrary SQL database in the back. You can play with it at http://demo.webho.com Philip p.s. Krish: feel free to build on my substrate if you don't want to start from scratch. At 08:19 PM 6/26/96 -0700, you wrote: >Did this bbs program ever get released? I am looking for something >that will work on Intel WinNT. Thanks. > >Kireau Kendrick > >On Sat, 13 Apr 1996, Krish Menon wrote: > >> >We are very much in need of some kind of BBS on our system, >> >and WebBoard seems to be the best choice by far, >> >> Currently in development (well, testing stages, actually) is ForumUlation >> V1.0, a threaded, multi-user forum program exclusively for use with the GNN >> Server. Its got all kindsa funky features, and interfaces with the Illustra >> database to store and retrieve messages. It'll be out end of April/beginning >> of May, and is absolutely free. :) Once debugged to a point I'm comfortable >> with its release, I'll mail the archive to Doug, and see if he wants to post >> it to the GNN Developer's Corner. > > -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ------------------------------ Date: Thu, 27 Jun 1996 11:18:11 -0500 From: Krish Menon Subject: Re: wincgi.tcl example & WebBoard ?? Add on to previous message: I do suggest using PG's wwwboard. Its available at http://demo.webho.com/. krish At 08:19 PM 6/26/96 -0700, you wrote: >Did this bbs program ever get released? I am looking for something >that will work on Intel WinNT. Thanks. > >Kireau Kendrick > >On Sat, 13 Apr 1996, Krish Menon wrote: > >> >We are very much in need of some kind of BBS on our system, >> >and WebBoard seems to be the best choice by far, >> >> Currently in development (well, testing stages, actually) is ForumUlation >> V1.0, a threaded, multi-user forum program exclusively for use with the GNN >> Server. Its got all kindsa funky features, and interfaces with the Illustra >> database to store and retrieve messages. It'll be out end of April/beginning >> of May, and is absolutely free. :) Once debugged to a point I'm comfortable >> with its release, I'll mail the archive to Doug, and see if he wants to post >> it to the GNN Developer's Corner. > > -krish -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> krish menon, webmaster - iway internet services |*| krish@iw.net * 140 n. phillips, suite #404, sioux falls sd 57102 |*| webstart@iw.net * telephone: (605) 331-4211 (w) (605) 331-6585 (h) |*| http://www.iw.net * <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ------------------------------ Date: Thu, 27 Jun 1996 09:01:25 -0700 From: Liankui Sun Subject: Re: CGI setup on NT I have the same problem on setup the perl scripts on NT machine, I do exactly the same procedure as Kireau, got same results. Any hints are much appreciated! At 01:35 PM 6/19/96 -0700, you wrote: >I am trying to configure the cgi module of gnnserver on a Win NT 3.51/FAT >server. I used gnnpress to load the module. I have configured the mapping >as such: > >Method URL Script directory >______________________________________________________ >POST /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ >GET /cgi-bin c:\GNN\Server\servers\server1\cgi-bin\ > >Then I place a perl script file called www.cgi in the script directory >above. I associate it with my perl.exe NTperl program in >c:\Perl5.000\perl.exe directory. I tested the perl script in DOS mode >by running perl www.cgi at my ms-dos prompt which ran fine without >any errors. I stopped and started GNNServer after the configuration. > >However, when I access the url, http://wineguide.com/cgi-bin/www.cgi , >I get a server error message saying "Forbidden The requested URL >cannot be accessed by this server. Can anyone tell me what I am >doing wrong? Thanks. > >Kireau > > ------------------------------ End of GNNDEVELOPER-L Digest - 26 Jun 1996 to 27 Jun 1996 ********************************************************* ========================================================================= Date: Fri, 28 Jun 1996 11:22:55 +0100 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Cass Tyson Subject: Re: "Document contains no data" error Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sorry about that first goof. Here's a real message: From the little I know about Perl and web servers, I'd say it looks like a script error rather than a server error. Have you tried running the script from the command line? If it works from there then your Perl's OK to a point, but the cgi aspect of it may still be lacking. Make sure the path to perl within the script is correct--that one tripped me up for awhile. good luck (in no way an expert,) Cass > when trying to submit a form I get the error message "Document contains >no Data", however I do insert data in all the fields. The CGI script behind the >form is a perl script, and I did add /usr/bin/perl as a new interpreter in the >GNN setup and restartted the server). > This does look like a GNN server error and not a CGI script error. Any >ideas??? > thanx, > demetris Cass Tyson NetSmarts EPS Inc. ctyson@netsmarts.com ========================================================================= Date: Fri, 28 Jun 1996 20:23:25 UT Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Doug Patton <365_TAO_DigitalBeing@msn.com> Subject: Re: "Document contains no data" error Are you using Netscape Server 1.0 because it is a known problem with that error along with path statement with CGI.. Check out Netscape Server tech docs for answer. ---------- From: Web Development with GNNserver and GNN Hosting Service on behalf of Cass Tyson Sent: Friday, June 28, 1996 6:22 AM To: Multiple recipients of list GNNDEVELOPER-L Subject: Re: "Document contains no data" error Sorry about that first goof. Here's a real message: From the little I know about Perl and web servers, I'd say it looks like a script error rather than a server error. Have you tried running the script from the command line? If it works from there then your Perl's OK to a point, but the cgi aspect of it may still be lacking. Make sure the path to perl within the script is correct--that one tripped me up for awhile. good luck (in no way an expert,) Cass > when trying to submit a form I get the error message "Document contains >no Data", however I do insert data in all the fields. The CGI script behind the >form is a perl script, and I did add /usr/bin/perl as a new interpreter in the >GNN setup and restartted the server). > This does look like a GNN server error and not a CGI script error. Any >ideas??? > thanx, > demetris Cass Tyson NetSmarts EPS Inc. ctyson@netsmarts.com ========================================================================= Date: Fri, 28 Jun 1996 19:51:34 -0700 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: gnat Subject: Ns_ConnCopyToDString() In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Has anyone played with this function or with Ns_ConnCopyToFile() to try to play with content data at all? I am trying to do this but unless the content is all text/plain it gets munged up to where I can't do anything with it but regardless of the content type it still returns the correct result for Ns_ConnContentLength(). If anyone has any ideas/examples I would be grateful. Thanks, Dave David Whittle Internet Systems Developer Digital City (P) (703) 918-2465 (F) (703) 917-1207 (E) gnat@aol.net ========================================================================= Date: Sat, 29 Jun 1996 12:10:05 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Shawn E Mathews Subject: Re: Indexing dynamically-generated pages MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Peter M. Jansson wrote: > > I have some pages on a server which are generated by script using an > Illustra database, and I would like them to appear in the text index. The > pages come entirely from a script; there's no HTML file laying around > (Illustra performance has been good enough to avoid this). I have tried > doing an ad-hoc Tcl evaluation of: > > ns_textindex add /members/listing/general/20a9.208d.html > > which contains a perfectly good URL, but the server always give me the > informative error "Could not index URL > /members/listing/general/20a9.208d.html" > > What might make this work? > > Desperately seeking a clue, > Pete. > > ------------- > Peter M. Jansson petej@clickvision.com > Click Interactive Visions, LLC. (410) 488-3690 > Interactive WWW development services. If you don't put HTTP:// in front of a virtual url it won't work. Shawn Mathews us019327@Interramp.com ========================================================================= Date: Sat, 29 Jun 1996 09:24:30 -0400 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Dan Levy Subject: A URL question Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I use 2.03 on a Sparc. A company that has an existing web site with a hosting service is moving onto my server. Its current URL is http://www.domain.com/~domain because of the limitations of their serving situation. On my server, of course, it'll be merely http://www.domain.com but I want to make sure that the old URL still works. I need to know where to stick an auto-referrer file so that it'll be picked up by http://www.domain.com/~domain Thanks! Dan Levy danlevy@levity.com L e v i t y: New York City http://www.levity.com/ ========================================================================= Date: Sat, 29 Jun 1996 21:41:27 +0200 Reply-To: Web Development with GNNserver and GNN Hosting Service Sender: Web Development with GNNserver and GNN Hosting Service From: Michael Dettmer Organization: Hamburg Connect Subject: Illustra Install MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi everybody, I´m new to this LG. When installing Illustra (NT-Version 3.1) I get the errors: Error ´39´ while selecting *.* from "all the archives".z Any suggestions, please !? Damaged "ill31nt.exe" ? regards Michael Dettmer * E-Mail: michael@hhconn.com