Hi, im working on gettting the printers to turn on, when im printing on them.
I think the way forward is to add a filter, turning on the printer.
I would think using a of filter is the most correct way, but im not picky.
i have tried a couple of things, but anytime i add my filter, nothing prints.
can anyone please show me how a "does nothing" filter would look like ?
Most ideal, i would like to call the filter, as
:filter=filtername /bin/sisplctl -o4
and then get the filter to wait until the printer is ready, touch a temp file, that ill use to stop the printer again, and THEN send the print job.
Any ideas ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, im working on gettting the printers to turn on, when im printing on them.
I think the way forward is to add a filter, turning on the printer.
I would think using a of filter is the most correct way, but im not picky.
i have tried a couple of things, but anytime i add my filter, nothing prints.
can anyone please show me how a "does nothing" filter would look like ?
Most ideal, i would like to call the filter, as
:filter=filtername /bin/sisplctl -o4
and then get the filter to wait until the printer is ready, touch a temp file, that ill use to stop the printer again, and THEN send the print job.
Any ideas ?
you need to encapsulate all of the filter workings in a simple script:
:of=/usr/local/bin/myfilter
#!/bin/sh
# start the printer
# sit in a busy loop - send output to stderr for the log
# copy stdin to stdout -
# cat
# exit 0