Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Newsgroups: comp.lang.c Subject: Re: system Keywords: c program Message-ID: <3920@sigi.Colorado.EDU> Date: 21 Jan 88 00:37:46 GMT References: <127@dcrbg1.UUCP> <452@picuxa.UUCP> Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Organization: University of Colorado, Boulder Lines: 14 In article <452@picuxa.UUCP> gp@picuxa.UUCP (Greg Pasquariello X1190) writes: > if(!fork()) > execlp("/bin/sh","sh","-c",command,0); > wait() Just curious, but what do fork() and wait() do? I have Turbo C, and it has execlp(), but neither of the other two. Does it have something to do with the fact that UNIX is multiuser, while MS-DOS is not? ------------------------------------------------------------------ Frank Swarbrick | "Ignorance and prejudice -- swarbric@tramp.UUCP | And fear walk and in hand." swarbric@tramp.Colorado.EDU | --RUSH ...!{hao|nbires}!boulder!tramp!swarbric