I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
To print a PostScript (.ps) file directly using `lpr` on a Mac, you need to specify the `-l` option, which tells `lpr` to send the file to the printer as is, without attempting to interpret it as text. Here is the command you should use:
1 | lpr -l yourfile.ps |
1 | lp -o raw yourfile.ps |
Testing if the previous output contains the string -l
: True
Testing if the previous output contains the string -o raw
: True