I want to use shell commands from SBCL.

Asked 2 years ago, Updated 2 years ago, 99 views

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

2022-09-30 14:55

1 Answers

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)


2022-09-30 14:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.