Why this hangs clisp?
- From: astebakov@xxxxxxxxx
- Date: 27 Sep 2005 14:23:51 -0700
Hi,
I am using SLIME + XEmacs + CLisp.
I wanted to try CL-FAD package (for file and directory manipulation) so
I wrote this simple test (using mpgtx utility to look at mp3 file
info):
(load "C:/Linux/cl-fad-0.3.2/load.lisp")
(in-package #:cl-fad-test)
(let ((files (list-directory "C:/Music")))
(dolist (item files)
(setq cmd-str (concatenate 'string "mpgtx -i " (namestring item)))
(with-open-stream (*output* (ext:run-shell-command cmd-str :output
:stream))
(loop for line = (read-line *output* nil)
when line do
(progn
(format t "~a~%" line))))))
It will display the outpout of first mpgtx -i some.mp3 and hang.
I have to go to the Task manager and kill lisp.exe process.
Any suggestions what's wrong here?
Andrei
.
- Follow-Ups:
- Re: Why this hangs clisp?
- From: Pascal Bourguignon
- Re: Why this hangs clisp?
- From: Edi Weitz
- Re: Why this hangs clisp?
- From: Sam Steingold
- Re: Why this hangs clisp?
- Prev by Date: Re: What's so great about lisp?
- Next by Date: Re: C++ and lisp and Games
- Previous by thread: Carpooling to Paul Graham's Startup School in October
- Next by thread: Re: Why this hangs clisp?
- Index(es):