(How) Is it possible to preprocess
lp automatically with a script? Piping inbetween (
fileToPrint | script.sh | lp -d myPrinter) is no option for me, because I have a lot of source code that does
lp directly (
lp -d myPrinter filetoPrint) and there is currently no intention to change this, especially since the script is only needed for one specific printer.
I'm thinking of something like
lpoption where I could say (pseduocode)
preprocess myPrinter with script.sh (and only for myPrinter, not for myOtherPrinter).
Is this somehow possible?