[plt-scheme] dumb script question

From: Daniel Silva (daniel.silva at gmail.com)
Date: Wed Nov 24 19:34:45 EST 2004

#!/bin/sh
#|
exec mzscheme -C "$0" "$@"
|#

(define (main argl)
  (display "I am ")
  (display (car argl))
  (newline))

--------------------------------
Either:
chmod u+x my-script.scm
./my-script.scm

or:
mzscheme -C my-script.scm


Daniel

On Wed, 24 Nov 2004 15:55:12 -0800 (PST), Michael Vanier
<mvanier at cs.caltech.edu> wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> I'm writing a script using mzscheme as the scripting language.  I want to
> write a usage message that prints out the name of the script followed by
> the arguments.  I can get the arguments just fine, but how do I retrieve
> the name of the script itself?
> 
> Mike
> 
>


Posted on the users mailing list.