home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10383 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.1 KB

  1. Xref: sparky comp.unix.questions:10383 comp.unix.programmer:4446
  2. Path: sparky!uunet!sun-barr!olivea!hal.com!decwrl!access.usask.ca!ccu.umanitoba.ca!umnoor
  3. From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
  4. Newsgroups: comp.unix.questions,comp.unix.programmer
  5. Subject: Pascal + UNIX = ?
  6. Message-ID: <1992Aug26.051812.1636@ccu.umanitoba.ca>
  7. Date: 26 Aug 92 05:18:12 GMT
  8. Sender: news@ccu.umanitoba.ca
  9. Organization: University of Manitoba, Winnipeg, Canada
  10. Lines: 20
  11. Nntp-Posting-Host: asimov.cc.umanitoba.ca
  12.  
  13.  
  14. Hi,
  15. I have a few questions about programming in Pascal in Unix env.
  16.  
  17. 1). I want to execute a system command from within Pascal program (e.g. echo,
  18.     awk etc). In C ``system()'' lets you do it, how to do it in Pascal?
  19.  
  20. 2). I want to pass some program variables to awk, sed or some other Unix
  21.     system command. In C ``sprintf()'' lets you do it, how to do in Pascal?
  22.  
  23. 3). I want to use results produced by system commands (e.g. by echo, awk, sed)
  24.     back in Pascal program. In C we use pipe, popen etc. How to do it in
  25.     Pascal?
  26.  
  27. I would appreciate any help.
  28.  
  29. Thanks in advance!
  30.  
  31. --nasir
  32. umnoor@ccu.umanitoba.ca
  33.