title: Get arm-none-eabi-gdb to load elf, continue, and then exit from commandline
body: <p>I am working with a distributed embedded system, one that communicates over RF and are located far apart. For this reason I want to automate the flashing of new firmware on these while developing, they are all connected to a linux box and a stlink programmer that has a swd connection</p>
  
  <p>What i am trying to do is to load the firmware by using the command in a bash script
  <code>arm-none-eabi-gdb file.elf -ex "target extended-remote ip:3333" -ex "load" -ex "continue" -ex "quit"</code>
  on every device, the problem with this is that i cannot have the program running while trying to quit gdb to restart it and connect to another one. </p>
  
  <p>Any suggestions is much appreciated, i would preferably like one command for gdb that does load, continue and then exits completely. leaving the device running the new firmware.</p>