OPTION to create the option tree or do it manually.mcr and prim sub-directories. You will also need to
make sure to copy over the template commands.cnf file.$NMROOT/nxm/ that points to your option tree).UPDATE to add each of the commands to the dictionary.
COUNTER takes in two numbers, START= and
END= which default to 1 and 10 respectively.SAYHELLO takes in a single string NAME= which
defaults to "Anonymous".nM> counter ,, 9 INFO: Counting from 1 to 9 [COUNTER] INFO: Count is at 1 [COUNTER] INFO: Count is at 2 [COUNTER] INFO: Count is at 3 [COUNTER] INFO: Count is at 4 [COUNTER] INFO: Count is at 5 [COUNTER] INFO: Count is at 6 [COUNTER] INFO: Count is at 7 [COUNTER] INFO: Count is at 8 [COUNTER] INFO: Count is at 9 [COUNTER] INFO: Done counting [COUNTER] nM> nM> nM> sayhello Tony INFO: Hello TONY! [SAYHELLO]
nmstartup.mm macro in
your $HOME directory (e.g. /home/student/nmstartup.mm) with the following contents:
! customize user's NeXtMidas environment (put this into $HOME/nmstartup.mm)
startmacro
say "Running my (^{env.user}'s) custom nmstartup.mm macro..."
! portable way to get path to TRAIN option tree under user's home dir ($HOME/nmopts/nxm/train/)
file name trainDir (^{env.home},nmopts,nxm,train)
! define train option tree and add it to the path
option train trainDir
path add train
endmacro
The next time you run nmstart, your $HOME/nmstartup.mm macro gets
automatically executed; which will define your TRAIN option and add it to the path.