The CardFive applications software used for creating laminated identity cards for Personal Licence holders under the 2004 Liquor Licencing Act are integrated into APP using a wrapper script created by C W Fulford to launch the application.
Note that CardFive can be run directly with the the target file name as the only parameter.
To create the card we need to find the template and the scanned photograph, and so run a wrapper script to load CardFive.
#!/cygdrive/s/flare/utils/bash.exe
# File : cardfive
# Path : l:/flare/etc
# Author : Clifford W Fulford
# Last update : 9 September 2005
# Copyright (c) 2005 Clifford W Fulford. All rights reserved.
########################################################################
PATH=/cygdrive/s/flare/utils:$PATH
#set -x
OutputName=`gawk -F= '$1 ~ /^OutputName/{printf $2}' $TEMP/fssexp.ini`
echo -e "Setting up data files for CardFive...\nPlease wait!"
mkdir $TEMP\\$OutputName
cd $TEMP\\$OutputName
#gawk '$1 !~ /Export/{print $1}' $TEMP/fssexp.ini >env
#. ./env
mv C:/Flare/FSS/exports/$OutputName.csv $TEMP/fsslicence.csv
cp.exe L:/templates/badge.car $OutputName.car
c:/Program\ Files/CardFive/CardFive.exe $OutputName.car;
clear
echo -e "\nWaiting for CardFive to write back to disc... Please wait!\n"
sleep 4;
echo -e "\Tidying up.\n"
mv $OutputName.car L:/licences/$OutputName.car
rm $TEMP/fsslicence.csv
The script uses fssexp.ini exported by Flare/Authority to find the export file with the licence holders details. A copy of the template created in CardFive is created with the same file name but using the CardFive extension "car". CardFive is then run with new file name as its only parameter.
The script then waits in background until CardFive is closed when the completed licence is moved to the Liquor Licencing file store and the temporary files are removed.
For detailed information please contact the systems administrator:
Clifford W Fulford 0709 229 5385 fulford@fulford.net
Webmaster |
The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.
Copyright © 2003-2006 Clifford W Fulford