printing using batch script

Jeremy Allison jra at samba.org
Fri Jul 11 17:58:25 MDT 2014


On Tue, Jul 08, 2014 at 10:29:06AM +0530, shivappa sangapur wrote:
> Hi Team,
> 
> 
> I have some very interesting logs(to my knowledge).
> 
> Observed in samba-3.6.x and samba-4.1.x(Fedora OS)
> 
> 
> 
> *I)run below command from windows “cmd” prompt.*
> 
> 1.“copy filename \\ipaddress\print”
> 
> 2.Output job succeeds.
> 
> *Observation:* Observed 4 times openfile and closefile requests are
> happening.
> 
> First 3 requests with zerolength, 4th having data and writing happens here,
> again 5th zerolength.
> 
> Ref:Wireshark capture is attached
> 
> 
> 
> *II)print using normal driver print (right click on page then print)*
> 
> 1.Print one file.
> 
> 2.Output job succeeds.
> 
> *Observation:* Only once openfile and closefile request is happening, feel
> its correct.
> 
> 
> 
> Please find my questions below.
> 
> 1.since the same file is printed in both the cases, why the behavior is
> different and how the client request is handling?

You're using different client printing method. The client
redirector is chosing what methods to use.

> 2. Even though sent data is proper why its showing “zero length” in first 3
> requests?

Unfortunately we can't answer why the client
does what it does given high level requests.
These are completely dependent on the client.

Cheers,

	Jeremy.


More information about the samba-technical mailing list