19 Mar
2013
19 Mar
'13
11:45
On 2013-03-19, at 11:31 AM, Steve Graham <jsgrahamus@yahoo.com> wrote:
Trying to figure out how to run a Gambit-C program from a Linux shell script.
These don't seem to work: gsi <filename> gsi - <filename> gsi -e <filename>
What does work?
Thanks, Steve
I'm not sure what form of "shell script" you are trying to create. The first form, i.e. gsi <filename> should work fine. I don't see why it doesn't work for you. It the problem is that you want the REPL I/O to go to stdin/stdout (for example if you want (pp ...) to got to stdout), then start gsi this way: gsi -:d- <filename> You can also write Scheme shell scripts on unix by using the following shebang line: #! /usr/bin/env gsi ...scheme code Marc