home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 19114 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  1.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!torn!utgpu!attcan!ncrcan!cattnts!lsimages!whome!camaro!tfoley
  2. From: tfoley@camaro.uucp (Tim Foley)
  3. Newsgroups: comp.lang.c
  4. Subject: Executing bins from within C
  5. Summary: How, using exec()?
  6. Message-ID: <1992Dec31.214802.4993@camaro.uucp>
  7. Date: 31 Dec 92 21:48:02 GMT
  8. Organization: camaro
  9. Lines: 18
  10.  
  11. What is the best method for executing binaries from within a C program?
  12.  
  13. eg. Making a nice fancy menu in C to run Unix commands, kinda like a menu 
  14. front end from unix commands.
  15.  
  16. eg. How could I run 'ls -l' from within a C program, and see the output as 
  17. well.
  18.  
  19. Do you use the exec() function?
  20.  
  21.                 
  22. -- 
  23.   --------------------------------------------------------------------------
  24.                The HeartBeat of America...Yesterdays Camaro Z28 
  25.                              tfoley@camaro.uucp   
  26.      Call the Camaro Linux Pub-access site: 1-416-238-6550 USRobotics HST
  27.     Note: Please, no ftpmail or mailing lists or the host gets annoyed :)
  28.   --------------------------------------------------------------------------
  29.