Subject: Re: scheme scripting
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 2000/07/06
Newsgroups: comp.lang.scheme
Message-ID: <8k35fq$2gq76$1@fido.engr.sgi.com>
James Wray  <wray@cs.byu.edu> wrote:
+---------------
| I wanted to create a scheme script to do something standalone w/o
| input, but I cannot find a way to read command line arguments.
+---------------

*Which* Scheme implementation are you using??!?  Almost all of them
can do what you're asking, but they all do it differently. E.g., for
MzScheme the command-line arguments appear in a global variable named
"argv" (a vector):

	% cat foo
	#!/usr/local/bin/mzscheme -r
	(write argv)
	(newline)

	% foo bar baz gorp
	#3("bar" "baz" "gorp")
	% 


-Rob

-----
Rob Warnock, 41L-955		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043