does anyone know how to run cmucl from the UNIX command line.
I want it to simply start, evaluate an expression, and exit.
something like the following
lisp -eval '(format t "hello world~%)'
-jim
--
+------------------------------------------------------------------------+
| Jim E. Newton (·····@cadence.com) desk +49-(0)89-4563-1918 |
| Methodology Services Europe fax +49-(0)89-4563-1819 |
| Cadence Design Systems GmbH Munich Germany |
| |
| If you won't do it in the rain, you won't do it. |
+------------------------------------------------------------------------+
Jim Newton <·····@cadence.com> wrote:
> does anyone know how to run cmucl from the UNIX command line.
> I want it to simply start, evaluate an expression, and exit.
>
> something like the following
>
> lisp -eval '(format t "hello world~%)'
see
http://groups.google.de/groups?selm=54KdndLa5cO9DErd4p2dnA%40speakeasy.net
--
Frank Bu�, ··@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
On Mon, 02 Aug 2004 18:10:28 +0200, Jim Newton <·····@cadence.com> wrote:
> does anyone know how to run cmucl from the UNIX command line. I
> want it to simply start, evaluate an expression, and exit.
>
> something like the following
>
> lisp -eval '(format t "hello world~%)'
With a normal CMUCL install 'man lisp' should answer that question.
Cheers,
Edi.
--
"Lisp doesn't look any deader than usual to me."
(David Thornley, reply to a question older than most languages)
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
if 'man lisp' does nothing, then should i assume it is not
installed correctly?
lisp<<EOF
? (format t "hello world ~%")
? (quit)
? EOF
hmm a here file seems to work correcly on my installation at
home but on my installation in the office (at work) it
says something about stdin closed reverting to tty input.
:-(
could that be a difference between the x86 and the
sparc installation?
-jim
Edi Weitz wrote:
> On Mon, 02 Aug 2004 18:10:28 +0200, Jim Newton <·····@cadence.com> wrote:
>
>
>>does anyone know how to run cmucl from the UNIX command line. I
>>want it to simply start, evaluate an expression, and exit.
>>
>>something like the following
>>
>>lisp -eval '(format t "hello world~%)'
>
>
> With a normal CMUCL install 'man lisp' should answer that question.
>
> Cheers,
> Edi.
>
On Mon, 02 Aug 2004 21:56:06 +0200, Jim Newton <·····@rdrop.com> wrote:
> if 'man lisp' does nothing, then should i assume it is not installed
> correctly?
Probably.
> lisp<<EOF
> ? (format t "hello world ~%")
> ? (quit)
> ? EOF
>
> hmm a here file seems to work correcly on my installation at home
> but on my installation in the office (at work) it says something
> about stdin closed reverting to tty input. :-(
>
> could that be a difference between the x86 and the sparc
> installation?
Are the version numbers the same?
You should better ask these question on the CMUCL mailing list:
<http://www.cons.org/cmucl/support.html>
Cheers,
Edi.
--
"Lisp doesn't look any deader than usual to me."
(David Thornley, reply to a question older than most languages)
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Jim Newton <·····@rdrop.com> writes:
> Edi Weitz wrote:
> > On Mon, 02 Aug 2004 18:10:28 +0200, Jim Newton <·····@cadence.com> wrote:
> >
> >>does anyone know how to run cmucl from the UNIX command line. I
> >>want it to simply start, evaluate an expression, and exit.
> >>
> >>something like the following
> >>
> >>lisp -eval '(format t "hello world~%)'
> > With a normal CMUCL install 'man lisp' should answer that question.
> > Cheers,
> > Edi.
>
> if 'man lisp' does nothing, then should i assume it is not
> installed correctly?
>
> lisp<<EOF
> ? (format t "hello world ~%")
> ? (quit)
> ? EOF
>
>
> hmm a here file seems to work correcly on my installation at
> home but on my installation in the office (at work) it
> says something about stdin closed reverting to tty input.
> :-(
>
> could that be a difference between the x86 and the
> sparc installation?
Before phantasming about target differences, perhaps you should notice
that he missed a double-quote between % and ).
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
__Pascal Bourguignon__ http://www.informatimago.com/
Pascal Bourguignon wrote:
> Jim Newton <·····@rdrop.com> writes:
>
>>Edi Weitz wrote:
>>
>>>On Mon, 02 Aug 2004 18:10:28 +0200, Jim Newton <·····@cadence.com> wrote:
>>>
>>>
>>>>does anyone know how to run cmucl from the UNIX command line. I
>>>>want it to simply start, evaluate an expression, and exit.
>>>>
>>>>something like the following
>>>>
>>>>lisp -eval '(format t "hello world~%)'
>>>
>
> Before phantasming about target differences, perhaps you should notice
> that he missed a double-quote between % and ).
>
>
yes, a missing " was only missing from the mail message, not from
the actual lisp program. grins
-jim
Jim Newton <·····@cadence.com> writes:
> does anyone know how to run cmucl from the UNIX command line.
> I want it to simply start, evaluate an expression, and exit.
>
> something like the following
>
> lisp -eval '(format t "hello world~%)'
JUST SAY IT!
lisp -eval '(format t "hello world~%")(quit)'
--
__Pascal Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he does not
want merely because you think it would be good for him. -- Robert Heinlein
Pascal Bourguignon <····@thalassa.informatimago.com> wrote:
+---------------
| Jim Newton <·····@cadence.com> writes:
| > I want it to simply start, evaluate an expression, and exit.
| > something like the following
| > lisp -eval '(format t "hello world~%)'
|
| JUST SAY IT!
| lisp -eval '(format t "hello world~%")(quit)'
+---------------
Actually, even though that works in 19a-pre3, I'd probably do this for
robustness [and to suppress ";Loading..." chatter and uncertainty about
what's in the user's init file]:
% lisp -noinit -eval '(progn (format t "hello world~%")(quit))'
hello world
%
-Rob
-----
Rob Warnock <····@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607