Yes, stupid me missed the vital line of code and when tested it seemed to work.
My humble apologies Patrick.
Christopher
Date: Thu, 13 Sep 2001 15:38:34 -0700 (PDT)
From: User Papowell <[EMAIL PROTECTED]>
> Huh? I just tried this:
>
> lp:
> :af=127.0.0.1%2002
> :filter=/usr/libexec/filters/ifhp
> :lf=log
> :lp=/dev/null
> :mx=0
> :rw@
> :sd=/var/spool/lpd/%P
>
> And got this:
>
> h110: {314} % nc -l -p 2002
> jobstart '-Hh110.private' '-nroot' '-Plp2' '-kcfA271h110.private' '-b3' '-t
>2001-09-13-15:31:00.000'
> h110: {315} % !!
> nc -l -p 2002
> filestart '-q74274' '-p0' '-t2001-09-13-15:31:00.362' '-Aroot@h110+271' '-n
>root' '-Plp2'
> h110: {316} % !!
> nc -l -p 2002
> fileend '-b0' '-T5' '-q74274' '-p0' '-t2001-09-13-15:31:05.458' '-Aroot@h11
>0+271' '-nroot' '-Plp2'
> h110: {317} % !!
> nc -l -p 2002
> jobend '-Hh110.private' '-nroot' '-Plp2' '-kcfA271h110.private' '-b3' '-t20
>01-09-13-15:31:10.000'
>
> Printer: lp2@h110
> Queue: no printable jobs in queue
> Status: send_failure_action 'JREMOVE' at 15:30:39.617
> Status: job 'cfA241h110.private', removing job - status JREMOVE at 15:30:3
>9.617
> Status: removing job 'cfA241h110.private' - JREMOVE at 15:30:39.618
> Status: waiting for subserver to exit at 15:31:00.317
> Status: subserver pid 74273 starting at 15:31:00.320
> Status: accounting at start at 15:31:00.320
> Status: opening device '/dev/null' at 15:31:00.322
> Status: printing job 'root@h110+271' at 15:31:00.322
> Status: processing 'dfA271h110.private', size 3, format 'f', IF filter 'if
>hp' at 15:31:00.322
> Status: IF filter 'ifhp' filter finished at 15:31:10.502
> Status: printing finished at 15:31:10.502
> Status: accounting at end at 15:31:10.502
> Status: finished 'root@h110+271', status 'JSUCC' at 15:31:13.580
> Status: subserver pid 74273 exit status 'JSUCC' at 15:31:13.581
> Status: [EMAIL PROTECTED]: job 'cfA271h110.private' printed at 15:31:13.581
> Status: job 'cfA271h110.private' removed at 15:31:13.582
> Filter_status: file program = '/usr/bin/file -' at 15:31:05.412
> Filter_status: started FILE_UTIL- 'file' at 15:31:05.412
> Filter_status: file information = 'ascii_text' at 15:31:05.457
> Filter_status: initial job type 'ascii_text' at 15:31:05.457
> Filter_status: decoded job type 'PCL' at 15:31:05.457
> Filter_status: job type 'PCL' at 15:31:05.457
> Filter_status: transferring 3 bytes at 15:31:05.458
> Filter_status: 100 percent done at 15:31:05.458
> Filter_status: data sent at 15:31:05.458
> Filter_status: sent job file at 15:31:05.458
> Filter_status: pagecounter 0, pages 0 at 15:31:05.458
> Filter_status: connect to '127.0.0.1 port 2002' failed - Connection refuse
>d at 15:31:05.458
> Filter_status: connect to '127.0.0.1 port 2002' failed - Connection refuse
>d at 15:31:06.461
> Filter_status: connect to '127.0.0.1 port 2002' failed - Connection refuse
>d at 15:31:07.471
> Filter_status: connect to '127.0.0.1 port 2002' failed - Connection refuse
>d at 15:31:08.480
> Filter_status: done at 15:31:10.501
>
> > From [EMAIL PROTECTED] Wed Sep 5 07:48:50 2001
> > To: [EMAIL PROTECTED]
> > Subject: Re: LPRng: Network based accounting file
> > Date: Wed, 05 Sep 2001 23:54:22 +1000
> > From: "C. L. McAvaney" <[EMAIL PROTECTED]>
> >
> >
> > Date: Mon, 6 Aug 2001 18:36:40 -0700 (PDT)
> > From: Patrick Powell <[EMAIL PROTECTED]>
> >
> > > > Subject: LPRng: Network based accounting file
> > > > From: "C. L. McAvaney" <[EMAIL PROTECTED]>
> > > >
> > > > G'day all,
> > > > I am currently trying to upgrade LPRng and IFHP from versions 3.6.1
>2 and
> > >3.3.9
> > > > (respectively) to versions 3.4.4 and 3.7.4 (respectively).
> > > >
> > > > The main problem I am encountering at the moment is an difference i
>n the
> > >way
> > > > accounting files are handled. The documentation says that if the a
>f:
> > > > parameter is of the format host%port, then a connection will be ope
>n to t
> > >hat
> > > > and the accounting data is written. Well I have discovered that LP
>Rng se
> > >ems
> > > > to be opening that connection correctly, but IFHP isn't doing the s
>ame.
> > >IFHP
> > > > seems to be opening a file of the name "host%port", instead of open
>ing a
> > > > connection to it.
> > >
> > > BUG ! BUG ! BUG ! fixed in next release.
> > I just had a look at the new version 3.4.5 of IFHP, and it doesn't seem
> > to have this host%port fixed. Did it miss the release???
> >
> > Christopher
> > ,,,
> > (. .)
> > /-----.oOO--(_)--OOo.-------------------------------------------------\
> > | Christopher McAvaney [EMAIL PROTECTED] |
> > | PhD Candidate [EMAIL PROTECTED] |
> > | [EMAIL PROTECTED] |
> > | phone: +61+3+52272960 [EMAIL PROTECTED] |
> > | fax: +61+3+52272028 http://www.cm.deakin.edu.au/~chrismc |
> > \---------------------------------------------------------------------/
> >
> > -------------------------------------------------------------------------
>----
> > 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 impa
>tient,
> > 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 w
>ord
> > LPRNGLIST in the SUBJECT line.
> > -------------------------------------------------------------------------
>----
> >
>
>
Christopher
,,,
(. .)
/-----.oOO--(_)--OOo.-------------------------------------------------\
| Christopher McAvaney [EMAIL PROTECTED] |
| PhD Candidate [EMAIL PROTECTED] |
| [EMAIL PROTECTED] |
| phone: +61+3+52272960 [EMAIL PROTECTED] |
| fax: +61+3+52272028 http://www.cm.deakin.edu.au/~chrismc |
\---------------------------------------------------------------------/
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------