Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!RICHTER.MIT.EDU!krowitz From: krowitz@RICHTER.MIT.EDU (David Krowitz) Newsgroups: comp.sys.apollo Subject: /com/sh programming Message-ID: <8909071944.AA13986@richter.mit.edu> Date: 7 Sep 89 19:44:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 13 I want to write an Aegis shell script that checks if a previously executed command completed correctly. If I remember correctly, programs which run to completetion return the status code PGM_$OK. Does anyone know how I can test for this within a shell script? -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter.mit.edu@eddie.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)