How to control JimTCL from a programme?

Hi everyone,

Right now I’m trying to flash a load of microcontrollers with unique serial numbers, and so would like to be able to control OpenOCD directly from a programme (rather than do each one by hand). However, though OpenOCD’s JimTCL internal documentation is nice and clear, I can’t see any examples of JimTCL being controlled from an external programme - has anyone got a link to an example of this anywhere?

Would the controlling programme open a connection to the Telnet port (or the GDB port?) and send commands down to OpenOCD via that? I’d guess so, but if there are code fragments out there I’ve completely failed to find them so far. All comments and suggestions welcomed! :frowning:

Thanks!, …Nick Pelling… // Surbiton, Surrey, UK