INFO-VAX Mon, 19 Feb 2007 Volume 2007 : Issue 100 Contents: Adding pre/post escape sequences to a "SAY" Re: Checking backup (and other batch jobs) Major windoze Vista account ports to OpenVMS! Re: Major windoze Vista account ports to OpenVMS! Re: Migrating C application from VMS to LINUX Re: Migrating C application from VMS to LINUX Re: Migrating C application from VMS to LINUX Re: Migrating C application from VMS to LINUX Re: OpenVMS Pearl - Its Official - OpenVMS on Blades - ok for Public Distributio Re: Oracle - DST 2007 heads up Re: Oracle - DST 2007 heads up Re: Oracle - DST 2007 heads up question: TCPware + SMTP Re: question: TCPware + SMTP TCPIP : Lost default route Re: TCPIP : Lost default route Re: TCPIP : Lost default route They are slowly coming home to the worlds ONLY virus free OS! Re: They are slowly coming home to the worlds ONLY virus free OS! ---------------------------------------------------------------------- Date: Mon, 19 Feb 2007 13:02:17 -0500 From: JF Mezei Subject: Adding pre/post escape sequences to a "SAY" Message-ID: <610cf$45d9e632$cef8887a$10028@TEKSAVVY.COM> $SAY = "WRITE SYS$OUTPUT" exists on pretty much every VMS system, in many procedures. However, what I would like to be able to do is to have a SAY that insert escape sequence before the message, and another escape sequence after the message. (for instance, in a scrolling region environment of a VT terminal, have the SAY cause the message to be written to the top window, and then return to the bottom window for any other output). The one thing I could think of is to define a subroutine: $SAY: subroutine $write sys$output esc1,p1,esc2 $exit $endsubroutine and then in the program, use CALL SAY "This is the message" Are there any other suggestions on how this could be done efficiently ? However, one big drawback of this is that CALL SAY is quite different from WRITE SYS$OUTPOUT in terms of how the arguments are handled. one can do WRITE SYS$OUTPUT symbol1,symbol2,symbol3 but you can't CALL SAY symbol1,symbol2,symbol3 Any way around that would give me the exact same functionality that is available with WRITE ? Also, is it correct to state that when using: $CALL SAY "Nodename: ''f$getsyi("SCSNODENAME")'" That the argument passed to SAY will have already been expanded (eg: any symbols inside the strings are translated before it enters the subroutine ?) ------------------------------ Date: Mon, 19 Feb 2007 08:23:30 -0600 From: brandon@dalsemi.com (BRANDON, JOHN M) Subject: Re: Checking backup (and other batch jobs) Message-ID: <07021908233014@dscis6-0.dalsemi.com> In article , "Andrew Black (delete obvious bit)" writes: > I would like a program to run that checks on the status of batch jobs (eg > backups). I would like a mail sent with different subject line for > - job ran successfully > - job generated errors > - job appear not to have run > > I started to write something using a mixture of SEARCH -e- etc and MAIL > but was starting to think someone must have written this better than I > can do quickly I have used LGI for a home-brew solution. Dig up the documentation on LGI$LOGINOUT_CALLOUTS You can preceed and proceed a process (all within the login/out process) with checks for starts, completions, etc. John "REBOOT" Brandon VMS Systems Administrator firstname.lastname.spam.me.not@dalsemi.com ------------------------------ Date: 19 Feb 2007 04:53:52 -0800 From: bob@instantwhip.com Subject: Major windoze Vista account ports to OpenVMS! Message-ID: <1171889631.972281.250990@v45g2000cwv.googlegroups.com> http://www.openvms.org/stories.php?story=07/02/16/3329759 ------------------------------ Date: Mon, 19 Feb 2007 08:44:05 -0500 From: "William Webb" Subject: Re: Major windoze Vista account ports to OpenVMS! Message-ID: <8660a3a10702190544r10df700bnc568ee021f5ef2ec@mail.gmail.com> On 19 Feb 2007 04:53:52 -0800, bob@instantwhip.com wrote: > http://www.openvms.org/stories.php?story=07/02/16/3329759 > > Um, Earth to Bob? The only mention of Vista in the article refers to the name of the vendor of the software product. WWWebb ------------------------------ Date: 19 Feb 2007 00:58:35 -0800 From: "klaus1" Subject: Re: Migrating C application from VMS to LINUX Message-ID: <1171875515.471820.70160@v45g2000cwv.googlegroups.com> On Feb 17, 2:19 pm, Paul Repacholi wrote: > "klaus1" writes: > > On Feb 16, 12:22 pm, JF Mezei wrote: > >> klaus1 wrote: > >> > I just looking for interprocess communication IPC. Does anyone have > >> > some information for me, what kind of IPC exists in VMS and how I can > >> > port these to Linux. > > >> You can get a copy of a VAX or Alpha emulator to run as an app on Linux and > >> run VMS on linux. No need to port the apps. And you put new apps native on > >> Linux. > > >> In terms of IPC on VMS: > > >> Mailboxes > >> common event flags > >> locks > >> shared memory > >> decnet task to task > >> icc > >> tcpip > > >> It really depends on what sort of application you have, how complex it is > >> and how much it relies on VMS specific systems services. > > > thanks for the answer, I use the following IPCs on VMS: > > - Mailboxes > > Easily done on an unixoid. In fact, this is an area where VMS is suckish. > > > - common event flags > > No equivalent possible due to the process structure. > > > - locks > > No true euivalent possible. No cross system, cluster, locks > for a start. IBM does have a DLM package that run on several > Uoids, including AIX and Linux. > > > - global sections > > shmem can do this if you feed it the right options. > > > Which kind of emulator exists as an Linux app ? > > I read in this thread, that "shmem" calls in linux can cover > > IPCs. Is it possible to cover the whole list I mentioned before? > > The problem is, the IPC system is part of the serialization and > scheduling design of the app. Change the underlying system and that > needs changes all the way up the design and possibly different IPC > needs. any problems with file I/O handling using my c programs? fopen / fseek / fclose? ------------------------------ Date: 19 Feb 2007 04:27:24 -0800 From: "klaus1" Subject: Re: Migrating C application from VMS to LINUX Message-ID: <1171888044.197650.128080@j27g2000cwj.googlegroups.com> On Feb 19, 9:58 am, "klaus1" wrote: > On Feb 17, 2:19 pm, Paul Repacholi wrote: > > > > > "klaus1" writes: > > > On Feb 16, 12:22 pm, JF Mezei wrote: > > >> klaus1 wrote: > > >> > I just looking for interprocess communication IPC. Does anyone have > > >> > some information for me, what kind of IPC exists in VMS and how I can > > >> > port these to Linux. > > > >> You can get a copy of a VAX or Alpha emulator to run as an app on Linux and > > >> run VMS on linux. No need to port the apps. And you put new apps native on > > >> Linux. > > > >> In terms of IPC on VMS: > > > >> Mailboxes > > >> common event flags > > >> locks > > >> shared memory > > >> decnet task to task > > >> icc > > >> tcpip > > > >> It really depends on what sort of application you have, how complex it is > > >> and how much it relies on VMS specific systems services. > > > > thanks for the answer, I use the following IPCs on VMS: > > > - Mailboxes > > > Easily done on an unixoid. In fact, this is an area where VMS is suckish. > > > > - common event flags > > > No equivalent possible due to the process structure. > > > > - locks > > > No true euivalent possible. No cross system, cluster, locks > > for a start. IBM does have a DLM package that run on several > > Uoids, including AIX and Linux. > > > > - global sections > > > shmem can do this if you feed it the right options. > > > > Which kind of emulator exists as an Linux app ? > > > I read in this thread, that "shmem" calls in linux can cover > > > IPCs. Is it possible to cover the whole list I mentioned before? > > > The problem is, the IPC system is part of the serialization and > > scheduling design of the app. Change the underlying system and that > > needs changes all the way up the design and possibly different IPC > > needs. > > any problems with file I/O handling using my c programs? fopen / > fseek / fclose? i mean how can I port RMS spezific things in VMS to Linux ? ------------------------------ Date: 19 Feb 2007 14:20:16 GMT From: bill@cs.uofs.edu (Bill Gunshannon) Subject: Re: Migrating C application from VMS to LINUX Message-ID: <53tq10F1ssb8iU1@mid.individual.net> In article , koehler@eisner.nospam.encompasserve.org (Bob Koehler) writes: > In article <1171888044.197650.128080@j27g2000cwj.googlegroups.com>, "klaus1" writes: >> >> i mean how can I port RMS spezific things in VMS to Linux ? > > 1) roll your own > 2) buy a commercial VMS library package for UNIX > 3) see if you can limit your needs to those covered by C-ISAM or > similar packages > 4) use a DBMS instead of the file system > > Option 4 implemented via Oracle seems to be the most popular choice, > it only raises the cost of the Linux based solution a few orders of > magnitude. Or you could use Postgres which raises the cost of the solution by $0. I doubt there is anything that RMS does that Postgres doesn't. But getting back to the original question, a re-write is the most likely scenario. Looks like a real good time to look at wether C was the right language in the first place. 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: Tue, 20 Feb 2007 01:36:09 +0800 From: Paul Repacholi Subject: Re: Migrating C application from VMS to LINUX Message-ID: <877iuef3sm.fsf@k9.prep.synonet.com> "klaus1" writes: > i mean how can I port RMS spezific things in VMS to Linux ? WHICH `RMS things'? Unless you want to write all of RMS for Uoids, and add metadata to the file systems. Called a SMOP* by gung ho managers AIR. *Small Matter of Programming ------------------------------ Date: 19 Feb 2007 05:08:38 -0800 From: bob@instantwhip.com Subject: Re: OpenVMS Pearl - Its Official - OpenVMS on Blades - ok for Public Distributio Message-ID: <1171890518.912227.293100@s48g2000cws.googlegroups.com> On Feb 16, 9:25 pm, David J Dachtera wrote: > b...@instantwhip.com wrote: > > > On Feb 15, 8:38 pm, David J Dachtera > > wrote: > > > > Right here - reading up on what's coming into our shop within 18 months: IBM + > > > AIX. > > > good luck with that convuluted environment ... make sure you use > > c on it ... unix and c ... now there is a winner ... > > Like it or else, Power5 outperforms Alpha (and, thus, Itanic) 3 to 1! well Dave, we are still waiting to here why you cannot get an smp itanium box at a cheaper cost to equal the power one ... IBM and sun offered that very solution for years as alpha was on top and that did not seem to stop many from buying their garbage because it was cheap ... now you want to jump off the worlds only virus free platform and onto unix garbage and become a member of the patch of the day club when running multiple itaniums can match fewer power (designs stolen from alpha) chips and spend a ton of money doing it ... real bright ... ------------------------------ Date: 19 Feb 2007 07:37:50 -0600 From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) Subject: Re: Oracle - DST 2007 heads up Message-ID: In article <37c30$45d614a8$cef8887a$7968@TEKSAVVY.COM>, JF Mezei writes: > > This article mentions the need to update JAVA. Can anyone explain why ? > Would JAVA just use that OS's time services ? Or does it have its own > notion of time offsets etc ? Java generally sits on top of the C++ and C RTL, which probably need to be patched. That's just part of the problem. There are calendar capabilites in Java far beyond what C/C++ generally provide, most likely translating between these and the US time zones was affected. ------------------------------ Date: 19 Feb 2007 07:48:07 -0600 From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) Subject: Re: Oracle - DST 2007 heads up Message-ID: In article <53mh4rF1t2mt9U1@mid.individual.net>, bill@cs.uofs.edu (Bill Gunshannon) writes: > > All DST does is move the window of daylight within the window of time > during which we function. My day (and I am sure most others as well) > starts before the sun comes up and ends long after it goes down. A lot of people work from dark to dark in the winter. Fewer people work from dark to dark in the spring and fall. Where you are within your timezone has a distinct affect on this. Here, I am getting enough daylight in the morning to not have my headlights on while I drive to work. In Indiana, most of the state is too dark for that. When EDT hits I will almost need the headlights in the morning again. But I have a 40 minute commute. Many folks in the NY City area have a longer commute. I used to have 5 minnute to 15 minute commutes earlier in my life. A lot of people will still be able to keep their house/auto/work lights off if they are doing so today. A lot of other people are not so lucky. A little energy will be saved and Congress will be able to say they took action on our energy issues. What really didn't make sense was when Jimmy Carter put DST into play in the middle of the winter in the 1970s. No one benefited from that. ------------------------------ Date: Mon, 19 Feb 2007 10:38:59 -0500 From: "Richard B. gilbert" Subject: Re: Oracle - DST 2007 heads up Message-ID: <45D9C493.5080508@comcast.net> JF Mezei wrote: > Bob Koehler wrote: > >> A little energy will be saved and Congress will be able to say they >> took action on our energy issues. > > > > It woudl have been much smarter for the USA to switch to the same time > change dates as the rest of the world. > > Having to go through the troubles of changing the DST logic is stupid > since it is still going to be a proprietary USA time that some nearby > courntries are essentially forced to also adopt. > > Countries near the USA who are forced, for practical reasons, to follow > USA changes have no say/vote in your political process. It is very > unfortunate that locally elected proliticians are allowed to impose > their will outside their own jurisdiction. > > Time changes should involve cooperative effort between countries, not > some unilateral decision by local politicians of one country who just > want to be able to brag about having solved the ebergy problem without > really thinking thorugh all the ramifications. > > They can do all they want that affects only their jurisdisdiction. but > when it has effects outside their jurisdiction, it shouldn't be so easy > for uneducated stupid baby kissing politicians to pass some silly law. Maybe Canada should be grateful that their politicians aren't quite as stupid as ours. OTOH, ISTR that Canada's politicians are exempt from the "Socialized Medicine" system and have their own private hospital in Ottawa. . . . They can get a doctor when they want one but you can't! It seems to me that they are, for sure, crookeder!! ------------------------------ Date: 19 Feb 2007 08:23:29 -0800 From: "n.rieck@sympatico.ca" Subject: question: TCPware + SMTP Message-ID: <1171902209.479978.242400@h3g2000cwc.googlegroups.com> I'm running TCPware 5.7-2 on OpenVMS-8.2 (Alpha) and I just noticed something weird. Does your system do this as well? $set def tcpware $@restart smtp %SYSTEM-F-NOLOGNAM, no logical name match %SYSTEM-F-NOLOGNAM, no logical name match $ The error comes from the following script: $STOP_QUEUE_LOOP: $ q = f$getqui("display_queue","queue_name","*","wildcard") $ if q .eqs. "" then goto end_stop_queue_loop $END_STOP_QUEUE_LOOP: $ if f$trn("TCPWARE_SMTP_QUEUE","LNM$SYSTEM_TABLE").nes."" then - undef/executive TCPWARE_SMTP_QUEUE %SYSTEM-F-NOLOGNAM, no logical name match $CHECK_FOR_DUPSERVICE_ERROR: Neil Rieck Kitchener/Waterloo/Cambridge, Ontario, Canada. http://www3.sympatico.ca/n.rieck/ ------------------------------ Date: Mon, 19 Feb 2007 12:05:47 -0500 From: bradhamilton Subject: Re: question: TCPware + SMTP Message-ID: <45D9D8EB.2070705@comcast.net> n.rieck@sympatico.ca wrote: > I'm running TCPware 5.7-2 on OpenVMS-8.2 (Alpha) and I just noticed > something weird. Does your system do this as well? > > $set def tcpware > $@restart smtp > %SYSTEM-F-NOLOGNAM, no logical name match > %SYSTEM-F-NOLOGNAM, no logical name match > $ Nope. (5.7-2 + VMS 8.3 Alpha) NOLOGNAM, no logical name match Facility: SYSTEM, System Services Explanation: A specified logical name does not exist or cannot be deleted by the current access mode. User Action: Check for a programming error. Verify the spelling of the logical name. My "guess" (without looking at your system) is that the logical doesn't exist at the time, or exists in a mode other than "executive". I tried to reproduce the problem by deassigning the logical on my system, then restarting SMTP. No fatal error messages occurred. I left the logical assigned (in exec, BTW) and restarted SMTP. Again, no fatal error messages occurred. I then deassigned the logical, and reassigned it as /system only. When I restarted SMTP, the fatal error message appeared three times. When I deassigned the logical as /system and restarted SMTP, no fatal error messages occurred. HTH ------------------------------ Date: Mon, 19 Feb 2007 10:57:36 -0500 From: JF Mezei Subject: TCPIP : Lost default route Message-ID: <9c9a2$45d9c8f9$cef8887a$7307@TEKSAVVY.COM> I have TCPIP Services 5.6 (Alpha 8.3). This morning, I realised something was wrong with a node. Emails were queued and not going out. Turns out that node had lost its default route to the world. (but if was still there in thepermanent config). I have static routes (no GATED or ROUTED services). What I did do since I last knew for sure things were working: $SYSCONFIG -r inet tcp_recvspace=129904 $SYSCONFIG -r inet tcp_sendspace=129904 $SYSCONFIG -r inet ipgateway=1 $SYSCONFIG -r inet ipforwarding=1 but on the other node on which those same commands were issued, it didn't lose the default route. One thing specific to that node was to use ifconfig to delete and recreate an alias IP (aka: the arp cluster functionality). ifconfig we0 alias 10.0.0.50/16 ipmtu 1500 Now, I have added the above commands in the TCPIP$SYSTARTUP file, as recommended by the management book. My concern is that one of those commands (especially the ifconfig) might cause the default route to dispear whenever I reboot. (the ifconfig is necessary to replace functionality lost with TCPIP>SET INT/CLUSTER ) Has anyone expereinced such glitches before ? ------------------------------ Date: Mon, 19 Feb 2007 12:26:38 -0500 From: JF Mezei Subject: Re: TCPIP : Lost default route Message-ID: <3cefe$45d9ddd7$cef8887a$6791@TEKSAVVY.COM> Bart.Zorn@gmail.com wrote: > In my startup procedures I use several ifconfig commands. I had to add > a check for the default route at the end, and if it is missing, add it > again. How do you check if default route exists from DCL ? And is there a way to add it back with ifconfig, or do you use a command line TCPIP SET ROUTE/DEFAULT command ? At least you know you are not alone in seeing this (and same with me). When more people report similar happenings, then perhaps it will officialy become a big instead of glitches that only happen to people who do not live in the same universe and the rest of the world. ------------------------------ Date: Mon, 19 Feb 2007 11:33:37 -0600 From: Dan Foster Subject: Re: TCPIP : Lost default route Message-ID: In article <1171905771.115734.115410@q2g2000cwa.googlegroups.com>, Bart.Zorn@gmail.com wrote: > I have also seen ifconfig commands remove the default route. > > In my startup procedures I use several ifconfig commands. I had to add > a check for the default route at the end, and if it is missing, add it > again. > > This looks like a bug to me. But somehow I am reluctant to report it. > TCPIP is running stable now, and I don't want to disturb that! I don't think this is a bug, actually. A default route typically references a particular interface. If you take that interface down, even for a fraction of second, the default route no longer makes 'sense' at that moment. So the default route automagically gets removed. For good or for bad, this is how it works. Bottom line: if you toggle interface status, better be prepared to readd the default route after it's back up. :-) -Dan ------------------------------ Date: 19 Feb 2007 05:01:48 -0800 From: bob@instantwhip.com Subject: They are slowly coming home to the worlds ONLY virus free OS! Message-ID: <1171890108.061047.275860@s48g2000cws.googlegroups.com> http://www.openvms.org/stories.php?story=07/02/16/3329759 ------------------------------ Date: 19 Feb 2007 09:08:49 -0800 From: sean@obanion.us Subject: Re: They are slowly coming home to the worlds ONLY virus free OS! Message-ID: <1171904929.374797.276050@m58g2000cwm.googlegroups.com> On Feb 19, 5:01 am, b...@instantwhip.com wrote: > http://www.openvms.org/stories.php?story=07/02/16/3329759 In the mid '90, I woked with Vista Controls on a distributed multi-CPU VAXeln control system for a research aluminum continous cast and rolling mill. The standard turnaround for research on this scale was one experiment a week. With Vista to implement new controls and UI, and a code generator (pretty diagram to C code) for the real time contollers, we did one to two experiments a day, three to five days a week. It was (and I suspect still is) a great product, and a very responsive company. They where being forced to Windows even then, and where not very happy about it, for what looks like the very reasons the article outlines. Sean ------------------------------ End of INFO-VAX 2007.100 ************************