The printer is not reading the Epson Codes which i passed . The settings which i gave through from my application (java ) is overriden by the configuration settings(remote printer driver) in server and when the request went to the printer , the windows driver settings overrides the settings which has been set in the server . found out that Printing happens only based on the windows driver settings.
I have an option in windows printer settings where i can choose settings either from driver or from printer DIP settings . So i have to mention that in the windows driver settings .
Its very unlucky that i couldn't provide a solution from shell script. Now i call print through my java application directly and since i used filestreams i was not getting any junk characters printed on the Dot matrix printer . So i went on configuring the printer settings as per my requirement and have adjusted the empty lines in my file so that the printer length matches the file length and i was able to print my file with the proper alignment.
This
Epson site was pretty useful to me. Maybe someone in need can make use of the same
Thanks guys for the support you gave me.
I am just more interested to learn Unix programming.