[Navigation]

Environment Variables

Environment variables can be set to alter the behaviour of the software. They can be set system wide (affects everyone), specific to a user or specific to a terminal. Generally you will never need to set one of these.

The following environment variables can be used:

MANDIR
Location of the manual pages
BDSPRT
A three character string to override the settings in master.dev
SINGLE
If set then the system will run in single user mode.
BDSGREP
If set then will over-ride the default grep command.
BDSMAIL
A number indicating after how many prompts to check for e-mail.
BDSEDIT
Editor to use within Premvet 5
XMCD_LIBDIR
Where the CD player track database resides.
VFAXDIR, FXNAME
Need to be set if you are using VSIfax for FAX generation.
WebServer
Defaults to system name - can be added to /etc/default/vet3000. Set it to "" for straight 'file' access (Non-Networked 'Host' Systems). If you have a network version of OSR5 but have not yet configured it then set WebServer to localhost.
WWWDIR
Will default to http://WebServer/ If set specify the full URL for you home page
WWWMAN
Will default to http://WebServer/premvet/index.html If set specify the full URL to the manual pages
PVBROWSER
for terminals that support running windows apps then this will default to Internet Explorer otherwise will default to lynx.
If overridden then for windows, this must be set to the full pathname, for other browsers as long as it is in your path.
VisionDir
Defaults to P:\, set this to whatever drive you have mapped to the vet system data directory (usually /u/vetdata).
MSSpread
Pointer to where the Microsoft application for dealing with spreadsheets (.csv) resides - Defaults to Excel.
MSWord
Pointer to where the Microsoft application for dealing with documents (.doc) resides - Defaults to WinWord.
WinWord
Pointer to a Windows editor (.txt) - defaults to Write


Setting Variables

Environment variables can be set in the following locations, the order listed is the order the system will process them in.

  1. /etc/profile
  2. $HOME/.profile
  3. /etc/default/vet3000
  4. /u/vetdata/common.tcf
  5. /u/vetdata/tty.tcf
  6. $HOME/tty.tcf
  7. $HOME/user.tcf


Terminal Control Files (.tcf)

To allow you to set individual variables for terminals the system will check for terminal control files on startup. It will check the main vet directory (usually /u/vetdata) then your Home directory. The file will be based on the device you are connecting from.

For example:

You connect on /dev/tty002 then the control file will be called tty002.tcf

Connect from the machine tomwin.uucp.com the control file will be tomwin.uucp.com.tcf

Connect from the machine 192.168.1.10 the control file will be 192.168.1.10.tcf

So if you don't want to use Internet Explorer as your web browser, then on your PC (tomwin) add the following to the control file (/u/vetdata/tomwin.uucp.com.tcf)

PVBROWSE="c:\Program Files\Netscape\Communicator\Program\netscape.exe"
export PVBROWSE

Once the terminal control files have been check the file user.tcf in your home directory will be read. This will override any other settings. The file common.tcf will be checked first, this is NOT user or terminal specific, you should add any options 'common' to all users.


Top Classic New-Style Chapters Sections Index Search