home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6499 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!ames!purdue!mentor.cc.purdue.edu!news
  3. From: ab@nova.cc.purdue.edu (Allen B)
  4. Subject: Re: Postscript considered harmful with MIME
  5. Message-ID: <C1KKz0.Lsq@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University
  8. References: <1993Jan28.001842.25259@aio.jsc.nasa.gov>
  9. Date: Thu, 28 Jan 1993 15:13:48 GMT
  10. Lines: 22
  11.  
  12. In article <1993Jan28.001842.25259@aio.jsc.nasa.gov>  
  13. kjenks@gothamcity.jsc.nasa.gov writes:
  14. > PostScript is really a general-purpose programming language.  It's
  15. > difficult to work with, especially if you wanted to make it do disk
  16. > I/O, but a really creative virus vandal could conceivably cause
  17. > GhostScript (or some other PostScript interpretter running in your CPU)
  18. > to create a script file in your home directory called, say, "ls" which
  19. > does an "rm -r * > /dev/null" or some such nasty.
  20.  
  21. No, actually, it's really easy.
  22.  
  23.     (*) {
  24.         deletefile
  25.     } filenameforall
  26.  
  27. is the code you describe, I think.
  28.  
  29. Low-level file operations in PostScript are nearly the
  30. same difficulty as they are in C.  High level ones are even
  31. easier, as my example shows.
  32.  
  33. Allen B (Who uses files from PostScript)
  34.