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

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

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -