At the moment there are no special commands for doing this sort of thing. But by examining an appropriate 'model' file, the escape sequences can be found. So for landscape on a laserjet, for example. look in te16:/usr/spool/lp/model/laserjet for "landscape". For other formats look elsewhere in the same file, for other printers look in the corresponding printer model file.
hp$ ( echo "\033&l0O\c"; cat <filename>; echo "\033&l10\c" ) | lp -d <printername>
sun$ ( echo -n "\033&l0O"; cat <filename>; echo "\033&l10" ) | lp -d <printername>
For JetAdmin under Solaris 2.5 printing ascii files only
sun$ lp -d <printername> -o landscape <filename>
$Header: /home/ct/serco/ahuxley/docs/html/serco-faq/new/meta/RCS/data-page.html,v 1.1 1997/06/13 12:34:28 ahuxley Exp $