Hi all, I have working properly a print server with samba-2.2.6 and using the printing system lprng. I have just the following problem, when I open the window queue to see the jobs in it from Win2K and WinNT workstation the queues are not refreshing, I have to push F5 key continously to refresh the queue jobs information. Is there a way in samba or windows (I don't know where is the origin of the problem) so that it refreshs automaticly every n seconds ?? Thanks in advance to any reply, My smb.conf parameters regarding the priting system: ====================================================[global] printcap name = /etc/printcap load printers = yes show add printer wizard = yes printer admin = @admin printing = lprng [printers] comment = Impresoras path = /var/spool/samba browseable = yes printable = yes public = yes writable = yes create mode = 0700 guest ok = yes print command = /usr/bin/lpr -P %p %s && rm %s lpq command = /usr/bin/lpq -P %p lprm command = /usr/bin/lprm -P %p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc release %p %j [print$] path = /usr/local/samba/printers guest ok = yes browseable = yes public = yes read only = yes write list = @admin ==================================================== Regards, ====Fernando Ruza Rodr?guez fruza@yahoo.com _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es
daniel.jarboe@custserv.com
2002-Nov-08 17:55 UTC
[Samba] How to Refresh jobs in samba queues ??
No help for you, but I have the same problem and would also be interested in any responses. ~ Daniel fruza@yahoo.com wrote:> Hi all, > > I have working properly a print server with > samba-2.2.6 and using the printing system lprng. I > have just the following problem, when I open the > window queue to see the jobs in it from Win2K and > WinNT workstation the queues are not refreshing, I > have to push F5 key continously to refresh the queue > jobs information. > > Is there a way in samba or windows (I don't know where > is the origin of the problem) so that it refreshs > automaticly every n seconds ??
Gerald (Jerry) Carter
2002-Nov-08 19:53 UTC
[Samba] How to Refresh jobs in samba queues ??
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 8 Nov 2002, Fernando Ruza wrote:> Hi all, > > I have working properly a print server with > samba-2.2.6 and using the printing system lprng. I > have just the following problem, when I open the > window queue to see the jobs in it from Win2K and > WinNT workstation the queues are not refreshing, I > have to push F5 key continously to refresh the queue > jobs information. > > Is there a way in samba or windows (I don't know where > is the origin of the problem) so that it refreshs > automaticly every n seconds ??This is due to bugs in the job change notification implementation in Samba 2.2. It has already been fixed in SAMBA_3_0. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE9zBWwIR7qMdg1EfYRApTvAKCVSYQBtgRwvBJN0aBiJdS9uWJuswCgh3eS ShqrK5b2TdxzWLnp9wgpU4k=VFgw -----END PGP SIGNATURE-----
Hallo Thomas Bork, Du schriebst:> The string > > char msg[8 + sizeof(fstring)]; > > is on line 342 here? Patch failes.I applied the patch by hand, but no luck. I have to to push F5 key continously to refresh the queue jobs information. The complete patcht part now looks like that: /********************************************************************** ****** Send a message saying the queue changed. *********************************************************************** *****/ static void send_queue_message(const char *printer_name, uint32 high, uint32 low) { char msg[sizeof(PRINTER_MESSAGE_INFO)]; PRINTER_MESSAGE_INFO info; ZERO_STRUCT(info); info.low = low; info.high = high; info.flags = 0; fstrcpy(info.printer_name, printer_name); memcpy( msg, &info, sizeof(PRINTER_MESSAGE_INFO)); message_send_all(conn_tdb_ctx(), MSG_PRINTER_NOTIFY, msg, sizeof(PRINTER_MESSAGE_INFO), False, NULL); } tom
daniel.jarboe@custserv.com
2002-Nov-11 13:31 UTC
[Samba] How to Refresh jobs in samba queues ??
Same results here. The problem persisted even with the patch. ~ Daniel tombork@web.de wrote:> Hallo Thomas Bork, > > Du schriebst: > > >>The string >> >>char msg[8 + sizeof(fstring)]; >> >>is on line 342 here? Patch failes. >> > > I applied the patch by hand, but no luck. I have to to push F5 key > continously to refresh the queue jobs information. > > The complete patcht part now looks like that: > > /********************************************************************** > ****** > Send a message saying the queue changed. > *********************************************************************** > *****/ > > static void send_queue_message(const char *printer_name, uint32 high, > uint32 low) > { > char msg[sizeof(PRINTER_MESSAGE_INFO)]; > PRINTER_MESSAGE_INFO info; > ZERO_STRUCT(info); > > info.low = low; > info.high = high; > info.flags = 0; > fstrcpy(info.printer_name, printer_name); > > memcpy( msg, &info, sizeof(PRINTER_MESSAGE_INFO)); > > message_send_all(conn_tdb_ctx(), MSG_PRINTER_NOTIFY, msg, > sizeof(PRINTER_MESSAGE_INFO), False, NULL); > } > > > tom > >