How to process input and output streams in Steel Bank Common Lisp?

前端 未结 3 521
萌比男神i
萌比男神i 2020-12-28 21:36

I\'m trying to figure out how to use the output stream of one program I start with RUN-PROGRAM so it can be used as the input of another program started with

3条回答
  •  长发绾君心
    2020-12-28 22:03

    Try adding :wait nil to your arguments to run-program. That should have both your grep and your ls running in the background. As is, you're starting the grep process, waiting for that to finish, then starting the ls you're intending to feed into the grep process. Alas, since you're waiting for the grep to finish, you never get that far.

提交回复
热议问题