INFO-VAX Wed, 06 Feb 2008 Volume 2008 : Issue 73 Contents: Announcing the OpenVMS Advanced Technical Boot Camp for 2008 cURL 7.18.0 available Re: DECnet Phase IV CONFIGURATOR Re: Help identifying a cable Java on VMS Re: Java on VMS Re: Java on VMS Re: Java on VMS Re: Java on VMS Re: Java on VMS Re: OT: Very: OT. US election and constitution question Re: OT: Very: OT. US election and constitution question Re: OT: Very: OT. US election and constitution question Remove String from file Re: Remove String from file Re: Remove String from file Re: Remove String from file Re: Remove String from file Re: Remove String from file Re: VT100 standards and EDT ---------------------------------------------------------------------- Date: Tue, 5 Feb 2008 19:26:51 -0800 (PST) From: Sue Subject: Announcing the OpenVMS Advanced Technical Boot Camp for 2008 Message-ID: http://www.hp.com/go/openvms/bootcamp Dear OpenVMS Technologist, On behalf of the entire boot camp team, it is my pleasure to announce the next OpenVMS Advanced technical boot camp May 18-23, 2008 at the Radisson Hotel in Nashua, NH. This five day event is focused on the intermediate to advanced OpenVMS technologist. Your instructors will be expert members of the OpenVMS Community. Additionally, we will be providing some basic and master level classes. In addition to numerous technical talks, this year we will be providing hands on sessions around OpenVMS on Blades (hardware and system management), Introducing the EVA4400 and Application Modernization. The cost of this 6 day event is $1495.00. This year as in years previously we will be several complimentary pre boot camp seminars for our pre-registered boot camp attendees. Please note that the hotel known as the Sheraton Hotel in Nashua was sold and is now the Radisson Nashua. Lodging and Travel are not part of the course costs. As always this web site will be enhanced and growing on a regular basis. Registration information is available and hotel information will be shortly. The next change that will be made is adding the pre week seminars that you will be able to register for These seminars are for Boot Camp attendees only TCP/IP - - Wed-Friday (Edison CR) Disaster Proof: How to Design, Build, and Test a Disaster-Tolerant OpenVMS Cluster - (2 days may run this twice) RTR - - 4 days (Tues - Friday) Sizing Storage Arrays for Performance (4 days)- Warm Regards, Sue ------------------------------ Date: 5 Feb 2008 17:47:16 -0600 From: kuhrt.nospammy@encompasserve.org (Marty Kuhrt) Subject: cURL 7.18.0 available Message-ID: The latest version of cURL, 7.18.0, has been released for OpenVMS and is available for download. The location is http://curl.haxx.se/download.html#VMS This is the binary and object library distribution of the cURL 7.18.0 release. See the readme.vms file in the zip for usage information. The zip files contain executables and objects built with OpenSSL, hpSSL and without SSL support. The files are in architecture specific zips. The OpenSSL and noSSL versions are self-contained in that you can run these programs without any other software on the system. For the hp SSL version, you will need to have hp's matching SSL product installed. HW Type VMS Version Compiler Vers SSL Library Filenames --------+-------------+---------------+----------------+----------- Alpha | OpenVMS 7.3 | DEC C 6.5-001 | OpenSSL 0.9.8d | .*_openssl Alpha | OpenVMS 7.3 | DEC C 6.5-001 | hpSSL 1.3 | .*_hpssl Alpha | OpenVMS 7.3 | DEC C 6.5-001 | No SSL support | .*_nossl IA64 | OpenVMS 8.3 | HP C V7.3-33 | OpenSSL 0.9.7e | .*_openssl IA64 | OpenVMS 8.3 | HP C V7.3-33 | hp SSL 1.3 | .*_hpssl IA64 | OpenVMS 8.3 | HP C V7.3-33 | No SSL support | .*_nossl VAX | OpenVMS 7.3 | DEC C 6.4-005 | OpenSSL 0.9.8d | .*_openssl VAX | OpenVMS 7.3 | DEC C 6.4-005 | hpSSL 1.1-B | .*_hpssl VAX | OpenVMS 7.3 | DEC C 6.4-005 | No SSL support | .*_nossl For those who don't know what cURL is, here is the blurb from their main page... Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and a busload of other useful tricks. I haven't tested all the features, since I only use the library for HTTP(S) stuff via C programs. It does compile and link cleanly on all the platforms outlined above. ------------------------------ Date: Tue, 5 Feb 2008 21:51:55 -0600 From: "Bob Blum" Subject: Re: DECnet Phase IV CONFIGURATOR Message-ID: Are you talking about the Configurator Module (aka "Module Configurator")? If so, I've used it for years as part of a network monitoring tool I wrote. I normally had no problem starting it up, except for one time on one system. I'm trying to recall what I did to correct the situation, but I don't think I used the added AUDIT priv, or at least not in the way described in this thread. I think I may have created a separate account to run it under, like other DECnet objects. My monitoring tool evolved over many years, since at least 1991 until the early 2000s. I would turn on the module configurator to have it listen for SYSID messages from the network, then periodically run a DCL command file to read and parse the output of the NCP command SHOW CONFIG KNOWN CIRCUIT STATUS. It would then generate "flat file" reports with a single line record for each device it heard. Since the SYSID messages would be sent out approximately every fifteen mintes, I could create a timestamp value for the last time my monitoring node heard the device. It included the DECnet physical address (AA-00-04-00-yy-xx) and controller ROM address (08-00-2B-xx-yy-zz), as well as a system ID code. On a large metropolitan network with literally thousands of nodes, I could tell within 15 minutes when a device went down (or at least unreachable). I even used the report files to discover new terminal servers, and generated DCL to auto-populate Terminal Server Manager with their hardware addresses, then do a TSM TEST LAT SERVER PARTITION XXX to find out their LAT service node names. If you're talking about something else, I'm not sure if I could help. Wasn't there also an X.25 Configurator as well? Bob Blum "AEF" wrote in message news:1192535766.289260.15300@v23g2000prn.googlegroups.com... > On Oct 16, 5:50 am, IanMiller wrote: >> On OpenVMS Alpha V8.3 STARTNET.COM still has >> >> THEN INSTALL ADD NICONFIG/ >> PRIVILEGES=(SYSNAM,LOG_IO) > > Thanks for checking! Is there a chance that it doesn't need AUDIT priv > anymore? I suspect not. > > Could it be that I'm the only one in the VMS universe who has actually > bothered to get the thing working? Has no one ever reported this to > VMS Engineering? > > AEF > ------------------------------ Date: Tue, 5 Feb 2008 17:28:47 -0600 From: "Bob Blum" Subject: Re: Help identifying a cable Message-ID: <1j6qj.79$wN4.8@newsfe06.lga> I think others who have responded are right, it looks like an old DataProducts printer interface using the 50-pin Winchester connector. Here's a link to a page mentioning it. Although it shows a parallel-to-DP adapter, I just want to show the 50-pin connector. http://www3.sympatico.ca/photologic/cd2.htm I remember some old printers like System Industries ("SI") or Printronix using the DataProducts interface. I even once had to hook two up to a DECserver 250, the one with two 37-pin "D" connectors for parallel line printers! In the photo of the cable, at the Winchester end, it looks like there's a label that says something like "INMAC 8066 4426 25FT". I tried putting some of those in as keywords to a Google search, but didn't come up with much. Try this: http://www.google.com/search?hl=en&q=50-pin+winchester. Good Luck! Bob Blum "Tad Winters" wrote in message news:Xns9A19DEE58DB59staffordnospamwinter@199.45.49.11... > Thanks for identifying the last item! (Bill and others.) > > I have a cable I'd like to identify now. If you can take a look at: > > http://mysite.verizon.net/stafford.winters2/Unknown-Clear-Signal-cable.html > > (Sorry if it wrapped.) > The jacket itself has INMAC CLEAR SIGNAL CABLE on it, but there is no > identifying tag as I'm used to seeing. It's only cluttering up my home > office, so I'd like to figure out what it is and get it outta here. > Thanks, > > Tad ------------------------------ Date: Tue, 5 Feb 2008 19:20:41 -0800 (PST) From: CodeAmazon Subject: Java on VMS Message-ID: I see old activity here...but not much new re. Java on VMS. If there is a better place for me to connect with active VMS/Java developers, I'd appreciate the pointer. If there is an active community of such here, then Hello! I am trying to use Crystal Reports Java tools to serve up pre-built reports via JSP. I've fought my way through a series of configuration issues, and I have JSP pages (served by Tomcat) working with my beans and connecting to my database, so the underlying technology seems to be functional. (i.e. basic installation is complete and correct, I presume.) I can get the sample .jsp page working up to picking up the report it is supposed to process:

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%--  testbed for CR engine --%>




    CR Test Run 



<%@page import="com.crystaldecisions.reports.sdk.*" %>
<%@page import="com.crystaldecisions.sdk.occa.report.reportsource.*"
%>
<%@page import="com.crystaldecisions.sdk.report.lib.*" %>
<%
    String reportName="sys$common:
[apache.jakarta.tomcat.webapps.crystalreports`
    try
    {

      //check to see if report source already exists
      Object reportSource = session.getAttribute("reportSource");
      //if not yet opened
      if (reportSource == null)
      {
        ReportClientDocument oReportClientDocument = new
ReportClientDocument();
        oReportClientDocument.open(reportName, 0);
--------------------------------------FAILURE HERE ------------------------------------------ (I determined this is the failure point by commenting everything out and slowly rebuilding it.) The error is:

javax.servlet.ServletException
	
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:
848)
	
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:
781)
	org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:91)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
291)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:141)
	com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
	
com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown
Source)
	
com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown
Source)
	
com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown
Source)
	
com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown
Source)
	
com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown
Source)
	com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown
Source)
	org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:70)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
291)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
This seems to suggest that something in the .jar that's responsible for loading the class is failing to find what it wants -- or perhaps the file is not getting retrieved? I tried a variety of methods of locating the path to try to rule out the latter, and it doesn't seem to match the error, but errors are not always as clear as one might hope. Can anyone point me in a useful direction? Thank you, Shasta ------------------------------ Date: Tue, 05 Feb 2008 23:07:13 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: Java on VMS Message-ID: <47a9326a$0$90270$14726298@news.sunsite.dk> CodeAmazon wrote: > I see old activity here...but not much new re. Java on VMS. If there > is a better place for me to connect with active VMS/Java developers, > I'd appreciate the pointer. If there is an active community of such > here, then Hello! Either here or comp.lang.java.something. Depending on whether you think the problem is more VMS than Java or the other way around. > I am trying to use Crystal Reports Java tools to serve up pre-built > reports via JSP. I've fought my way through a series of configuration > issues, and I have JSP pages (served by Tomcat) working with my beans > and connecting to my database, so the underlying technology seems to > be functional. (i.e. basic installation is complete and correct, I > presume.) > if (reportSource == null) > { > ReportClientDocument oReportClientDocument = new > ReportClientDocument(); > oReportClientDocument.open(reportName, 0); > root cause > > java.lang.NoClassDefFoundError > java.lang.Class.forName0(Native Method) > java.lang.Class.forName(Class.java:141) > com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source) > This seems to suggest that something in the .jar that's responsible > for loading the class is failing to find what it wants -- or perhaps > the file is not getting retrieved? I tried a variety of methods of > locating the path to try to rule out the latter, and it doesn't seem > to match the error, but errors are not always as clear as one might > hope. It is trying to load a class via dynamic classloading and can not find the class in any of the classloaders classpath. Maybe you just need to put a missing jar file in WEB-INF/lib. Arne ------------------------------ Date: Tue, 05 Feb 2008 22:09:45 -0600 From: "Craig A. Berry" Subject: Re: Java on VMS Message-ID: In article , CodeAmazon wrote: > root cause > > java.lang.NoClassDefFoundError > java.lang.Class.forName0(Native Method) > java.lang.Class.forName(Class.java:141) > com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source) I don't really know, but I assume the "native method" means something developed with the JNI interface. Have you built and installed (or acquired from your JAR vendor) the requisite library? Most likely this would be a dynamic library of some sort, known in VMS-land as a shareable image. -- Posted via a free Usenet account from http://www.teranews.com ------------------------------ Date: Tue, 05 Feb 2008 23:16:33 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: Java on VMS Message-ID: <47a9349a$0$90267$14726298@news.sunsite.dk> Craig A. Berry wrote: > In article > , > CodeAmazon wrote: > >> root cause >> >> java.lang.NoClassDefFoundError >> java.lang.Class.forName0(Native Method) >> java.lang.Class.forName(Class.java:141) >> com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source) > > I don't really know, but I assume the "native method" means something > developed with the JNI interface. Have you built and installed (or > acquired from your JAR vendor) the requisite library? Most likely this > would be a dynamic library of some sort, known in VMS-land as a > shareable image. java.lang.Class.forName is calling java.lang.Class.forName0 via JNI, but that shareable image is not missing (it is supplied by HP). It is trying to load a Java class (real byte code) from classpath and can not find it. Arne ------------------------------ Date: Tue, 5 Feb 2008 21:01:17 -0800 (PST) From: CodeAmazon Subject: Re: Java on VMS Message-ID: > Arne (and others) > It is trying to load a class via dynamic classloading and can not > find the class in any of the classloaders classpath. > > Maybe you just need to put a missing jar file in WEB-INF/lib. That was my first thought -- and I should have phrased my question better. I didn't expect anyone to be able to tell me what class is missing but I am also wondering if it could be a class that is supposed to be created from the report.rpt file I feed in. I'd think I'd get a file not found error in that case, but it's not my code, so who knows what gets swallowed/reported, so I thought I should maybe start by debugging the path I'm providing since at least I own that code. It's entirely possible there is a .jar missing -- I've found other things missing in the documentation -- but before trying to figure out what .jar might be outdated or missing in a third party package, I thought I'd try to figure out if I was doing something obviously wrong with the VMS paths or such. I have had some issues with getting jars to show on the classpath, which makes me suspicious. I'm no VMS pro so I'm not entirely sure that coding a logical into the filepath is kosher, for example, and I've no idea why adding log4j.jar to apache$jakarta_user_classpath failed to turn it up, but putting it in [CRYSTALREPORTS.WEB- INF.CLASSES] worked. Particularly it did not work from CRYSTALREPORTS.WEB-INF.LIB , where I would have expected to put it. I don't understand why, but I went ahead and copied all the CR lib files to my [.CLASSES] directory figuring that I'd try to minimize the issues to sort. So, I think my questions are: -- is there unexpected behaviour to apache$jakarta_user_classpath or java$classpath? -- does classpath work differently from java$classpath, other than the form of the argument with the file paths? -- why would putting the .jars in [myapp.web-inf.classpath] work, but [myapp.web-inf.lib] fail? -- are there any known problems with Java's ability to read in a VMS style path from an XML file and treat it properly? Does it matter if there are logicals in the path? I suspect my problems are as likely in my Tomcat installation (which we installed specifically for this project) and/or in my third party CR installation. However, I've not found a community in either of those places that knows a twit about VMS, so hopefully folks here will bear with me. You were kind with a poorly phrased initial question, so that's a good start. :) - Shasta ------------------------------ Date: Tue, 5 Feb 2008 21:05:49 -0800 (PST) From: CodeAmazon Subject: Re: Java on VMS Message-ID: > I said > -- why would putting the .jars in [myapp.web-inf.classpath] work, but > [myapp.web-inf.lib] fail? DOH... [myapp.web-inf.classes] of course. Sorry... - Shasta ------------------------------ Date: Tue, 05 Feb 2008 19:21:09 GMT From: Tad Winters Subject: Re: OT: Very: OT. US election and constitution question Message-ID: koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote in news:AVb9nKHZv2Zb@eisner.encompasserve.org: > In article , Tad > Winters writes: >> >> Puerto Ricans _cannot_ vote in presidential elections and they have >> no representatives in the U.S. Congress. They _can_ serve in the >> U.S. military. >> Guam is in the situation. > > Puerto ricans _CAN_ vote in presidential elections, but have no > representative. IIRC giving them presidential election votes > was done in the 1960s. > It's interesting that they don't know about it, and it seems like they're not the only ones. http://prssa51.wordpress.com/ http://welcome.topuertorico.org/government.shtml http://geography.about.com/od/specificplacesofinterest/a/puertorico.htm http://en.wikipedia.org/wiki/Voting_rights_in_Puerto_Rico ------------------------------ Date: Tue, 5 Feb 2008 11:37:10 -0800 (PST) From: Doug Phillips Subject: Re: OT: Very: OT. US election and constitution question Message-ID: On Feb 5, 9:07 am, davi...@alpha2.mdx.ac.uk wrote: > In article <9504f183-50db-48ec-b78e-9c3e7a732...@e10g2000prf.googlegroups.com>, Doug Phillips writes: > > > > >On Feb 4, 2:39 pm, Maverick wrote: > >> Bob Gezelter wrote: > >> > On Feb 4, 8:59 am, JF Mezei wrote: > >> >> Sorry for the OT, but this newsgroup has serious people who can provide > >> >> a serious answer. > > >> >> I know that that USA constitution requires the a president to have been > >> >> born in the USA. > > >> >> Does this requirement also apply to the Vice President ? > > >> >> Say you had an austrian born Vice President (we'll call him Arnold just > >> >> for the sake of discussion) , and the president becomes incapacitated: > > >> >> Would the VP be skipped (since he can't be president) and the job going > >> >> to the house speaker ? Or would the VP be accepted in this situation as > >> >> president (but not allowed to run for president when the term expires) ? > > >> >> If the birth requirement applies to the VP, would it also apply to the > >> >> speaker and anyone else in the defined sequence of replacements for the > >> >> president ? > > >> > JF, > > >> > In a word: NO. > > >> > The eligibility rules for Vice President are the same as the rules for > >> > President (e.g., native citizen, age). > > >> > In the original (unamended) Constitution, the second place finish in > >> > the Presidential election, an arrangement which had, shall we say, > >> > problems (e.g., President/Vice President from different parties and > >> > who were opponents in the election). This was changed by the XXIIth > >> > Amendment (1803, ratified 1804). > > >> > - Bob Gezelter,http://www.rlgsc.com > > >> McCain was born in the Panama Canal Zone. Does that disqualify him? > >> Both his parents were american. > > >In 1790 the First Congress declared: > > >"And the children of citizens of the United States that may be born > >beyond sea, or outside the limits of the United States, shall be > >considered as natural born citizens." > > You missed off > > "Provided, That the right of citizenship shall not descend to persons whose > fathers have never been resident in the United States" > Right. The part I posted was good enough to explain John McCain's situation, though, which was the question. His father and mother were both US citizens. His father was also an Admiral serving in the Panama Canal Zone and the U.S.Code does address both the PCZ and military service personnel and further solidifies McCain's status if that wasn't enough. > without that proviso, and similar modern provisos, you had a recursive > definition which would have allowed anyone who had an American citizen > anywhere in their ancestry to claim citizenship. Well, it seems to me that anyone but a lawyer would understand "children of citizens" to mean first-generation, and I do see the need for the proviso... however, the male-centric wording has been amended to include the mother: 8 USC S1401(c) "a person born outside of the United States and its outlying possessions of parents both of whom are citizens of the United States and one of whom has had a residence in the United States or one of its outlying possessions, prior to the birth of such person" > Seehttp://www.awccs.org/vote/passuscitizenship.pdf > That link also discusses Title 8 USC Section 1401 which (along with the 1402-1409) is the current law regarding Citizenship and Birth. The U.S.Code demonstrates the results of letting lawyers and politicians argue for a couple of hundred years over the meaning of words like "of," "to" and "for" while other lawyers look for loop-holes and the country collapses. .5 * ;-) ------------------------------ Date: Tue, 05 Feb 2008 19:45:00 GMT From: Rob Brown Subject: Re: OT: Very: OT. US election and constitution question Message-ID: On Tue, 5 Feb 2008, Tad Winters wrote: > helbig@astro.multiCLOTHESvax.de (Phillip Helbig---remove CLOTHES to > reply) wrote in news:fo9etc$baa$4@online.de: > >> The United States' territory is not just the 50 states; it also >> includes Puerto Rico, .... To the best of my knowledge ;-), the United States' territory does not include Canada. > Puerto Ricans _cannot_ vote in presidential elections and they have > no representatives in the U.S. Congress. They _can_ serve in the > U.S. military. Canadians also cannot vote in presidential elections and have no representatives in the U.S. Congress, but have served in the U.S. military. So perhaps one does not follow from the other. -- Rob Brown b r o w n a t g m c l d o t c o m G. Michaels Consulting Ltd. (780)438-9343 (voice) Edmonton (780)437-3367 (FAX) Canada http://gmcl.com/ ------------------------------ Date: Tue, 5 Feb 2008 16:10:25 -0800 (PST) From: Ruger Subject: Remove String from file Message-ID: Hi, I was after a way in which I could remove some specific text from a file without using an editor i.e via a lexical or dcl script. For example if I have a file with the contents below : hello this is my file is hello I would like to remove every instance of the string "is" and also the whole line from the file so that the file looks like hello this my file hello If anyone has any thoughts on how to achieve it would be greatly appreciated. thanks ------------------------------ Date: 5 Feb 2008 18:33:17 -0600 From: burley+news@encompasserve.org (Graham Burley) Subject: Re: Remove String from file Message-ID: <6exU6mc5VU$3@eisner.encompasserve.org> In article , Ruger writes: > I would like to remove every instance of the string "is" and also the > whole line from the file so that the file looks like Assuming you mean remove records that exactly match the string "is", which your example implies, then on VMS 8.2 and higher: $ search a.a is/wild=strict/match=nor/out=b.b ------------------------------ Date: 5 Feb 2008 18:39:22 -0600 From: burley+news@encompasserve.org (Graham Burley) Subject: Re: Remove String from file Message-ID: In article <6exU6mc5VU$3@eisner.encompasserve.org>, burley+news@encompasserve.org (Graham Burley) writes: > Assuming you mean remove records that exactly match the string "is", > which your example implies, then on VMS 8.2 and higher: > > $ search a.a is/wild=strict/match=nor/out=b.b > Er, and if exact means exact, then case might be important ... $ search a.a "is"/wild=strict/match=nor/exact ------------------------------ Date: Tue, 5 Feb 2008 16:54:36 -0800 (PST) From: Ruger Subject: Re: Remove String from file Message-ID: <684644b8-3f42-45c1-a25f-f3fe44f0101b@e10g2000prf.googlegroups.com> Thanks Graham, I'm running 7.1-2 but it works okay on what I need to do ------------------------------ Date: Wed, 06 Feb 2008 01:01:18 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: Remove String from file Message-ID: Graham Burley wrote: > In article , Ruger writes: > >> I would like to remove every instance of the string "is" and also the >> whole line from the file so that the file looks like > > Assuming you mean remove records that exactly match the string "is", > which your example implies, then on VMS 8.2 and higher: > > $ search a.a is/wild=strict/match=nor/out=b.b > That will remove the line with "this" also, if I'm not wrong... Jan-Erik. ------------------------------ Date: Tue, 5 Feb 2008 17:25:37 -0800 (PST) From: Hein RMS van den Heuvel Subject: Re: Remove String from file Message-ID: On Feb 5, 7:39=A0pm, burley+n...@encompasserve.org (Graham Burley) wrote: > In article <6exU6mc5V...@eisner.encompasserve.org>, burley+n...@encompasse= rve.org (Graham Burley) writes: > > > Assuming you mean remove records that exactly match the string "is", > > which your example implies, then on VMS 8.2 and higher: > > > $ search a.a is/wild=3Dstrict/match=3Dnor/out=3Db.b > > Er, and if exact means exact, then case might be important ... > > $ search a.a "is"/wild=3Dstrict/match=3Dnor/exact interestingly, the 'almost' match in 'this' will be highlighted for terminal output! fwiw... a basic DCL loop solution: $IF p3.EQS."" THEN EXIT 16 $OPEN/READ inp 'p1 $OPEN/WRIT out 'p2 $loop: $READ/END=3Ddone inp record $IF record.NES.p3 THEN WRITE out record $GOTO loop $done: $CLOSE inp $CLOSE out AWK: $ gawk /command=3D"!/^is$/" old And in PERL: $perl -ne "print unless /^is$/" old > new or the much more obsure $ perl -pe "m m ^is$ mx and $ _=3D $ m" old > new Hein. ------------------------------ Date: Wed, 06 Feb 2008 00:37:46 GMT From: John Santos Subject: Re: VT100 standards and EDT Message-ID: VAXman- @SendSpamHere.ORG wrote: > In article , moroney@world.std.spaamtrap.com (Michael Moroney) writes: > >>Antonio Carlini writes: >> >> >>>That doesn't mean there aren't undocumented sequences (I'm sure >>>there are _some_ for the VT100), and there may even be seuqences >>>which do "things" but were never intended to do anything useful >>>(they just happened to slip through the parser). But if EDT uses >>>them then it must use them pretty rarely. >> >>There are at least two 'accidental' VT100 escape sequences that I know of. >>Neither is useful to EDT. >> >>One is an annoyance, it turns the ^G beep tone on and leaves it on. The >>other sets the keyboard auto-repeat rate to a very high rate, and has an >>interesting side effect I've heard call 'piano mode'. If the keyclick is >>on, pressing the keys produces tones from the keyclick, and different keys >>produce different tones. You may be able to "play" simple music on it, >>although most are buzzes. >> >>I don't know what either escape sequence is, other than the constant tone >>one is related to the turn on LED ones, same except for the numeric >>portion. It turns on the beep instead of a LED. I don't know if the >>corresponding "off" code actually works. >> >>I think there are one or more "lock up terminal" accidental codes as well. >> >>There is rumored to be an undocumented load answerback buffer escape >>sequence for a VT220. This could be evil, load the answerback, then send >>a control-E to remotely "type" the command. > > > Documented. DECLANS. P1v answerbackmessage \ > Most (all??) terminals supporting this "feature" also had a setup option to lock the answerback message. This was precisely to prevent some evil cracker from loading "delete [...]*.*;*" or some other nefarious command into your answerback message and then invoking it by sending a ctrl/E. -- John Santos Evans Griffiths & Hart, Inc. 781-861-0670 ext 539 ------------------------------ End of INFO-VAX 2008.073 ************************