Startup Options

Environment Variables

Several NMRVIEW options can be controlled by specifying UNIX environment variables.
NMRVIEW3HOME
Specifies the directory in which NMRView will look for the following directories: tcllib,html,reslib. If not specified, NMRView uses: /usr/local/data/nmrview
NMRVIEW3HELP
Specifies the program that NMRView uses to display the hypertext help files. If not specified the program used is "netscape".
The method used to set these depends on the type of UNIX shell in use. For example, with the C-shell, use

setenv NMRVIEW3HOME /usr/local/nmrview

Command Line Options

Several options to NMRView can be specified on the command line. Several are generic to Tk applications (and also to many X-windows applications). These are listed below.
-display
Display to use
-name
Name to use for application
-sync
Use synchronous mode for display server
--
Pass all remaining arguments through to script
The NMRView specific options must follow a "--" and are listed below.
Options/Arguments:
-b <database>
name of database to open
-d <dataset>
name of dataset to open
-g
Start up Graphical User Interface
-s <startup.script>
script file to source
-w <window>
name of window to open
For example, to startup with a database named "MyDatabase" use

nmrview3 -- -b MyDatabase

To startup and run the commands in a file called startup.tcl use

nmrview3 -- -s startup.tcl