home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:10383 comp.unix.programmer:4446
- Path: sparky!uunet!sun-barr!olivea!hal.com!decwrl!access.usask.ca!ccu.umanitoba.ca!umnoor
- From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
- Newsgroups: comp.unix.questions,comp.unix.programmer
- Subject: Pascal + UNIX = ?
- Message-ID: <1992Aug26.051812.1636@ccu.umanitoba.ca>
- Date: 26 Aug 92 05:18:12 GMT
- Sender: news@ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Lines: 20
- Nntp-Posting-Host: asimov.cc.umanitoba.ca
-
-
- Hi,
- I have a few questions about programming in Pascal in Unix env.
-
- 1). I want to execute a system command from within Pascal program (e.g. echo,
- awk etc). In C ``system()'' lets you do it, how to do it in Pascal?
-
- 2). I want to pass some program variables to awk, sed or some other Unix
- system command. In C ``sprintf()'' lets you do it, how to do in Pascal?
-
- 3). I want to use results produced by system commands (e.g. by echo, awk, sed)
- back in Pascal program. In C we use pipe, popen etc. How to do it in
- Pascal?
-
- I would appreciate any help.
-
- Thanks in advance!
-
- --nasir
- umnoor@ccu.umanitoba.ca
-