#!/bin/sh # # Configure Kermit input filter # [ $# -eq 0 ] && { echo "usage: kifcfg charset" >&2; exit 1; } pid=$(ps xao pid,command | nawk ' /^ *[0-9]+ \/opt\/perl\/bin\/perl .*\/kif$/ { print $1 }') sig=USR1; [ $1 = "cp437" ] && sig=USR2 exec kill -$sig $pid .