home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22110 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.3 KB

  1. 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
  2. Newsgroups: comp.os.vms
  3. Subject: Re: LIB$SPAWN and privileges...
  4. Message-ID: <1993Jan26.141100@mccall.com>
  5. From: tp@mccall.com (Terry Poot)
  6. Date: Tue, 26 Jan 1993 14:11:00 CST
  7. Reply-To: tp@mccall.com (Terry Poot)
  8. References: <01GTXJV9AHTU000EP7@SCI.WFEB.EDU> <1k2kdtINNs62@gap.caltech.edu>
  9. Distribution: world
  10. Organization: The McCall Pattern Co., Manhattan, KS, USA
  11. Nntp-Posting-Host: mis1
  12. Nntp-Posting-User: tp
  13. Lines: 32
  14.  
  15.  
  16. In article <1k2kdtINNs62@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU (Carl J
  17. Lydick) writes:
  18. >In article <01GTXJV9AHTU000EP7@SCI.WFEB.EDU>, MACRIDES@SCI.WFEB.EDU (Foteos
  19. >Macrides) writes:
  20. >=    Has anybody written a SYS$PURGE and/or SYS$RENAME system service?  I
  21. >=want to do some file cleanup operations from a CtrlY-trapping AST, and can't
  22. >=use LIB$SPAWN or system() cuz the child process can't bring the parent back
  23. >=out of hibernation.
  24. >
  25. >Do you have any idea what system services *ARE*?  Why don't you also ask for a
  26. >C compiler system service?
  27.  
  28. Yeah, or a system service to format text, or format time values, ACLs, or
  29. security events into pretty ascii strings, or encrypt passwords! Oh, I guess it
  30. has those. They'll put anything in there, won't they? Of course, since it does
  31. file I/O, the C compiler would have to be an RMS routine, not a system service.
  32. (Of course the difference is academic if you aren't an internals hacker, so we
  33. should probably cut Carl some slack on this one.)
  34.  
  35. Fote - system() or lib$spawn without the nowait flag should wait till the
  36. subprocess exists and then return. You can do purge and rename calls through
  37. RMS. You can roll your own purge in C by explicitly deleting lower versions of a
  38. file, but that'd be harder (you'd definitely want to start with Rich Salz's
  39. reddir package). There is a rename() in the C rtl. Of course, if your problem is
  40. lack of privileges to do these things, this isn't going to help, and you really
  41. wouldn't want a system service lying around that'd let a user do these things
  42. without privilege.
  43. --
  44. Terry Poot <tp@mccall.com>                   The McCall Pattern Company
  45. (uucp: ...!rutgers!depot!mccall!tp)          615 McCall Road
  46. (800)255-2762, in KS (913)776-4041           Manhattan, KS 66502, USA
  47.