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
Afficher les réponses par date
I am running Gambit 4.6.7 on Minut Linux 14.
________________________________ From: Steve Graham jsgrahamus@yahoo.com To: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 9:31 AM Subject: [gambit-list] Running gambit program
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
_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 2013-03-19, at 11:42 AM, Steve Graham jsgrahamus@yahoo.com wrote:
I am running Gambit 4.6.7 on Minut Linux 14.
From: Steve Graham jsgrahamus@yahoo.com To: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 9:31 AM Subject: [gambit-list] Running gambit program
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
It would help if you copied the error message that is output, or explain the ill-behavior you are experiencing.
Marc
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
Thanks, Marc. I don't see why I'm having these problems either. It worked fine under Windows 7.
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (exit)
steve@steve-Satellite-L555D ~/Desktop $ gsi test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(display (+ 1 2))
3> (exit) steve@steve-Satellite-L555D ~/Desktop $ gsi :d- test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $
________________________________ From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 9:45 AM Subject: Re: [gambit-list] Running gambit program
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
On 2013-03-19, at 11:57 AM, Steve Graham jsgrahamus@yahoo.com wrote:
Thanks, Marc. I don't see why I'm having these problems either. It worked fine under Windows 7.
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (exit)
steve@steve-Satellite-L555D ~/Desktop $ gsi test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(display (+ 1 2))
3> (exit) steve@steve-Satellite-L555D ~/Desktop $ gsi :d- test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $
It appears that on this OS the command line arguments aren't available to gsi. Can you try this:
% gsi a b c ...
(command-line)
and report was is printed.
Marc
steve@steve-Satellite-L555D ~/Desktop $ gsi a b c Gambit v4.6.7
(command-line)
("./gsi")
________________________________ From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 10:01 AM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 11:57 AM, Steve Graham jsgrahamus@yahoo.com wrote:
Thanks, Marc. I don't see why I'm having these problems either. It worked fine under Windows 7.
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (exit)
steve@steve-Satellite-L555D ~/Desktop $ gsi test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(display (+ 1 2))
3> (exit) steve@steve-Satellite-L555D ~/Desktop $ gsi :d- test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $
It appears that on this OS the command line arguments aren't available to gsi. Can you try this:
% gsi a b c ...
(command-line)
and report was is printed.
Marc
On 2013-03-19, at 12:07 PM, Steve Graham jsgrahamus@yahoo.com wrote:
steve@steve-Satellite-L555D ~/Desktop $ gsi a b c Gambit v4.6.7
(command-line)
("./gsi")
Now that we've established that the command-line processing is the problem, can you explain how you built Gambit? Did you use any special options or notice a problem?
Also, can you evaluate
##os-configure-command-string-saved
and
##os-system-type-string-saved
and also send a trace of the "make".
Marc
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
I don't recall the steps I went through to build Gambit. Is the make trace stored somewhere automatically?
________________________________ From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 10:17 AM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 12:07 PM, Steve Graham jsgrahamus@yahoo.com wrote:
steve@steve-Satellite-L555D ~/Desktop $ gsi a b c Gambit v4.6.7
(command-line)
("./gsi")
Now that we've established that the command-line processing is the problem, can you explain how you built Gambit? Did you use any special options or notice a problem?
Also, can you evaluate
##os-configure-command-string-saved
and
##os-system-type-string-saved
and also send a trace of the "make".
Marc
On 2013-03-19, at 12:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
I don't recall the steps I went through to build Gambit. Is the make trace stored somewhere automatically?
Just
make clean make
Also, can you compile this simple C program:
#include <stdio.h>
int main(int argc, char *argv[]) { char **p = argv; while (*p != NULL) printf("%s\n", *p++); return 0; }
and then do
./a.out a b c
If that doesn't work then we have a problem.
Marc
Sorry, got ahead of myself. Went ahead and executed the following:
git clone https://github.com/feeley/gambit.git
(Downloaded it to my home directory and moved it to /usr/src)
cd gambit sudo ./configure --enable-single-host sudo make bootstrap sudo make bootclean sudo make sudo make check sudo make install steve@steve-Satellite-L555D ~/Desktop $ ./a.out a b c ./a.out a b c steve@steve-Satellite-L555D ~/Desktop $ cat a.c #include <stdio.h>
int main(int argc, char *argv[]) { char **p = argv; while (*p != NULL) printf("%s\n", *p++); return 0; } steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(command-line)
("./gsi")
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi a b c Gambit v4.6.7
(command-line)
("./gsi")
,q
steve@steve-Satellite-L555D ~/Desktop $
________________________________ From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 10:58 AM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 12:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
I don't recall the steps I went through to build Gambit. Is the make trace stored somewhere automatically?
Just
make clean make
Also, can you compile this simple C program:
#include <stdio.h>
int main(int argc, char *argv[]) { char **p = argv; while (*p != NULL) printf("%s\n", *p++); return 0; }
and then do
./a.out a b c
If that doesn't work then we have a problem.
Marc
I think this is a link problem:
steve@steve-Satellite-L555D ~/Desktop $ which gsi /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (display "\n") (exit)
steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm 3
steve@steve-Satellite-L555D ~/Desktop $
Sorry for this.
Steve
---
----- Original Message ----- From: Steve Graham jsgrahamus@yahoo.com To: Marc Feeley feeley@iro.umontreal.ca Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 11:18 AM Subject: Re: [gambit-list] Running gambit program
Sorry, got ahead of myself. Went ahead and executed the following:
git clone https://github.com/feeley/gambit.git
(Downloaded it to my home directory and moved it to /usr/src)
cd gambit sudo ./configure --enable-single-host sudo make bootstrap sudo make bootclean sudo make sudo make check sudo make install steve@steve-Satellite-L555D ~/Desktop $ ./a.out a b c ./a.out a b c steve@steve-Satellite-L555D ~/Desktop $ cat a.c #include <stdio.h>
int main(int argc, char *argv[]) { char **p = argv; while (*p != NULL) printf("%s\n", *p++); return 0; } steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(command-line)
("./gsi")
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi a b c Gambit v4.6.7
(command-line)
("./gsi")
,q
steve@steve-Satellite-L555D ~/Desktop $
________________________________ From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 10:58 AM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 12:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
##os-configure-command-string-saved
"./configure '--enable-single-host'"
##os-system-type-string-saved
"x86_64-unknown-linux-gnu"
I don't recall the steps I went through to build Gambit. Is the make trace stored somewhere automatically?
Just
make clean make
Also, can you compile this simple C program:
#include <stdio.h>
int main(int argc, char *argv[]) { char **p = argv; while (*p != NULL) printf("%s\n", *p++); return 0; }
and then do
./a.out a b c
If that doesn't work then we have a problem.
Marc _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 2013-03-19, at 1:30 PM, Steve Graham jsgrahamus@yahoo.com wrote:
I think this is a link problem:
steve@steve-Satellite-L555D ~/Desktop $ which gsi /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (display "\n") (exit)
steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm 3
steve@steve-Satellite-L555D ~/Desktop $
Sorry for this.
This is just a wild guess, but perhaps the fact that /usr/bin/gsi is world writable is causing the OS to do strange things.
Can you try again after
sudo chmod 755 /usr/bin/gsi /usr/bin/gsc
Marc
I removed gsi and gsc and did a symbolic link in /usr/bin to /usr/src/gambit/gsi/gsi and /usr/src/gambit/gsc/gsc.
Steve
----- Original Message -----
From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 11:36 AM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 1:30 PM, Steve Graham jsgrahamus@yahoo.com wrote:
I think this is a link problem:
steve@steve-Satellite-L555D ~/Desktop $ which gsi /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (display "\n") (exit)
steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm 3
steve@steve-Satellite-L555D ~/Desktop $
Sorry for this.
This is just a wild guess, but perhaps the fact that /usr/bin/gsi is world writable is causing the OS to do strange things.
Can you try again after
sudo chmod 755 /usr/bin/gsi /usr/bin/gsc
Marc
On 2013-03-19, at 1:30 PM, Steve Graham jsgrahamus@yahoo.com wrote:
I think this is a link problem:
steve@steve-Satellite-L555D ~/Desktop $ which gsi /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (display "\n") (exit)
steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm 3
steve@steve-Satellite-L555D ~/Desktop $
Sorry for this.
I would like to understand what went wrong. Previously you said that you built Gambit in a conventional way:
On 2013-03-19, at 1:18 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Sorry, got ahead of myself. Went ahead and executed the following:
git clone https://github.com/feeley/gambit.git
(Downloaded it to my home directory and moved it to /usr/src)
cd gambit sudo ./configure --enable-single-host sudo make bootstrap sudo make bootclean sudo make sudo make check sudo make install
However, you later said that gsi was in /usr/bin/gsi . This is very strange because building Gambit conventionally will install gsi in /usr/local/Gambit-C/bin/gsi , so how come it ended up in /usr/bin/gsi? And why did it not run properly? I know you fixed your problem, but it would be worthwhile spending some time to understand what the problem is so that I can fix the makefiles if they are at fault, for the benefit of others.
Marc
-rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
Notice the filesize. I bet this was a shell script that didn't pass arguments to the real gsi (or may be this gsi was doing something completely different). If this file is still around Steve can `cat -v' it to see what's in it. cat -v just in case it contains some binary data.
-rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
Notice the different modify date of each gsi. My guess is /usr/bin/gsi was locally created and left over from something earlier. [And there is an admin bug: -rwxrwxrwx implies root is likely using a umask of 0! Root should use `umask 022']
I would like to understand what went wrong. Previously you said that you bui lt Gambit in a conventional way:
...
However, you later said that gsi was in /usr/bin/gsi . This is very strange because building Gambit conventionally will install gsi in /usr/local/Gambit- C/bin/gsi , so how come it ended up in /usr/bin/gsi? And why did it not run properly? I know you fixed your problem, but it would be worthwhile spending some time to understand what the problem is so that I can fix the makefiles if they are at fault, for the benefit of others.
From: Bakul Shah bakul@bitblocks.com
To: Marc Feeley feeley@iro.umontreal.ca Cc: Steve Graham jsgrahamus@yahoo.com; Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 12:43 PM Subject: Re: [gambit-list] Running gambit program
-rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
Notice the filesize. I bet this was a shell script that didn't pass arguments to the real gsi (or may be this gsi was doing something completely different). If this file is still around Steve can `cat -v' it to see what's in it. cat -v just in case it contains some binary data.
-rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
Notice the different modify date of each gsi. My guess is /usr/bin/gsi was locally created and left over from something earlier. [And there is an admin bug: -rwxrwxrwx implies root is likely using a umask of 0! Root should use `umask 022']
I would like to understand what went wrong. Previously you said that you bui lt Gambit in a conventional way:
...
However, you later said that gsi was in /usr/bin/gsi . This is very strange because building Gambit conventionally will install gsi in /usr/local/Gambit- C/bin/gsi , so how come it ended up in /usr/bin/gsi? And why did it not run properly? I know you fixed your problem, but it would be worthwhile spending some time to understand what the problem is so that I can fix the makefiles if they are at fault, for the benefit of others.
The one in /usr/bin was a bash file which changed the directory to /usr/local/gambit/gsi and executed ./gsi
Maybe some of this came from Mint Linux' package manager.
Steve
On 2013-03-19, at 3:48 PM, Steve Graham jsgrahamus@yahoo.com wrote:
The one in /usr/bin was a bash file which changed the directory to /usr/local/gambit/gsi and executed ./gsi
OK... that's a sufficient explanation for me. It definitely wasn't created by the official Gambit Scheme installer.
Marc
From: Marc Feeley feeley@iro.umontreal.ca
To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 12:29 PM Subject: Re: [gambit-list] Running gambit program
On 2013-03-19, at 1:30 PM, Steve Graham jsgrahamus@yahoo.com wrote:
I think this is a link problem:
steve@steve-Satellite-L555D ~/Desktop $ which gsi /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (display "\n") (exit)
steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm 3
steve@steve-Satellite-L555D ~/Desktop $
Sorry for this.
I would like to understand what went wrong. Previously you said that you built Gambit in a conventional way:
On 2013-03-19, at 1:18 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Sorry, got ahead of myself. Went ahead and executed the following:
git clone https://github.com/feeley/gambit.git
(Downloaded it to my home directory and moved it to /usr/src)
cd gambit sudo ./configure --enable-single-host sudo make bootstrap sudo make bootclean sudo make sudo make check sudo make install
However, you later said that gsi was in /usr/bin/gsi . This is very strange because building Gambit conventionally will install gsi in /usr/local/Gambit-C/bin/gsi , so how come it ended up in /usr/bin/gsi? And why did it not run properly? I know you fixed your problem, but it would be worthwhile spending some time to understand what the problem is so that I can fix the makefiles if they are at fault, for the benefit of others.
Marc
---
Normally I download it to ~/Desktop, move it to /usr/src and build from there. Is there a better way to accomplish that. I would be willing to run it again. Probably be a good idea to start from a clean slate, too.
Steve
Hi,
Maybe you could try to add a
(display "\n")
before your (exit).
I think maybe the unix prompt is overwriting your output. This happened to me once.
François Magnan
On 2013-03-19, at 11:57, Steve Graham jsgrahamus@yahoo.com wrote:
Thanks, Marc. I don't see why I'm having these problems either. It worked fine under Windows 7.
steve@steve-Satellite-L555D ~/Desktop $ cat test.scm (display (+ 1 2)) (exit)
steve@steve-Satellite-L555D ~/Desktop $ gsi test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $ gsi Gambit v4.6.7
(display (+ 1 2))
3> (exit) steve@steve-Satellite-L555D ~/Desktop $ gsi :d- test.scm Gambit v4.6.7
,q
steve@steve-Satellite-L555D ~/Desktop $
From: Marc Feeley feeley@iro.umontreal.ca To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 19, 2013 9:45 AM Subject: Re: [gambit-list] Running gambit program
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
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list