Is there any way to select the raw Queue Name from a printer? similar to a hp directjet lpd/lpr port. cause if i can do that then i can force the queues on the unit to print on a select orientation.
Does the contents of /etc/printcap show two different print destinations?
It would seem that:
lp -dtoshibal file
would be enough.
If the printer has two print queues, one for portrait and one for landscape, then set up two lpr/lpd printers in SCO using the same IP address and different printer names.
You can also ftp to the printer and run an ls command to find out the directories (queues) that are available.
If that doesn't work, and the printer supports PCL then you could add the escape sequences to the beginning of the print file.
Go to scoadmin->printers->printer manager->printer->add remote->unix
Enter the IP address, or name from /etc/hosts for the host name
Enter queue name for the printer name.
Un-mark "Use extended remote printing...."
The lp destination name will be the printer name from above.
Use the following script to create a file to prefix to your print file:
echo "\033E\c" #reset
echo "\033&k2G\c" #turn carriage return on
echo "\033&l1O\c" #landscape mode
echo "\033&l5.45C\c" #66 lines per page
echo "\033(s15H" #13 characters per inch
This should allow you to print a standard 15x11 computer printout on 11x81/2 paper.
In lines three and four of the script the letter after the ampersand is an ell