next up previous contents
Next: Initializing the random number Up: Miscellaneous commands Previous: Leaving NDAshell

Running a UNIX command from the NDAshell

 

!<unix-command> any UNIX command including possible parameters

This command starts a process and runs the specified UNIX command in it. NDA waits until the UNIX command has been executed. If an ampersand (&) is written at the end of the command line, the command is executed in the background.

Example: In this simple example a new SOM is created and trained. Then the weight matrix is stored into a disk file and UNIX program textedit invoked to show the values in the stored matrix.

...
NDA> load boston.dat
NDA> prepro -d boston -dout pre1 -e -n
NDA> somtr -d pre1 -sout som1 -l 5
...
NDA> save som1_W
NDA> !textedit som1_W.dat
...



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001