Just some amateur suggestions.
1. Have you run checkpc -f ?
2. I haven't tried your eval method. I just:
cat | sed -e 's/$/^M/g'
3. Are you sure you sed command is working? Do you really have a control
character or just two characters in the replacement string? What does the g option do
for you?
Have you tried \r instead of ^M ?
4. You might change your filter to:
cat > /tmp/OutFile
to see if the filter is executing.
Joel
On Wed, Jun 12, 2002 at 09:04:30AM +1000, Hansen, Kenn wrote:
> Hi all
>
> We are in the process of porting a current (working) LPRNG configuration
> from SUN to a HP (unix) system, and we have problems attaching (any) filter
> to a printer. Different configurations have been tried, and it looks like
> that the filter script at least is being look at, but that no data ( stdin )
> is getting into the filter script, but ?
>
> The following test is a basic ip/socket printer with a simple filter script.
> With "no filter" the printer works fine, but with the filter the printer
> fails.
>
> Any input/suggestions are very much appreciated.
>
> email: [EMAIL PROTECTED]
>
> Thanks
> Kenn Hansen
> Mayne Health
>
> printcap:
> comp:sd=/var/spool/smb/%P:force_localhost:lp=10.3.190.32%4006:filter=/tmp/te
> stf # this one doesn't work
> #comp:sd=/var/spool/smb/%P:force_localhost:lp=10.3.190.32%4006 # But this
> does .. no filter though ...
>
> filter: ( /tmp/testf )
> ------------------------------------------------
> #!/bin/sh
>
> filter="sed -e 's/$/^M/g'"
> eval ${filter} 2>&1
> echo "^L"
> exit 0
> -------------------------------------------------
>
> > Configurations:
> >
> > Computer: (uname -a) HP-UX mgu004 B.11.11 U 9000/800 1543730538
> > unlimited-user license
> LPRng-3.8.12, Copyright 1988-2002 Patrick Powell, <[EMAIL PROTECTED]>
>
>
> > output from lpq -Pcomp -llllllll
> > Printer: comp@mgu004
> > Queue: 1 printable job
> > Server: pid 29331 active
> > Unspooler: pid 29332 active
> > Status: IF filter 'testf' filter finished at 17:02:58.947
> > Status: printing finished at 17:02:58.948
> > Status: waiting for subserver to exit at 17:12:58.408
> > Status: waiting for subserver to exit at 17:22:59.013
> > Status: waiting for subserver to exit at 17:32:58.368
> > Status: waiting for subserver to exit at 17:42:58.518
> > Status: subserver pid 24773 exit status 'JABORT' at 17:49:50.798
> > Status: comp: Update_status: no identifier for 'hfA436' at 17:49:50.799
> > Status: waiting for subserver to exit at 17:50:46.664
> > Status: subserver pid 29332 starting at 17:50:46.685
> > Status: accounting at start at 17:50:46.685
> > Status: opening device '10.3.190.32%4006' at 17:50:46.685
> > Status: printing job 'kennbh@mgu004+330' at 17:50:46.754
> > Status: processing 'dfA330mgu004.int.maynegroup.com', size 29, format
> > 'f', IF filter 'testf' at 17:50:46.755
> > Status: IF filter 'testf' filter finished at 17:50:46.847
> > Status: printing finished at 17:50:46.848
> > Rank Owner/ID Class Job Files Size
> > Time
> > active kennbh@mgu004+330 A 330 (STDIN) 29
> > 17:50:46
> ( The printjob stays active until it eventually stalls - it never produce
> any output or any #*@* )
>
>
>
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> **********************************************************************
>
>
> -----------------------------------------------------------------------------
> 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.
-----------------------------------------------------------------------------