Cwdaemon is a small daemon which uses the pc parallel or serial port and a simple transistor switch to output morse code.
Cwdaemon uses the PC speaker or your soundcard to generate a sidetone. The program is called as root, with "cwdaemon -p portnumber -s device". If no portnumber is given, the default portnumber 6789 is used. Device should be one of ttyS0, ttyS1, parport0 or parport1. Please read the README in the source package for information how to setup your parallel/serial port.
Cwdaemon can be tested by installing the netcat package and type: "nc -u localhost 6789". Any character typed on the command line will be sent to cwdaemon.
You could also use the following shell script which is character based.
trap 'stty "$old_tty_settings"; exit 0' INT
echo "Press (CTRL-C) to interrupt..."
while true; do
nc -u localhost 6789