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 from a Mac using the command line, you can use the `lp` command instead of `lpr`. The `lp` command is a part of the CUPS (Common Unix Printing System) which is the printing system used by macOS. Here's the basic syntax:
1 | lp -d <printer_name> <file_path> |
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 having trouble printing a PostScript (.ps) file from your Mac using the `lpr` command. The issue you're experiencing, where the printer prints out the raw byte data instead of the actual content of the file, is likely due to the printer not correctly interpreting the PostScript file. Here's a step-by-step guide to help you print your .ps file correctly: 1. **Check your printer's compatibility with PostScript**: Not all printers support the PostScript language natively. You can usually find this information in the printer's manual or the manufacturer's website. If your printer doesn't support PostScript, you might need to convert the .ps file to a more widely-supported format, like PDF, using a tool like `ps2pdf` or an online converter. 2. **Install the necessary software**: If your printer supports PostScript, make sure you have the necessary software installed on your Mac. The CUPS (Common UNIX Printing System) is usually pre-installed on macOS and it supports PostScript printing. 3. **Use the correct `lpr` command**: When using the `lpr` command, you should specify that the file you're printing is a PostScript file. This can be done with the `-P` or `-T` flag, followed by the name of your printer and the file you want to print. Here's an example:
1 | lpr -P YourPrinterName -T "PostScript" YourFile.ps |
1 | lp -d YourPrinterName YourFile.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?
It sounds like you're having trouble printing a PostScript (.ps) file from your Mac using the `lpr` command. The issue you're experiencing, where the printer prints out the raw bytes of the file, suggests that the printer or the print system might not be correctly interpreting the PostScript commands. Here are a few steps you can try to resolve the issue: 1. **Use the lp command instead of lpr**: The `lp` command is a more modern alternative to `lpr` and it's the default command for printing on macOS. You can use it like this:
1 2 | lp your_file.ps |
1 2 | lp -d your_printer_name your_file.ps |
1 2 | ps2pdf your_file.ps |
1 2 | lp your_file.pdf |
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 having trouble printing a PostScript (.ps) file from your Mac using the `lpr` command. The issue you're experiencing, where the printer prints out the raw byte data instead of the actual content of the file, is likely due to the printer not correctly interpreting the PostScript data. Here are a few things you can try to resolve this issue: 1. **Use the `lp` command instead of `lpr`**: macOS has its own native printing system, and the `lp` command is a part of this system. It's possible that `lp` will handle your .ps file better than `lpr`. To use it, simply type `lp filename.ps` in the Terminal, replacing `filename.ps` with the path to your .ps file. 2. **Convert the .ps file to PDF and then print**: Most modern printers can handle PDF files without any issues. You can convert your .ps file to a PDF using the `ps2pdf` command, which is part of the Ghostscript suite. If you don't have Ghostscript installed, you can do so using a package manager like Homebrew. Once you've installed Ghostscript, you can convert your .ps file to a PDF by typing `ps2pdf filename.ps` in the Terminal, replacing `filename.ps` with the path to your .ps file. This will create a PDF with the same name as your .ps file in the same directory. You can then print this PDF using the `lp` command or by double-clicking it to open it in Preview and then using the Print option. 3. **Check your printer's settings**: It's possible that your printer's settings are causing it to print the raw byte data instead of the actual content of the file. Make sure that your printer is set to use PostScript as its page description language (PDL). You can usually do this through the printer's web-based interface or through the Print & Scan or Print & Fax settings in System Preferences.
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 having trouble printing a PostScript (.ps) file from your Mac using the `lpr` command. The issue you're experiencing, where the printer is outputting the raw byte data instead of the actual content of the file, suggests that the printer driver or the `lpr` command itself might not be correctly interpreting the PostScript file. Here are a few steps you can try to resolve this issue: 1. **Use the `lp` command instead of `lpr`**: The `lp` command is a more modern and feature-rich printing utility that's included with macOS. It might be able to handle your PostScript file more effectively than `lpr`. To use `lp`, open Terminal and type `lp /path/to/your/file.ps`. 2. **Check your printer driver**: Make sure that you have the correct and up-to-date driver for your printer installed on your Mac. You can usually download the latest driver from the manufacturer's website. If you're not sure how to install or update a printer driver, Apple provides a helpful guide [here](https://support.apple.com/en-us/HT201311). 3. **Convert the file to PDF**: If you're still having trouble, you might want to try converting your PostScript file to a PDF before printing it. This will bypass the need for the printer to interpret the PostScript language. You can use a tool like `ps2pdf` to do this. Install it with Homebrew (`brew install ghostscript`) and then convert the file (`ps2pdf /path/to/your/file.ps`). Then, print the resulting PDF file.
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: False