home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19579 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.0 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!unix1.tcd.ie!apwhite
  3. From: apwhite@unix1.tcd.ie (Andrew White)
  4. Subject: passing variables to system() ?
  5. Message-ID: <apwhite.726840479@unix1.tcd.ie>
  6. Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
  7. Nntp-Posting-Host: unix1.tcd.ie
  8. Organization: Trinity College, Dublin
  9. Date: Tue, 12 Jan 1993 12:07:59 GMT
  10. Lines: 17
  11.  
  12. Hi There,
  13.   I have a C program written in which I want to call another program (written in
  14. awk), passing that program a variable -ie (awkprog x=variable filename) is there
  15. a way I can do this with system() or is it a bit more complicated than that??
  16.  
  17. BTW Yes, I do need to call the program , I am not going to use C for field 
  18. matching etc. 
  19.  
  20.  
  21. Thanks
  22. Andrew.
  23.  
  24. --
  25. ------------"Strive never to forget the difference between arson and incest----
  26. --------------or you may end up like the guy who set fire to his sister"------- 
  27.                     ____________Andrew White_____________
  28. apwhite@unix1.tcd.ie OR apwhite@vax1.tcd.ie OR white@disco-sol.dfki.uni-sb.de 
  29.