[3178] in testers

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

Re: sgi 8.1.0: moira locker apps

daemon@ATHENA.MIT.EDU (Craig Fields)
Sat May 31 16:09:28 1997

Date: Sat, 31 May 1997 16:09:23 -0400
From: Craig Fields <cfields@MIT.EDU>
To: ghudson@MIT.EDU
Cc: testers@MIT.EDU

> (We could do something like set an environment variable and test for
> it to prevent recursion, but then you get situations like
> /usr/athena/bin/listmaint not working in a subshell that you spawned
> from a listmaint process.)

How about something like:

#!/bin/sh

if [ ! -r /mit/@LOCKER@ ]; then
	/bin/athena/attach -q @LOCKER@
fi
if [ "$CHK_RECUR" = $$ -o ! -x @BINDIR@/@PROGRAM@ ]; then
	echo "Can't find the @PROGRAM@ program in the @LOCKER@ locker."
	echo "Please try again later."
	exit 1
fi
CHK_RECUR = $$; export CHK_RECUR
PATH=@BINDIR@:$PATH
exec @PROGRAM@ "$@"

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