#!/bin/bash
############################################################
#
# Suggested start-up script for 'qle'
#
############################################################
#
# Using a start-up shell script allows you to set the
#  X-window font to be used by the logger.
#
# '--' options are interpreted by qle, e.g. '--myCall'.
# '-'  options are for the window manager, e.g '-geometry'.
#
############################################################
#
# Change to working directory if running from somewhere else:
#
cd /usr/share/qle
#
# Kill lingering 'rigctld' servers:
#
killall rigctld
#
# and start up a new 'hamlib 'rigctld' server process in the
# background. Adjust -m and -r options first!!!
#
rigctld -m314 -s1200 -r/dev/ttyUSB1 &
#
# PS: use 'man rigctld' to set up the 'rigctld'.
#
# Now run up the 'qle' logger program.
# Suggested other options:
#    -font "<some-other-font>"
#
perl qle.pl -geometry "800x680+100+20" --debug=0 $1 $2 $3 $4
#
# Killing rigctld process:
#
killall rigctld
#
############################################################
#
# end of qle startup script
#
############################################################

