[plt-scheme] mzscheme scripts

From: Tom Sgouros (tomfool at as220.org)
Date: Tue Apr 3 09:31:22 EDT 2007


Is there a way to use mzscheme as the interpreter for a shell script in
a single file?  I imagine something like this:

  (load "test.ss")
  (jump-up-and-down 12)
  (swing-side-to-side 37)

Or like this:

  /usr/bin/mzscheme < test.ss


  /usr/bin/mzscheme <<HERE
  (load "test.ss")
  (jump-up-and-down 12)
  (swing-side-to-side 37)

But none of these work.  I've tried a bunch of different run-time
options, but haven't found the magic combination, if there is one.  Of
course you can just do mzscheme -r file, but I'd like to get it all into
a single file.  What's the best way to do this?

Many thanks,


 tomfool at as220 dot org

Posted on the users mailing list.