On Sat Jul 16, 2005 at 01:15:03AM +0200, Edi Weitz wrote:
That doesn't work without Lisp either:
edi@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@miles:/tmp$ rm foo edi@miles:/tmp$ cat foo.sh echo "Hello World" > /tmp/foo edi@miles:/tmp$ cmucl
- (ext:run-program "sh" '("foo.sh") :output *standard-output*)
#<process 4501 :EXITED>
- (quit)
edi@miles:/tmp$ cat foo Hello World
That works. Thanks!
--Jeff