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 .ps file directly without converting it to bytes, you can use the following command:
1 | lpr -o raw -P printer_name file.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True
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?
You can use the following command to print a .ps file directly without printing the raw bytes:
1 | lpr -P printer_name -o raw filename.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True
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?
You can use the following command to print a .ps file directly without printing the actual bytes:
1 | lpr -o raw file.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True
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 .ps file directly without it being interpreted as text, you can use the following command in the Terminal on your Mac:
1 | lpr -o raw /path/to/your/file.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True
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?
You can use the following command to print a .ps file directly without it being interpreted as plain text:
1 | lpr -P <printer_name> -o raw <file.ps> |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True