Initial Query

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?

LLM Generation

Query

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?

Output

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
This will send the PostScript file directly to the printer, which should then interpret and print it correctly. If the `-l` option doesn't work for some reason, you can also try using the `lp` command instead of `lpr`, which is the more modern command for printing on macOS and other Unix-like systems. The `lp` command uses the `-o` option to specify options for the print job. To print a PostScript file directly, you would use:
1
lp -o raw yourfile.ps
The `-o raw` option tells `lp` to send the file to the printer without any processing or interpretation, which is similar to the effect of the `-l` option with `lpr`.

Check if any of the following conditions are true:

Substring Evaluation

Testing if the previous output contains the string -l: True

Substring Evaluation

Testing if the previous output contains the string -o raw: True

Final Answer: True