On Wed, 21 Nov 2007 02:25:20 -0800 (PST), mamta81
<roy.mamta@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>i want to print some files in a linux server using sockets.i hav used
>the following code
[quoted text clipped - 5 lines]
>lpr -Plp1 Loan.RPT which will be sent from the client pc. The client
>is in windows. Please help
I think you would be better off waiting until you had accumulated the
entire file before printing. Otherwise you may get just tiny dribbles
at a time, which will tie up your printer for hours. Execing to print
will likely start a fresh page for each burst. See
http://mindprod.com/jgloss/printing.html
See the code in the com.mindprod.http package to read a socket input
stream coming in a bit at a time. See
http://mindprod.com/products1.html#HTTP
and also
http://mindprod.com/products1.html#FILETRANSFER

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com