Path: utzoo!mnetor!uunet!lll-winken!usenet From: usenet@lll-winken.llnl.gov (Usenet News Administrator) Newsgroups: comp.lang.c Subject: Re: system Message-ID: <2836@lll-winken.llnl.gov> Date: 21 Jan 88 04:34:07 GMT References: <127@dcrbg1.UUCP> <7118@brl-smoke.ARPA> <4790@tut.cis.ohio-state.edu> Reply-To: washer@lll-crg.llnl.gov.UUCP (Jim Washer) Organization: Lawrence Livermore National Laboratory Lines: 18 Keywords: c program >> fflush( stdout ); >> if ( system( "date" ) != 0 ) /* print a time stamp on stdout */ >> error( "cannot execute \"date\" command" ); >> ... > >System is probably one of the most abused functions in the C >library. > From: washer@lll-crg.llnl.gov (Jim Washer) Path: lll-crg.llnl.gov!washer system is nice for things like system("mkdir xyz" ) since non-superusers cannot make a directory from a program thru standard system call. ( At least I think thats true ) jim washer lll-crg!isaac!washer