I have a weird problem with SBCL RUN-PROGRAM. I want to invoke the browser from SBCL.
I define this function
(DEFUN browse (URL) (RUN-PROGRAM *browser* (LIST URL) :WAIT NIL))
I set *browser* to the default location for IE.
(SETQ *browser* "C:\Program Files\Internet Explorer\iexplore.exe")
If I type (browse "
http://shenlanguage.org/") I get the Shen homepage. I kill IE - it is fine.
But if I create an event loop and call this command in response to a user event (clicking a button) nothing happens. I have to actually type something to the REPL and hit RETURN and *then* IE pops up. When IE pops up, I get an error message.
couldn't read from #<SB-SYS:FD-STREAM for "standard input" {24CAA1F1}>:
Input/output error
Any ideas?
Mark