Difference between revisions of "DB PRINTOPT"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 43: Line 43:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server
+
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Configuration]]
 
[[Category:Configuration]]
 
[[Category:Environment Variables|PRINTOPT]]
 
[[Category:Environment Variables|PRINTOPT]]
 
[[Category:Printing]]
 
[[Category:Printing]]

Revision as of 15:03, 8 June 2009

Class

Environment Variables / Symbols


Purpose

Used to define the default system printing operation options


See Also

Configuration Files, DB_PRINT, GETENV(), PUTENV(), SET PRINT, SET PRINTER


Description

The DB_PRINTOPT environment variable is used to define the default system printing operation options in conjunction with the DB_PRINT environment variable. By default, DB_PRINT is set to the print.unix script:

################################################################
#
# print.unix: Recital system-wide print file
#
# Modify this shellscript to handle site-specific printers etc.
#
#################################################################
lp ${DB_PRINTOPT} $1 > /dev/null 2>&1
tmp=`echo $1 | grep -c .tmp`
if [ $tmp -ne 0 ]
then
  rm $1
fi

The value of DB_PRINTOPT is set in the conf files, but the PUTENV() function can be used to change this value, and the GETENV() function to query it.

DB_PRINTOPT="-onobanner -c"

Example

putenv([DB_PRINTOPT],[-dmyprinter])
set printer to \\spooler
list status to print
set printer to

Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer