[1026] in Moira

home help back first fref pref prev next nref lref last post

blanche should return an error code when it fails

daemon@ATHENA.MIT.EDU (Erik Nygren)
Fri Nov 22 14:08:02 1996

To: bug-moira@MIT.EDU
Date: Fri, 22 Nov 1996 14:07:40 EST
From: Erik Nygren <nygren@MIT.EDU>


System name:		kalgan
Type and version:	RedHat Linux-Athena 4.0.0 with 2.0.24 kernel
Display type:		linux

What were you trying to do?
	Get blanche to report when it fails so that it can be 
	used in scripts (for example, for adding to users
	to lists and sending out mail iff the add completes).

What's wrong:
	blanche exits with a zero exit status on failure

What should have happened:
	blanche should exit with a non-zero exit status on failure
	(and with a zero exit status on success)

Please describe any relevant documentation references:

kalgan:~% blanche linux-afs -a Henning.Brockfeld@lrz.uni-muenchen.de || echo "blanche claims to have failed"
blanche: Ingres system error occurred while adding member Henning.Brockfeld@lrz.uni-muenchen.de to linux-afs
kalgan:~% blanche linux-afs -a Henning.Brockfeld@lrz.uni-muenchen.de && echo "blanche claims to have succeeded"
blanche: Ingres system error occurred while adding member Henning.Brockfeld@lrz.uni-muenchen.de to linux-afs
blanche claims to have succeeded



home help back first fref pref prev next nref lref last post