Subject: Re: sam's pipe

From: [email-masked] (Mark H. Wilkinson)
Date: Thu, 20 Apr 1995 18:09:35 -0400

Steve_Kilbane wrote:
> Subject: sam's pipe
> 
> Does anyone actually use sam's input pipe, apart from with
> the B command?

I've been using this rc function for a while:

fn mk {
	if (test -f Errors) {
		builtin mk $* |[2] tee Errors
		test -s Errors && { { echo b Errors ; echo e } | samsend }
	} else {
		builtin mk $*
	}
}

samsend is a stripped-down version of B which sends stdin to the pipe,
rsh'ing to a remote machine if necessary to avoid NFS problems. I also
have scripts to do B, D and cd operations from rc using samsend.

-Mark.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mark H. Wilkinson <[email-masked]>  : Research student in user
University of York, England                 : interface management systems