# # Sample Kermit script set modem type usrobotics set line /dev/cua2a2 set speed 9600 SET PARITY NONE SET PROTOCOL XMODEM SET FLOW RTS/CTS assign \%c 0 assign \%p 18001234567 assign \%f /file :start RUN clear hangup inc \%c 1 # add 1 to counter if > \%c 10 goto end echo \ \%c tries to send file \%f dial \%p if failure goto fail pause 3 send /protocol:xmodem \%f # If send successful, exit with good status and success message. if failure goto fail hangup echo \%f transferred exit 1 :fail hangup echo ERROR: Tranfer failed exit 0 :end echo ERROR: too many retrys, Dial failure exit 0