From W.vanLeeuwen@nikhef.nl Thu Feb 6 14:13:23 1992 Date: Thu, 6 Feb 92 15:13:14 +0100 From: Willem van Leeuwen To: timbl@nxoc01.cern.ch Cc: a03@nikhef.nl Subject: Good and bad news from nikhef Hi, To start with the bad news: the new linebrowser sometimes scrambles the output, i.e. when reading the CERN Computer Centre News. See the script below. You will observe the crash at the end, I hope the traceback will be useful. Script started on Thu Feb 6 14:24:17 1992 [nikhefh] ##[1] dbx www Reading symbolic information... Read 6137 symbols (dbx) run Running: www NIKHEF Information NIKHEF INFORMATION - SELECT BY NUMBER Help[1] About this program, and the World-Wide Web NIKHEF[2] NIKHEF information CERN[3] CERN Information and gateway to WWW EAGLE[4] EAGLE news at CERN [End] 1-4, Quit, or Help: 3 CERN Information CERN INFORMATION - SELECT BY NUMBER Help[1] On this program, or the World-Wide Web project[2]. Phone book[3] People, phone numbers, accounts and email addresses. See also the analytical Yellow Pages[4], or the same index in French : Pages Jaunes[5]. "XFIND" index[6] Index of computer centre documentation, newsletters, news, help files, etc... News[7] A complete list of all public CERN news groups, such as news from the CERN User's Office[8], CERN computer center news[9], student news[10]. See also private groups[11] and Internet news[12]. >From other sites See online data by subject[13], pointers to other forms of online data[14], and the following specific databases: 1-23, Back, for more, Quit, or Help: 9 NEWS in vmnews = Central Computers and Connected areas LOG/IC FROM ISADATA ON TUE FEB 11 AT 10[1] IBM SERVICE SCHEDULE[2] TAGIBM PROTOCOL ERRORS[3] SILICON GRAPHICS RESEARCH STRATEGY :MONDAY, FEB 10 AT 10:00[4] SOFTWARE ENGINEERING IN HIGH ENERGY PHYSICS[5] NAMING CONVENTIONS FOR SYSTEMS ON THE CERN NETWORK[6] UXCOMS IS GOING AWAY[7] IMPORTANT CHANGES TO TCP/IP CONFIGURATIONS[8] ON_LINE NEWS[9] K , 1-22, Back, for more, Quit, or Help: b CERN Information (24/51) CERN INFORMATION - SELECT BY NUMBER Help[1] On this program, or the World-Wide Web project[2]. Phone book[3] People, phone numbers, accounts and email addresses. See also the analytical Yellow Pages[4], or the same index in French : Pages Jaunes[5]. "XFIND" index[6] Index of computer centre documentation, newsletters, news, help files, etc... News[7] A complete list of all public CERN news groups, such as news from the CERN User's Office[8], CERN computer center news[9], student news[10]. See also private groups[11] and Internet news[12]. >From other sites See online data by subject[13], pointers to other forms of online data[14], and the following specific databases: SLAC SPIRES[15] The High Energy Physics preprint index at Stanford 1-23, Back, Up, for more, Quit, or Help: b NIKHEF Information NIKHEF INFORMATION - SELECT BY NUMBER Help[1] About this program, and the World-Wide Web NIKHEF[2] NIKHEF information CERN[3] CERN Information and gateway to WWW EAGLE[4] EAGLE news at CERN [End] signal BUS (alignment error) in display_line at line 198 in file "../GridText.c" 198 printf("%s%s\n", SPACES(line->offset), line->data); (dbx) where display_line(line = 0x66696c65), line 198 in "../GridText.c" display_page(text = 0x271c0, line_number = 2), line 296 in "../GridText.c" HText_selectAnchor(text = 0x271c0, anchor = 0x24aa0), line 777 in "../GridText.c" HTLoadAnchor(destination = 0x24aa0), line 371 in "../../../Implementation/HTAccess.c" Selection_Prompt(), line 769 in "../HTBrowse.c" main(argc = 1, argv = 0xf7fffa9c), line 384 in "../HTBrowse.c" (dbx) quit Script done on Thu Feb 6 14:25:03 1992 Now the good news. I installed the server on our recently installed network sun (nic.nikhef.nl). With a very crude change in HTRetrieve it is possible to activate a script in case of a keyword search: /* Handle a Retrieve request from a WWW client HTRetrieve.c ... extern int HTWriteASCII(int soc, char * s); /* In HTDaemon.c */ char *command; char string[80]; char *ip; /* Read a file ... if (keywords) { /* if (TRACE) fprintf(logfile,"HTHandle: can't perform search %s\n", arg); HTWriteASCII(soc, "Sorry, this server does not perform searches.\n"); */ ip = string; command = "/user/a03/bin/WWWsh "; for (;*command!='\0';) *ip++ = *command++; for (;*arg!='\0';) *ip++ = *arg++; *ip++ = '?'; for (;*keywords!='\0';) *ip++ = *keywords++; system (string); return fd; } StrAllocCopy(arg2, arg); ... With the following script the finger information is sent to the client: name=`echo $@ | awk -F? '{print $2}` echo '' /usr/ucb/finger $name@nikhefh This script only serves to demonstrate that this solution works. Our default file is //nic.nikhef.nl./user/a03/www/default/default.html but we are still experimenting so it is too early to hook nikhef into WWW. I'll let you know when we have more useful information. Best regards, Willem van Leeuwen