home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4964 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  815 b 

  1. Path: sparky!uunet!usc!orion.oac.uci.edu!nntpsrv
  2. From: handbook@orion.oac.uci.edu (Handbook)
  3. Subject: "Exec" in Sun Pascal?
  4. Nntp-Posting-Host: orion.oac.uci.edu
  5. Message-ID: <2A953D7F.27527@orion.oac.uci.edu>
  6. Newsgroups: comp.lang.pascal
  7. Organization: University of California, Irvine
  8. Lines: 26
  9. Date: 21 Aug 92 19:01:19 GMT
  10.  
  11.  
  12. Hi,
  13.  
  14. I'm used to using TP, but now I want to try something on this UNIX machine,
  15. running SunOs 4.1.2 and Sun Pascal.
  16.  
  17. Is there an equivalent to "exec" in Sun Pascal?  How would you do something
  18. like the following:
  19.  
  20. Procedure ExecuteChild;
  21.  
  22. begin
  23.   SetMemTop(HeapPtr);               { only works in TP 6.0  }
  24.   SwapVectors;
  25.   Exec('ProgramName, 'CmdLineArgs');
  26.   SwapVectors;
  27.   SetMemTop(HeapEnd);
  28. end;
  29.  
  30.  
  31. Anything will be extremely helpful,
  32.  
  33. Tony
  34.  
  35. Anthony Toyofuku
  36. University of California,
  37.