Accessing a "c" program value from a csh script

Jeff Francis,Home Number,,3540765 jfrancis at umaxc.weeg.uiowa.edu
Sat Sep 22 04:41:16 AEST 1990


>From article <2629 at uc.msc.umn.edu>, by wes at uh.msc.umn.edu (Wes Barris):
> I have a "c" program that returns an integer value.  How does one run this
> program from within a csh script and access the returned value?  I have
> tried various forms of the following lines with no luck.

The value returned from any program is "remembered" in $status.

-jpf

-------------------------------------
Jeff Francis
THINK Class Library Evangelist and
CS Student, University of Iowa
jfrancis at umaxc.weeg.uiowa.edu
-------------------------------------



More information about the Comp.unix.shell mailing list