From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011929.tru64-unix-managers.marc@archive.invalid> From: "Warren, John H." Date: Tue, 30 Jun 1998 01:02:39 +0000 To: tru64-unix-managers Subject: Summary: Execute a UNIX command in C program X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011929 If you wish to execute a UNIX shell command within a C program, you have different C commands to facilitate the process: 1. Use the system command (ie. system ("ls -lt"); 2. Use the exec command (ie. exec[l,v,le,ve,lp] 3. Use popen() Man pages are available for all these commands. Blake also mentioned a utility called bperl that will convert Perl code to C code. Thanks to: Joseph P. Hall Angel G. Martinez Dr. Thomas P. Blinn Burch Seymour Blake Roberts Gyula Szokoly and numerous others... John H. Warren Computer Operations Manager IT Department, ESCO Corporation (503)778-6278 (Computer Room) (503)778-6513 (Office) jhwarren@escocorp.com http://www.escocorp.com