KXH105@PSUVM.BITNET ("Ken Hornstein 862-7007", 814) (11/02/90)
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. I looked in NUCON but I couldn't find anything helpful. Is this possible, or am I beating my head against the wall? --- Sometimes I wish I could get a mirror with a better view. Ken Hornstein kxh105@psuvm.psu.edu Phone: 814/862-7007
TROTH@RICEVM1.RICE.EDU (Rick Troth) (11/04/90)
>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