Summary: Execute a UNIX command in C program

From: Warren, John H. <JHWARREN_at_ESCOCORP.com>
Date: Mon, 29 Jun 1998 18:02:39 -0700

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_at_escocorp.com
http://www.escocorp.com
Received on Tue Jun 30 1998 - 03:03:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT