Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!rutgers!cbmvax!ag From: ag@cbmvax.commodore.com (Keith Gabryelski) Newsgroups: comp.unix.questions Subject: Re: Interfacing C Code to Shell Script Keywords: popen Message-ID: <11985@cbmvax.commodore.com> Date: 30 May 90 21:58:33 GMT References: <23487@adm.BRL.MIL> <16870@phoenix.Princeton.EDU> Reply-To: ag@cbmvax (Keith Gabryelski) Organization: Commodore-Amiga Unix; West Chester, PA Lines: 17 In article <16870@phoenix.Princeton.EDU> subbarao@phoenix.Princeton.EDU (Kartik Subbarao) writes: >In article <23487@adm.BRL.MIL> rose@baby.swmed.utexas.edu (Rose Oguz) writes: >> I want to call a shell script from my C program. However, I >>would like the script to return values to my C program. Is there a > >Okay gang, even though many "official" unix.hackers out there might disagree, >this one simply says that popen() is screaming for this job, just as it's >supposed to :-). > >[lots of code deleted] or just: int retval = system("myshellscript"); Pax, Keith