openocd config file seems it is not running a target_script

Hi guys.

I used to use openocd in windows but now I am using in kubuntu, and having a problem.

My openocd release is 947 and the config file came from release 247, so I should change several commands that died, like demaon_startup and etc…

Whe I run openocd from a text terminal like this

openocd -f at91sam9260.cfg

and in another terminal

telnet localhost 4444

Here I can call the script and every thing work.

But this scripts would be run from at91sam9260.cfg because this file has a call to it.

This is the content of at91sam9260.cfg

######################################

OpenOCD Configuration Script

Interface: Olimex JTAG USB OCD Tiny

Target: Atmel AT91SAM9260

Hardware: Atmel AT91SAM9260-EK

######################################

#define our ports

telnet_port 4444

gdb_port 3333

##############################

JTAG interface configuration

##############################

jtag_speed 1200

jtag_nsrst_delay 200

jtag_ntrst_delay 0

################

ft2232 options

################

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

ft2232_latency 2

#jtag_device

#jtag_device 4 0x1 0xf 0x3e

jtag_device 4 0x1 0xf 0xe

######################

Target configuration

######################

#target <reset_mode> <jtag#> [variant]

target arm9tdmi little 0 arm920t

#reset_config [combination] [trst type] [srst type]

#reset_config trst_and_srst separate trst_push_pull srst_open_drain

#Initialize and load program

target_script 0 reset /OpenSoftware/prj/work/scripts/at91sam9260_InitSdram.script

When I run openocd with this config file seems it does not run the target_script

Has somebody any help or link?

Best regards

Paulo