Appendix: On the Unix end

There are several things that need to be correctly set before you can run physica. The Unix shell (the supervisor that interprets and performs your Unix commands) on newton needs to be told what type of terminal you are on, what type of hardcopy output device you have, and where on the system disk are the files required by physica. Hopefully, your .login file has made these determinations for you. To check, issue the Unix command setenv; it will report the list of the so-called environment variables that are currently set. If you do not see the right definitions (see below), here's what you may need to type at the shell prompt, before starting up physica:

setenv TRIUMF_FONTS /usr/local/lib/triumf
setenv TRIUMF_TERMINAL_TYPE X
setenv TRIUMF_PLOTTER_TYPE POSTSCRIPT

If you would like to have physica start up with settings different from the default ones, you can create your own initialization file, init_filename, containing whatever set ... commands you wish. In order to tell physica to read this file when it starts, you need to tell it where to look, like this:

setenv PHYSICA_INIT init_filename


Up: Table of contents Previous: 8. Real programming: if's and do's