[mercury-users] mdb and input redirection

David Overton dmo at cs.mu.OZ.AU
Sun Jan 20 18:33:13 AEDT 2002


On Sun, Jan 20, 2002 at 11:13:36AM +1100, Dave Slutzkin wrote:
> Hi all.
> 
> Is there any way to run a program through mdb with stdin redirected?  This
> isn't mentioned in the user's guide or the man page so presumably it is not
> possible...

Yes it is possible.  You just need to tell mdb where to read the
debugger commands from (since you presumable don't want to redirect that
to the same place).

One way to do it is to start up a new xterm and to set the option
--mdb-tty in the MERCURY_OPTIONS environment variable to point the the
tty device of this xterm.  (See the section on MERCURY_OPTIONS in the
Environment Variables section of the Mercury Users' Guide.


David

> 
> thanks,
> 
> Dave Slutzkin.
> 
> http://my.yahoo.com.au - My Yahoo!
> - It's My Yahoo! Get your own!
> --------------------------------------------------------------------------
> 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
> --------------------------------------------------------------------------

-- 
David Overton      Department of Computer Science & Software Engineering
PhD Student        The University of Melbourne, Victoria 3010, Australia
+61 3 8344 9159    http://www.cs.mu.oz.au/~dmo
--------------------------------------------------------------------------
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