From: Jim N. <jim...@gm...> - 2017-05-30 08:49:29
|
Hi, I'm having a small problem with sb-ext:run-program When I execute "vmmap -w 1123" at the shell it prints some 2100+ lines of output and exists with status 0. However, when I attempt to evaluate the following expression at the SBCL repl in slime, it never returns. (let* ((pid (format nil "~D" (sb-posix::getpid))) (string (with-output-to-string (str) (sb-ext:run-program "vmmap" (list "-w" pid) :search t :wait t :output str)))) string) And when I look at the ps output from the shell, I see that mmap -w 1123 is running. The documentation for sb-ext:run-program indicates that if a stream is passed as the argument of :output, then the output of the program will be written there. Can someone give me a hint about what's happening? Thanks. Jim |