[plt-scheme] dumb script question
You might also want to check out (lib "cmdline.ss").
Robby
At Thu, 25 Nov 2004 09:34:45 +0900, Daniel Silva wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> #!/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
> >
> >