cerner printer testing wrapper script

When you want to send test print jobs through the cerner application you have to use a long command that is impossible to remember and stick the print queue in the middle which is a pan and prone to error.  So I created this little program to help out.

To run the script you simply run.  Where ps is the type of print jobs that  can vary form ps, intermec, zebra to ascii.

./script_name ps queuename

#!/bin/bash
#
# Written By:Bryon
# Purpose: to test cerner printing
QUEUENAME="$2"

intermec() {
       $cer_forms/print_file -fimadvanc -P$QUEUENAME $cer_forms/imec_3400.dat
}

zebra() {
        $cer_forms/print_file -fzbdyn16rv -P$QUEUENAME $cer_forms/zebra_test.dat
}

ascii() {
        $cer_forms/print_file -fport -P$QUEUENAME $cer_forms/test_file.txt
}
#ps = postscript
ps() {
        $cer_forms/print_file -fpost -P$QUEUENAME $cer_forms/card.ps
}

#
case "$1" in
  intermec)
        intermec
        ;;
  zebra)
        zebra
        ;;
  ascii)
       ascii
        ;;
  ps)
        ps
        ;;
  *)
        echo "what kind of print job would you like to send"
        echo "Example: test_print_cerner (ps|ascii|zebra|intermec) queuename"
esac
exit