home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!mccall!mccall!tp
- Newsgroups: comp.os.vms
- Subject: Re: LIB$SPAWN and privileges...
- Message-ID: <1993Jan26.141100@mccall.com>
- From: tp@mccall.com (Terry Poot)
- Date: Tue, 26 Jan 1993 14:11:00 CST
- Reply-To: tp@mccall.com (Terry Poot)
- References: <01GTXJV9AHTU000EP7@SCI.WFEB.EDU> <1k2kdtINNs62@gap.caltech.edu>
- Distribution: world
- Organization: The McCall Pattern Co., Manhattan, KS, USA
- Nntp-Posting-Host: mis1
- Nntp-Posting-User: tp
- Lines: 32
-
-
- In article <1k2kdtINNs62@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU (Carl J
- Lydick) writes:
- >In article <01GTXJV9AHTU000EP7@SCI.WFEB.EDU>, MACRIDES@SCI.WFEB.EDU (Foteos
- >Macrides) writes:
- >= Has anybody written a SYS$PURGE and/or SYS$RENAME system service? I
- >=want to do some file cleanup operations from a CtrlY-trapping AST, and can't
- >=use LIB$SPAWN or system() cuz the child process can't bring the parent back
- >=out of hibernation.
- >
- >Do you have any idea what system services *ARE*? Why don't you also ask for a
- >C compiler system service?
-
- Yeah, or a system service to format text, or format time values, ACLs, or
- security events into pretty ascii strings, or encrypt passwords! Oh, I guess it
- has those. They'll put anything in there, won't they? Of course, since it does
- file I/O, the C compiler would have to be an RMS routine, not a system service.
- (Of course the difference is academic if you aren't an internals hacker, so we
- should probably cut Carl some slack on this one.)
-
- Fote - system() or lib$spawn without the nowait flag should wait till the
- subprocess exists and then return. You can do purge and rename calls through
- RMS. You can roll your own purge in C by explicitly deleting lower versions of a
- file, but that'd be harder (you'd definitely want to start with Rich Salz's
- reddir package). There is a rename() in the C rtl. Of course, if your problem is
- lack of privileges to do these things, this isn't going to help, and you really
- wouldn't want a system service lying around that'd let a user do these things
- without privilege.
- --
- Terry Poot <tp@mccall.com> The McCall Pattern Company
- (uucp: ...!rutgers!depot!mccall!tp) 615 McCall Road
- (800)255-2762, in KS (913)776-4041 Manhattan, KS 66502, USA
-