172 U23841-J-Z915-6-76
Administering public loadable resources Configuring Xprint V7.0
Extending the definition of a loadable resource
A quick method of defining a loadable resource is to copy an existing resource
and modify it as required. Proceed as follows:
● To find out which loadable resources are already defined in the system and
the attributes they have, enter the following command:
xpshow -lrs
A list of existing loadable resources is displayed, together with their
attributes.
● Now copy a suitable loadable resource and make the required modifications:
xpcopy -lrs old_lrs new_lrs modifications
old_lrs represents the name of the existing loadable resource and new_lrs
stands for the new, possibly modified loadable resource. The variable modifi-
cations represents a list of modification which distinguish the new loadable
resource from the old one. Each entry in this list consists of an option of the
xpadd -lrs command and a corresponding value.
● It is possible to refer to a class name, rather than referring to the actual name
of a resource. Let’s consider a logo defined for HP Laserjet but also for Reno
emulation. The file logo.hp contains the data to be downloaded to an HP
Laserjet printer before the logo can be called. In a similar way, the file
logo.reno has to be downloaded to a Reno printer.
Two resources can be defined for this purpose:
xpadd -lrs logohp -fi logo.hp -pc HP-LASERJET -tp Overlay
-cn mylogo
xpadd -lrs logoreno -fi logo.reno -pc RENO -tp Overlay
-cn mylogo
Both resources will belong to the same class as mylogo. Jobs can after-
wards be submitted as:
xpadd -dr mydocument -lr mylogo
Once a printer (either HP Laserjet or Reno) is free for handling the job, the
printing system will select the appropriate resource. If the job comes out on
a Reno printer, then the logo-reno resource will be used.