I want to write a simple wrapper for mpg123 console mp3 player in CL/CCL and wonder how to write to mpg123 which exists as a spawned process:
(let* ((p (run-program "mpg123" '("-R") :input :stream :output :stream :wait nil))
(s (external-process-input-stream p)))
(write "LOAD /path/to/file.mp3" :stream s)
(write-char #\return s))
But this code is not working and I am bit stuck. Any ideas?