Sun Feb 13 12:10:23 EST 2011


Problem: how to upload a file from the unix command line, using a
running OpenOCD instance?  I tried something like this:

telnet localhost 4444  <<EOF
flash write_image erase $FILE $BASE elf

but that doesn't seem to work well as the pipe is closed before the op
finishes.  The op does execute though, but there's no way to wait for
its completion.  Looks like this needs "expect".