process - How do I create a pipe between two processes in Guile? -


i want create 2 process in guile , send output (stdout) 1 of them input (stdin) other.

using following example, how can done?

echo "foo bar" | wc 

output:

1       2       8 

yes, can using open-output-pipe:

(let ((p (open-output-pipe "wc")))   (display "the quick brown fox jumps on lazy dog.\n" p)   (close-pipe p)) 

there is, of course, open-input-pipe analogue. read pipes section of guile manual more details.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -