#!/bin/sh # # Usage: # pjl-duplex [file.ps] | lpr # If file is unspecified, pjl-duplex will read from stdin. # NB: pjl-duplex only works with Postscript files. It may not work with # Windows Postscript files, which tend to contain their own PJL block. echo -e '\e%-12345X@PJL JOB' echo '@PJL SET DUPLEX = ON' echo '@PJL ENTER LANGUAGE = POSTSCRIPT' cat $1 echo -e '\x04\e%-12345X@PJL EOJ'