Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!rutgers!att!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.unix.questions Subject: Re: Shell.. Message-ID: <9005@alice.UUCP> Date: 5 Mar 89 16:52:58 GMT References: <21314@shemp.CS.UCLA.EDU> Reply-To: debra@alice.UUCP () Organization: AT&T, Bell Labs Lines: 19 In article <21314@shemp.CS.UCLA.EDU> aviz@CS.UCLA.EDU () writes: >How can I run a shell command in C? Like running UUCP, or SendMail, or any >other program? see system(3) >And can I make the C program work interactively with the other application? >thanks... see popen(3) the one problem that remains with popen is that you can only read from the pipe or write to the pipe but not both. Paul. -- ------------------------------------------------------ |debra@research.att.com | uunet!research!debra | ------------------------------------------------------