in reply to timed ^C executing
A good choice is to use a Perl script to control your simulator through PIPE, so that the Perl script can send "cont" command to your simulator.
Real perl ipc doc for details.