OpenOCD comes with a target configuration script library. These scripts can be used as-is or serve as a starting point.
The target library is published together with the OpenOCD executable and the path to the target library is in the OpenOCD script search path. Similarly there are example scripts for configuring the JTAG interface.
The command line below uses the example parport configuration script that ship with OpenOCD, then configures the str710.cfg target and finally issues the init and reset commands. The communication speed is set to 10kHz for reset and 8MHz for post reset.
openocd -f interface/parport.cfg -f target/str710.cfg \ -c "init" -c "reset"
To list the target scripts available:
$ ls /usr/local/lib/openocd/target arm7_fast.cfg lm3s6965.cfg pxa255.cfg stm32.cfg xba_revA3.cfg at91eb40a.cfg lpc2148.cfg pxa255_sst.cfg str710.cfg zy1000.cfg at91r40008.cfg lpc2294.cfg sam7s256.cfg str912.cfg at91sam9260.cfg nslu2.cfg sam7x256.cfg wi-9c.cfg