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?
It sounds like you're trying to send the PostScript file to the printer using the `lpr` command without first interpreting it. This is why you're seeing the raw bytes of the file printed instead of the actual contents. To print a PostScript file on a Mac using the command line, you can use the `lpr` command in conjunction with the `lp` or `cupsctl` command to specify that the file should be interpreted as PostScript. Here's an example command that should work:
1 | lp -d <printer_name> -o raw <filename.ps> |
1 2 | cupsctl -d <printer_name> -o raw=true lpr <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?
To print a PostScript (.ps) file from a Mac using the command line, you can use the `lpr` command in combination with `gs` (Ghostscript) to convert and send the file to the printer. Here's the command:
1 | gs -q -dNOPAUSE -dBATCH -sDEVICE=pxlmono -sOutputFile=- yourfile.ps | lpr -P your_printer_name |
1 | gs -q -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=- yourfile.ps | lpr -P your_printer_name |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: False
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?
It sounds like you're trying to print a PostScript (PS) file using the `lpr` command, but it's not being interpreted correctly by your printer. Instead of printing the contents of the file, it's printing the raw bytes. To fix this, you can use the `lpr` command with the `-P` option, which specifies the printer name or destination. You should also include the `-o raw` option to tell `lpr` not to encode the file in a different format before sending it to the printer. Here's the command you can use:
1 | lpr -P printer_name -o raw yourfile.ps |
1 | lpstat -p |
1 | lp -d printer_name -o raw yourfile.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?
It sounds like you're trying to print a PostScript (PS) file using the `lpr` command, but it's not interpreting the file correctly. Instead of printing the contents of the PS file, it's printing the raw bytes, which results in a large number of pages with garbled text. To print a PS file using `lpr`, you'll need to specify the `-P` option followed by the name of the printer that can interpret PostScript. Here's an example command:
1 | lpr -P <printer_name> <ps_file> |
1 | lpr -P HP_LaserJet_M404dw myfile.ps |
1 | gs -sDEVICE=pdfwrite -o output.pdf input.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: False
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 from the command line on a Mac, you can use the `lpr` command with the `-P` option to specify the printer and the `-o` option to specify the PostScript output option. The command would look like this:
1 | lpr -P printername -o raw file.ps |
1 | lp -d printername -o raw file.ps |
1 | gs -sDEVICE=pdfwrite -o - file.ps | lpr -P printername |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True