If all you want to do is check if it has returned zero or nonzero, you can use the if-then-else construct, like this: if command arg1 arg2 ... then action1 else action2 vi The first action is on success, the second action is on an error value returned from command. Chuck On Wed, 4 Aug 2004, Gregory Nowak wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all. > > If I'm running a program by invoking it from a bash prompt, can > someone please tell me how I can check it's return value? I looked at > the bash man page, but couldn't find anything on this. Thanks. > > Greg > > > - -- > Free domains: http://www.eu.org/ or mail dns-manager at EU.org > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQFBEbn27s9z/XlyUyARArHZAJwOsM88C5FJSm8hQTPZW5nXFvuTrgCgihIB > sAEDzTj+QAJp4PVyD3dgoqw= > =nVkf > -----END PGP SIGNATURE----- > > _______________________________________________ > Speakup mailing list > Speakup at braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > -- The Moon is Waning Gibbous (75% of Full) My home page is at http://www.mhcable.com/~chuckh