[mercury-users] mdb and input redirection

Simon Taylor stayl at cs.mu.OZ.AU
Tue Jan 22 00:11:52 AEDT 2002


On 21-Jan-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 21-Jan-2002, Dave Slutzkin <dave_slutzkin at yahoo.com> wrote:
> > When using gdb you can use the command 'run param1 < input1' - I was thinking
> > of something like that.  This allows you to be fully interactive with the
> > debugger, but still run the program exactly as you like.
> 
> You can use `mdb --tty /dev/tty myprogram < inputfile'.

This works.

> If you're using X windows, you can also use
> `mdb --window myprogram < inputfile'.

This doesn't (although it would be nice if it did). 
With `mdb --window', `inputfile' will be sent to mdb, not
the program. The program's input comes from the new window.
The above command gives the error message:
	mdb: standard input stream is not a tty

http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.9812/0128.html

Simon.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list