Use the named pipe as follows.
$ mkfifopipe
$ catpipe
$ echo "text" > pipe << -- This is from another process.
text
I want to do this from SBCL.
The following moved.
* (run-program "/bin/ls"'("-a""/Users/user"):output T)
But it doesn't work.
* (run-program "/bin/echo"'("text"">"pipe"):output T)
I want to do this more.
$ echo$(catpipe)>pipe2
How should I write it?
lisp
If you want to redirect the output, you may want to specify the output destination in :output
.
*(run-program"/bin/echo"'("text"):output"pipe":if-output-exists:append)
© 2024 OneMinuteCode. All rights reserved.