A while ago someone asked about how to configure osx for printing from the command line.
If you have a postscript printer in your network, this is actually pretty simple. Create a printcap file (named "myprintcap" for example) with jEdit, or vi or emacs or any other text editor:
lp:\Save this file somehere in your directory. Note: there should be backslashes terminating the first two lines. They were consumed by the scripts processing this hint, I guess. [Editor's note: Backslashes get stripped out, unless you enter in HTML mode, and use the character code '\' for a backslash ... I've added them to the above lines.
:lp=:rm=<printer ip or name>:rp=lp:\
:sd=/var/spool/lpd/lp:ty=PostScript:
niload printcap / < path/to/myprintcapNow you can print ps files from the command line by typing:
mkdir /var/spool/lpd/lp
lpr file.psI should note that this hint is originally from the TeXshop readme.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20010204071837531