3 ms·
What's the problem you're having with it? I think this was discussed on irc recently? This was the example I gave of using process_create which works: proc
by doublec 8y ago
What's the problem you're having with it? I think this was discussed on irc recently? This was the example I gave of using process_create which works:
process_create('/bin/cat',
[],
[stdout(pipe(Out)),stdin(pipe(In))]),
write(In, "hello"), nl(In), close(In),
read_line_to_codes(Out, Codes).
- xvilka 8y agoWell, I need to keep both pipes open during the "session", since usual radare2 session involves hundreds of commands and their output. Opening a new pipe and process every time is a wrong way to go in my opinion.
- doublec 8y agoYou should be able to open the pipes at the beginning of the session, and close them after, passing the pipe variables around as needed. Prolog wouldn't be any different to other programming languages there. What errors are you getting? Maybe post to the swipl mailing list?
- xvilka 8y agoI will send a message to mailing list then, thanks for the suggestion.