Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Argument passing

From: agem:crosswinds at: 7-Apr-2001 1:44

>>>>>was:
[REBOL] Re: Argument passing From: jeff (view other messages by this author) Date: Thu, 5 Apr 2001 23:18:00 Andrew Martin passed along someone's question:
> > The question is - How does one pass a dynamic list of > > arguments to a REBOL script invoked from: a) the rebol > > command line b) a DOS batch file c) a Unix shell script?
With Core 2.5 you can take any number of args from the command line which are split into separate arguments found in system/options/args: <<<<<<<<<<< b,c) you can also use multi-command shell-scripts before/after the real rebol, maybe prepring an input-file with shell- tools, or a pipe #!/bin/sh #prepare arguments.. /boot/home/rebol/rebol -s $0 $your-args # $0 is scriptname, $@ original shell-arguments. change them.. : #some more shell work.. exit rebol[] [real rebol stuff..]