I have just started off with the shell programming.
I need to execute a GDB command from a shell script. I have been trying to get this working from quite sometime but not getting it quite right.I have this specific requirement that i read byte data from a file and write that data to the target device which is connected thru GDB. This is done in a loop so that i write entire data onto the target. Everything is done except writing the data to the target.
I hope i am clear in asking the query. Please help to know whether it is possible to do it in shell script or is there any work around for this.

Thanks in advance !!