Sample Header Ad - 728x90

setup lpd printer to print to printer and file

1 vote
1 answer
429 views
In reference to: https://unix.stackexchange.com/questions/304559/redirect-lpd-lp-to-a-file/311484#311484 What about the scenario where you want to print and store the output in a file at the same time? I cannot seem to make this functionality work. I can get it to send to the printer, send to a text file, but I cannot get it to do both at the same time for each print job encountered. My simple of: file in /etc/printcap is: !/bin/sh Filter for HP Printing to do 10 pitch printing echo "\033E\033&l0o\033(8U\033(s0p10h12v0s0b3T\033&k3G\033&s0C\c" cat echo "\033E\c" cat I simply added to the cat command cat>>/usr/myname/store_the_text.txt. It will not do both. Thoughts?
Asked by user191218 (11 rep)
Sep 22, 2016, 04:19 PM
Last activity: Sep 22, 2016, 04:46 PM