[m-rev.] for review: source-linking for mdb

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Oct 29 18:14:57 AEDT 2001


On 29-Oct-2001, Mark Brown <dougl at cs.mu.OZ.AU> wrote:
> On 29-Oct-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > On 26-Oct-2001, Mark Brown <dougl at cs.mu.OZ.AU> wrote:
> > > +	/*
> > > +	** Try running the server with '--version', and see if the
> > > +	** output contains the string '+clientserver'.
> > > +	**
> > > +	** XXX if either server_cmd or fgrep is not found, the shell
> > > +	** will print an error message that will end up on our terminal.
> > > +	*/
> > > +	sprintf(system_call, "%s --version 2>&1 | fgrep -q '+clientserver'",
> > > +		server_cmd);
> > 
> > Any reason why you can't just add a "> /dev/null 2>&1" at the end of that
> > command?
> 
> Done.

What was wrong with the shell printing an error message that will end up
on our terminal?

If something goes wrong, the error message may well be helpful...

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  | "... it seems to me that 15 years of
The University of Melbourne         | email is plenty for one lifetime."
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- Prof. Donald E. Knuth
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list