krowitz@RICHTER.MIT.EDU (David Krowitz) (09/08/89)
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)
solomon@mdcbbs.uucp (BARRY (MCDONNELL DOUGLAS)) (09/12/89)
> 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? It's actualy simpler than that. #!/com/sh if <command> then else endif Barry Solomon (Mcdonnell Douglas M&E)