started shell script to write spi