The problem is that, ifhp from 3.5.13 version to 3.5.15, as I could verify, there are some changes in the code that make the option pjl_waitend_byjobname not work properly.
The 3.5.12 version of ifhp works properly with that option. It is also corrected the problem with comas in the jobname. The two problems I have detected from 3.5.13 version are: 1) If the jobname have capital and small letters, the job remains stalled forever, not being detected the end-of-job. For example: ifhp -J"Name_Of_Job" . would never finish. In any place of the code there is a "lowercase(endname)" missing. So the program stays comparing "Name_Of_Job" with "name_of_job" forever and never matches. Like that: echo "TEST" | ./ifhp -Tdev=laser22k%9100,trace,debug=2,logall,model=hp4100 -J"Name_Of_Job" .... ifhp 12:34:05.570 [638184] Do_waitend: job 'end', name 'name_of_job_', result '<NULL>', echo '[EMAIL PROTECTED]', endname Name_Of_Job_ ifhp 12:34:05.570 [638184] Do_waitend: echo '[EMAIL PROTECTED]', want 'Name_Of_Job_' ifhp 12:34:05.570 [638184] Do_waitend: timeout 48, Outlen 0 '' ... .... forever ... ... 2) If jobname is not specified (-J is not used), then the end-of-job is detected wrongly before it happened. This is because the program generates an endname similar to "12_.", which compares with "_" (empty jobname) using the safestrstr function, and this makes an end-of-job detection immediately, which is wrong. These lines show this problem: echo "TEST" | ./ifhp -Tdev=laser22k%9100,trace,debug,logall,model=hp4100 ... ifhp 12:36:34.180 [665796] Do_waitend: waitend '1', end_status 'busy idle', Send_job_rw_timeout 0, waitend timeout 0, interval 120, ctrl_t_interval 3 ifhp 12:36:34.180 [665796] Do_waitend: getting end using 'pjl job/eoj' ifhp 12:36:34.180 [665796] Do_waitend: endname '12_36_34.180_pid_665796' ifhp 12:36:34.180 [665796] Do_waitend: timeout 120, Outlen 23 '[EMAIL PROTECTED] ^[%-12345X' ifhp 12:36:34.180 [665796] Do_waitend: job '<NULL>', name '<NULL>', result '<NULL>', echo '[EMAIL PROTECTED]', endname _ ifhp 12:36:34.180 [665796] Do_waitend: echo '[EMAIL PROTECTED]', want '_' ifhp 12:36:34.180 [665796] Do_waitend: ECHO END detected ifhp 12:36:34.180 [665796] Do_waitend: JOB detected pjl ECHO END ... ifhp 12:36:35.611 [665796] Do_accounting: pagecounter 78393, pages 0 ifhp 12:36:35.611 [665796] Accounting: script '<NULL>', Accountfile '<NULL>', output 'fileend '-b0' '-T3' '-q665796' '-p78393' '-t2004-02-18-12:36:35.611'' ifhp 12:36:35.612 [665796] Process_job: done I suppose that this will be corrected in next versions. Regards, Fernand Blanco. -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Steve Kersley Enviado el: miercoles, 18 de febrero de 2004 11:19 Para: [EMAIL PROTECTED] Asunto: Re: LPRng: Problems with HP4200 > pjl_waitend_byjobname reportedly work for HP4200. althought i am using it on > HP4100 for accounting (runs perfectly). I'm sure it does work - it just doesn't seem to want to work for me! Does anyone have any other thoughts on anything I can try? Printer settings? ifhp tweaks? > i think most of the discussion is on HP4100. search it on > http://groups.yahoo.com/group/lprng/messages OK, will check and see whether anyone else has had similar problems with a 4100. Cheers, Steve Kersley, IT Manager, Keble College, University of Oxford. ---------------------------------------------------------------------------- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. ---------------------------------------------------------------------------- - ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
