|
Re: [Sbcl-help] How to suppress messages when sbcl as script?
From: Teemu Likonen <tlikonen@ik...> - 2010-10-07 17:36
|
* 2010-10-07 18:35 (+0200), Manfred Lotz wrote:
> I wrote a small script starting like follows:
>
> <---------------------------------snip---------------->
> #! /usr/bin/sbcl --script
>
> (require 'asdf)
> (require 'local-time)
> <---------------------------------snap---------------->
>
> Implicitly local-time requires cl-fad which requires sb-grovel,
> sb-posix etc.
When using SBCL to run scripts it's probably a good idea to create a
special Lisp image which already contains all the needed libraries. The
same in concrete terms:
$ sbcl --noinform
* (require :asdf)
* (require :local-time)
* (sb-ext:save-lisp-and-die "sbcl-script" :executable t)
Now copy the executable sbcl-script image somewhere and use it to run
your scripts:
#!/some/path/sbcl-script --script
(format t "~A~%" (local-time:now))
|
| Thread | Author | Date | |
|---|---|---|---|
| [Sbcl-help] How to suppress messages when sbcl as script? | Manfred Lotz <manfred.lotz@ar...> |
|
|
|
|
|
|
|
|