An easy way to do this would be to write a shell script whose arguments are
the variables that you want to pass to dx.  In the shell script you can
just dump the variables to a text file, and then run dx in script mode.
The script that gets executed woudl Import the text file and do the
appropriate thing.



Cameron Huddlestone-Holmes
<[EMAIL PROTECTED]>@opendx.watson.ibm.com on 09/18/2002 08:24:51
PM

Please respond to [email protected]

Sent by:    [EMAIL PROTECTED]


To:    Opendx-Users <[email protected]>
cc:
Subject:    [opendx-users] Passing variables in script mode



Is it possible to pass variables to a dx script when running in script
mode?

i.e.  dx -script <scriptname> [var1, var2]

Where var1 and var2 might be values for IsoSurface for instance.

I have a task I want to do multiple times on the same dataset with
different
values that can't be sequenced. Writing a C program with DXLink seems like
overkill (particularly when I don't know C!).

Cheers,

Cameron Huddlestone-Holmes
School of Earth Sciences,
James Cook University,
Townsville,
Queensland. 4811.
Australia.
[EMAIL PROTECTED]
+61 7 4781 4884
--



Reply via email to