[mercury-users] How to capture the io stream for call_system/4?
Peter Wang
wangp at students.csse.unimelb.edu.au
Tue Mar 27 13:03:39 AEST 2007
On 2007-03-25, doug.auclair at logicaltypes.com <doug.auclair at logicaltypes.com> wrote:
> Dear all,
>
> Is there a way to redirect the (output, specifically) io of
> io.call_system/4 so that Mercury can process it as a string?
Use a combination of pipe, fork, dup*, exec*, wait*. Those are
available in the posix binding in extras. An easier way would be to
make a binding to the popen() function.
Peter
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list