Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: system Message-ID: <7118@brl-smoke.ARPA> Date: 18 Jan 88 01:14:09 GMT References: <127@dcrbg1.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 Keywords: c program In article <127@dcrbg1.UUCP> bcf2303@dcrbg1.UUCP (Wing Chow) writes: >can someone give me an example of how to use 'system' in a c program? ... fflush( stdout ); if ( system( "date" ) != 0 ) /* print a time stamp on stdout */ error( "cannot execute \"date\" command" ); ...