A few things to look at:
> The queue results is a remote queue and the HP is feed via a printserver
> on an IP network.
Remote queues do not normally process filters. You can put
the filter on the printserver. Or with a suitable filter you
can define a 'local' queue that does what you want anyway.
> cd /var/spool/lpd/results
> mv filter filter-previous which has mode 755
> cat > filter
> sed -f make-mods.sed | /var/spool/results/filter-previous
> ^d
> chmod 755 filter
> then
I'd use full pathnames on the sed command and the make-mods.sed file.
Also you probably want '#!/bin/bash' as the first line of the filter.
Just a ':' won't do (if this is like an Irix box I de-staircased a
while back). This was of the artificial local variety.
Here's a try. Define this as a filter on a LOCAL queue.
It's a long time since I did this - I may be forgetting something.
#!/bin/bash
/bin/sed -f /full/pathname/make-mods.sed | \
/usr/bin/lpr -Presults
exit 0
--
##############################################################
# Antonomasia [EMAIL PROTECTED] #
# See http://www.notatla.demon.co.uk/ #
##############################################################
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.