Flashing str912 with one command - executing script from cfg

Hello, i want to flash my str-e912 board from olimex executing just one command from the console. I already have working configuration file and i can flash eval board using following script during telnet session:

flash protect 0 0 7 off
flash erase_sector 0 0 7
flash write_bank 0 test.bin 0
shutdown

All i want to achieve is to automate the whole process. I want to execute this script from cfg init file but don’t know how… It seems, that command

target_script 0 reset flash_str912.ocd 
``` doesn't work for me, because script isn't executed :(.

My config is [[here..](http://home.elka.pw.edu.pl/~msmoczyn/str912cfg.txt)

And output is [[here..](http://home.elka.pw.edu.pl/~msmoczyn/str912output.txt)

I'm using ARM-USB-OCD from Olimex.

Thanks in advance for any help!

Regards, Marcin Smoczynski](http://home.elka.pw.edu.pl/~msmoczyn/str912output.txt)](http://home.elka.pw.edu.pl/~msmoczyn/str912cfg.txt)