[slime-devel] Re: Handling ^M and ^H characters output from ext:run-program?
Jeff Cunningham
jeffrey at cunningham.net
Sat Jul 16 00:50:15 UTC 2005
On Sat Jul 16, 2005 at 01:15:03AM +0200, Edi Weitz wrote:
>
> That doesn't work without Lisp either:
>
> edi at miles:/tmp$ bash echo "Hello World" > tmp
> /bin/echo: /bin/echo: cannot execute binary file
>
> Try this instead:
>
> (ext:run-program "bash" '("-c" "echo \"Hello World\" > tmp") :output *standard-output*)
>
> Actually, I was rather thinking about invoking a shell script:
>
> edi at miles:/tmp$ rm foo
> edi at miles:/tmp$ cat foo.sh
> echo "Hello World" > /tmp/foo
> edi at miles:/tmp$ cmucl
> * (ext:run-program "sh" '("foo.sh") :output *standard-output*)
>
> #<process 4501 :EXITED>
> * (quit)
> edi at miles:/tmp$ cat foo
> Hello World
>
That works. Thanks!
--Jeff
More information about the slime-devel
mailing list