Interfacing C Code to Shell Script

Keith Gabryelski ag at cbmvax.commodore.com
Thu May 31 07:58:33 AEST 1990


In article <16870 at phoenix.Princeton.EDU> subbarao at phoenix.Princeton.EDU
(Kartik Subbarao) writes:
>In article <23487 at adm.BRL.MIL> rose at 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



More information about the Comp.unix.questions mailing list