home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: re: Re: Running LOGINOUT [SYS$CLI]
- Message-ID: <9301121445.AA12503@uu3.psi.com>
- Date: 12 Jan 93 13:20:08 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 40
-
-
- [I wrote:]
- >The last time I checked, all the SYS$CLI services were accessible
- >through library procedures; you'd gain nothing by using SYS$CLI
- >directly.
-
- Ah... now that's where you're mistaken! From the few feeble bits of
- information I -was- able to dig up on SYS$CLI, from Pat Rankin and
- Joe Meadows and the like, I've found a couple of things I can do via
- SYS$CLI that I CAN'T do through library procedures. One, "chain" to
- another executable program after the one I'm running completes.
-
- How about LIB$DO_COMMAND pointing to a file containing a RUN statement?
-
- Alternatively, create an exit handler that calls LIB$RUN_PROGRAM.
-
- Two,
- do that AND issue another independent DCL command, both after the
- program I'm running completes.
-
- Someone posted a program that does a combined LIB$RUN_PROGRAM/LIB$DO_COMMAND
- to INFO-VAX. I remember saving it, but now I can't find it.
-
- Heaven only knows what else I'd find
- if I could follow the scanty docs any better...
-
- OK, you've found one odd little corner of functionality that you can't get at
- directly. (What it amounts to is that LIB$RUN_PROGRAM does just a bit more
- than call SYS$CLI.) But you can get the same results, in this case, with a
- simple workaround.
-
- If what you want to do is hack, then the listings are just fine; that's how
- to learn about the undocumented pieces of VMS.
-
- But this discussion started with your question as to why SYS$CLI wasn't
- documented. From the point of view of practical programming, my answer
- stands: There's nothing you could do using the complicated SYS$CLI interface
- that you can't do using the LIB$ routines.
- -- Jerry
-
-