Article View: comp.lang.asm370
Article #462Re: Front-ending the CMS command interpreter
From: Rick Troth
Date: Sat, 03 Nov 1990 18:23
Date: Sat, 03 Nov 1990 18:23
24 lines
1877 bytes
1877 bytes
>Is there a way to have my own routine called INSTEAD of the normal CMS
>command processor? I'm trying to write a routine to filter commands,
>and do something different in special cases.
Sounds kinda like you want a "restricted shell". Yes, it can
be done. The command processing code in CMS wasn't exactly designed to
be replaced, but since it's accessible via SVC 202, you can pretty
easily "front end" it with your own "application". In C, the system()
function call may help you get your code up quickly; it calls SVC 202.
Note that other applications, like XEDIT, which invoke SVC 202 will
get CMS directly and NOT your shell, unless you hook into the SVC 202
chain, which is hairy.
CMS would see your code as just another application. You'll
have to invoke it manually or from PROFILE EXEC. If you want to run
other "application" programs from your shell, then you need to LOAD
it with the (RLDSAVE option before GENMODing and NUCXLOAD the resultant
MODULE. This way, your code can be relocated out of the way of non-
relocatable programs. It's not perfect.
>Ken Hornstein kxh105@psuvm.psu.edu Phone: 814/862-7007
"Your viability was also once questionable ... it will be questionable again."
Rick Troth <TROTH@RICEVM1.RICE.EDU> ------------- Rice ONCS VM Systems Support
Technical Details
Message-ID:
<9011031842.AA16715@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!RICEVM1.RICE.EDU!TROTHReferences:
<KXH105@PSUVM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!RICEVM1.RICE.EDU!TROTH
From: TROTH@RICEVM1.RICE.EDU (Rick Troth)
Newsgroups: comp.lang.asm370
Subject: Re: Front-ending the CMS command interpreter
Message-ID: <9011031842.AA16715@ucbvax.Berkeley.EDU>
Date: 3 Nov 90 18:23:30 GMT
References: <KXH105@PSUVM>
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: IBM 370 Assembly Programming Discussion List
<ASM370@OHSTVMA.BITNET>
Distribution: inet
Organization: The Internet
Lines: 24