Setup for Lab Results via E-Mail
Idexx/Axiom and others, will E-Mail you lab results, these can be captured and attached directly onto the appropriate animals card automatically. See the main guide for details.
This guide is a little technical but as long as you follow the steps it will work fine. You can also just phone support and they will set it up for you.
- Create a normal unix user called 'lab'
(Make a note of the HOME directory, either /u/lab or /u/home/lab) - Login as root and shift to the HOME directory for lab with
cd /the/home/directory/from/step/above - Type :
echo '"| /usr/local/bin/deliver lab"' > .forward - Put the deliver script into place with:
cp /u/source/scripts/.deliver .This script will use default settings for automated lab work. If this does not fit in with your scheme see the 'How Do I Change It' section of the main guide.
- Type:
chown lab:group .deliver .forward - Tell the lab to send the results to lab@your-machine-domain
- You also need to make sure the 'lab' user can access the mail, by default
it will access premvet. If it does then,
login as lab which will start up Premvet, press F6
to get to the Vet> prompt and type
ste $HOME/.profile, go to the end and change exec vet to exec mutt. Press F2 to save and exit, press ^d to return to Premvet and exit. Next time you login you will go to mail straight away.
Optional Options
Send a copy of the mail somewhere else
You may want to have a copy of the lab mail sent to a 'general' user, the office staff, all the vet's etc. when it arrives. This is very easy to do:
- Login as root
-
cd /u/home/lab -
ste .forward - Add a new line for the mail address(es) you want a copy
to go to. In the example below, we have added two: vets (so all the Vet's
get a copy) and 'lab-staff' (so all the lab-staff gets a copy).
It is a good idea to use Aliases so you don't have to remember to change
this file when staff change over.
"| /usr/local/bin/deliver lab" vets lab-staff