Date: Fri, 18 May 2001 18:57:55 -0500 From: Mike Meyer <mwm@mired.org> To: Eric Boucher <eric_boucher60@yahoo.com> Cc: questions@freebsd.org Subject: Re: Fortran reading exit code: How to do it without... Message-ID: <15109.46851.450682.735582@guru.mired.org> In-Reply-To: <10701758@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Boucher <eric_boucher60@yahoo.com> types: > Hi everyone, > > I have just posted a question about exit code integer > in unix and thank to Jason E.Murray and Linh Pham, > this solve my problem. But I want to know something > else: I'm using fortran 77 and I make my code starting > a script. I want to catch that exit code of the script > without having to redirect it in a file and reading > the integer of that file. Because for now, the only > way I know to do it, is to redirect the information of > the exit code in a file, and then I read that file. > But there must be a way to let fortran know the > integer that my script return, like put it directly in > a variable. Does somebody knows how to do it? It depends on which FORTRAN you're using, and how you're starting the shell script. If you're using g77 and the System intrinsic, then the status is the second argument for the subroutine or the value of the function. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15109.46851.450682.735582>