Re: Running small scripts

Michael Sperber <[email protected]> Fri, 29 Apr 2011 09:05:38 +0200
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
"Diogo F. S. Ramos" <[email protected]> writes:

> I'm trying to make small scripts to be run from a unix shell.
>
> Looking through the manual I found that scheme48 implements srfi-22, but
> I'm having troubles shebanging source files. Is it possible? What do I
> need to write at the shebang line?

Exactly what SRFI 22 says.  For example:

#! /usr/bin/env scheme-r5rs

> Also, how would I ,open structures
> from the script, as I guess I wouldn't be able to use ,open from it.

Yes, you wouldn't: None of the dialects of SRFI 22 supports ,open.

> What I am actually doing to make it work is creating an image with
> ,build and then using a shell script to run the virtual machine with the
> image as the -i argument.

That is something completely different.  Where exactly are you having
trouble?

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla