I am using Common Lisp for some scripting and wanted to have run-program
execute shell commands. I have been trying to manipulate the output to get a list in the form (output error returncode)
but I can only get either the output or the returncode from run-program.
The arguments here only give you :output
(there is no :error
):
Is there a way of getting all three? Something like this:
(setf retcode (my-special-cmd "ls" :output stream1 :error stream2))
(print (list stream1 stream2 retcode))