Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form feed printers using netstandard

Status
Not open for further replies.

unmlobo

MIS
Apr 11, 2003
64
US
I need to make an oki microline 591 form feed automaticly after my users have printed their reports. I found a blurb on it in the Sun Online help but it don't work. Is there anything I can do.
 
Try adding a form feed character to the interface script for that printer (/etc/lp/interfaces/printername).

For example, if you're using the standard netstandard interface script, you could modify the following section:

[tt] #####
# Print the file
#####

if [ -r "${printfile}" ]
then
(
eval ${NETPR} ${printfile} 2>&1
# Form feed to next page.
echo "\014"
echo $? > ${LPTMPDIR}/pr_eexit_code.$$
) | ${LPTELL} ${LPTELL_OPTS} ${printer}[/tt]

I hope that works!

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top