Vatbook Period Reset - E-Mail
When the Vatbook (Daybook) is reset either by a user or automatically by the automation manager a csv (Comma Separate Value) file file is created.
This csv file can be loaded into Excel, Numbers - any spreadsheet really to allow you to look/analyis the figures. Normally you would use the Windows Link option to load them locally. However, you may want:
- A copy for your house machine
- Remote sites - you want to look at them locally
- Security copy
Lets look at Step 2 first - what do you want done, to be a little more generic in it's application it's not preset to use E-Mail - it's up to you. (As of Version 03.01.09 November 2009 we have included a sample, prior to that cut and paste).
The sample file is script/vatbook.example, so lets use that:
- Press
F6to get toVet>prompt - Type:
ste script/vatbook.sh(Use any editor, we are using ste) - If you get a blank screen and on the Nov 2009 or later release, press F5
at Insert file prompt type
script/vatbook.example, if on an earlier version cut and paste the following:
The screen should now resemble:
#! /bin/ksh echo "`date` $1 $2" | /usr/local/bin/mutt -s "Vatbook Reset" -a text/vatbook.csv root exit 0
- Notice the root at the end of the third line, replace that with your e-mail address.
- Press
F2followed byYesto save the file - Type
chmod +x script/vatbook.sh - Type
exit(you are back where you started so return a few times to re-fresh the screen).
That little script will take the vatbook file and send it to whoever. The same procedure can be used to copy the file or .... - speak to support to help you fine tune what you want to do.
Finally, we need to tell Premvet to take that action when the Period is reset.
This is done via a Params.txt entry
Vatbook_Reset_Cmd = script/vatbook.sh