|
|
HP-UX Reference Volume 1 of 5 > ppdpr(1) |
|
NAMEpdpr — submits print jobs SYNOPSISpdpr -h pdpr [-f FileName] [-g] [-l] [-n NumberOfCopies] [-N NotificationMethod] [-p LogicalPrinterName] [-r RequestedAttributes] [-s StyleName] [-t JobName] [ -x "AttributeValuePairs" ] [-X AttributesFileName] [FileName ...] DESCRIPTIONUse the pdpr command to submit print jobs to logical printers. Each print job can contain multiple printable documents and any number of print resources. The target logical printer name defaults to the value of the PDPRINTER environment variable. You can override the default by specifying the name of another logical printer using the option -p LogicalPrinterName or the per-job-attribute printer-name-requested. When the print-job request is accepted by the server, it is given a unique global ID (job identifier). The job also has a local ID that can only be used by you (the job submitter). The job submitter can use either the global ID or the local ID in subsequent commands, such as pdmod, pdrm, or pdls. Anyone else who accesses the job, such as an administrator, must use the global ID. The values for job and document attributes are derived as follows:
You must be authorized to submit print jobs to the specified printer if the logical printer is protected. If the server cannot locate a physical printer (associated with the requested logical printer) supporting the job and document attributes, the job is rejected. OptionsUse the following options with the pdpr command:
Command AttributesYou can specify these attributes in a -x "AttributeValuePairs" string or in an attributes file designated with the -X AttributesFileName option.
Object AttributesThere are two types of object attributes for the pdpr command (per-job and per-document) that have some special conditions. However, you can specify any settable or specifiable job or document attribute with the pdpr command. You can only specify settable attributes with the pdset and pdmod commands.
ArgumentsUse the argument to identify the name of a file to be printed. If you specify multiple file names, each must be separated by spaces. Each file becomes a document within the job. [FileName...]
EXAMPLESPrint a FileTo submit the file File1 to your default logical printer, enter one of the following commands: pdpr File1 pdpr -f File1 To submit the file File1 to the logical printer LogPrt2, enter one of the following commands: pdpr -p LogPrt2 File1 pdpr -x printer-name-requested=LogPrt2 File1 Number of CopiesTo submit the file File1 to the default logical printer and to specify three copies of the print job, enter one of the following commands: pdpr -n 3 File1 pdpr -x copy-count=3 File3 To submit the job to the default logical printer and specify two copies of each file with the -n option, enter one of the following commands: pdpr -n 2 Title Contents Body1 Body2 Append pdpr -x copy-count=2 Title Contents Body1 Body2 Append HPDPS prints two copies of Title, followed by two of Contents, and so on for each file in the job. To submit the job to the default logical printer and specify two copies of the complete job, enter the command: pdpr -x results-profile=:::2 Title Contents Body1 Body2 Append HPDPS prints a single copy of each file in the job, and then prints a second set in the same manner. To submit the job to the default logical printer and specify two copies of the complete job with each copy of the job containing three copies of each file, enter the command: pdpr -n 3 -x results-profile=:::2 Title Contents Body1 Body2 Append There are printed three copies of Title, followed by three copies of Contents and so until the first copy of the job is done. HPDPS prints a second set in the same manner. Specifying Job NameTo submit the file File1 to your default logical printer and specify the job name, enter the command: pdpr -t CmdRef File1 Double-sided PrintingTo submit the file File1 to the default logical printer and specify double-sided printing, enter the command: pdpr -x "sides=2" File1 Page OrientationTo submit the file File1 to the default logical printer and specify landscape orientation, enter the command: pdpr -x content-orientation=landscape File1 Document FormatTo submit the file PSFile2 to the default logical printer and specify a document format of ASCII, enter the command: pdpr -x document-format=ascii PSFile2 Multiple DocumentsTo submit the files File1 and File2 to the default logical printer, enter the command: pdpr File1 File2 To submit the files File1 and File2 to the default logical printer and specify three copies of each file with double-sided printing, enter the command: pdpr -n 3 -x sides=2 File1 File2 Requesting StatusTo submit the file File1 to the default logical printer and receive brief status information, enter the command: pdpr -r brief File1 HPDPS displays information similar to the following about your job:
To submit the file File1 to the default logical printer and receive brief status information without headings, enter one of the following commands: pdpr -g -r brief File1 pdpr -x "headings=no requested-attributes=brief" File1 HPDPS displays information similar to the following about your job: 8 sp15:075410002 File1 pending LogPrt1 Delay Printing of FileTo submit the file BigJob to the default logical printer and delay printing until after 6:30 p.m., enter the command: pdpr -x job-print-after=18:30:00 BigJob Delay Printing of File and Specifying a Symbolic LinkTo submit the file BigJob to a logical printer LogPrt4 without copying the file and delay printing until after 6:30 p.m. on April 4, 1995, enter the following command: pdpr -l -x job-print-after="18:30:00 04/04/95" BigJob Job Discard TimeTo submit the file BigJob to the default logical printer and specify that the job is to be discarded if it has not printed by 5:00 p.m., enter the command: pdpr -x job-discard-time=17:00:00 BigJob Job to a Specific Printer LocationTo submit the file File5 to be printed on one of the printer devices located in building 20 room 17, enter the command: pdpr -p LogPrt20 -x printer-locations-requested=bld20.rm17 File5 Job to a Specific Physical PrinterTo submit the file File5 to be printed on physical printer PhysPrt1, enter the command: pdpr -p LogPrt20 -x physical-printers-requested=PhysPrt1 File5 Retaining a JobTo submit the file File1 to the default logical printer, request feedback of job attributes (brief group), and specifying a retention period of 90 minutes so you can print more copies after you have looked at the first copy, enter the command: pdpr -r brief -x job-retention-period=90 File1 You want to note the job number (local ID) so you can use that number when you want to print more copies within the time allotted. Specifying an Initial Value Object (IVO)To submit the file File1 to the default logical printer and use the job attribute values specified in the initial value job ivj23, enter the command: pdpr -x initial-value-job=ivj23 File1 To submit the file File1 to the default logical printer and use the document attribute values specified in the initial value document ivd44, enter the command: pdpr -x initial-value-document=ivd44 File1 To submit the file File1 to the default logical printer and use both IVOs specified in the previous two examples, enter the command: pdpr -x "initial-value-document=ivd44 initial-value-job=ivj23" File1 Specifying Attributes Files for a JobTo submit the file File1 to the default logical printer and specify the attributes file myjob.att, enter the command: pdpr -X myjobs.att File1 To submit the file File5 to the default logical printer and specify the two attributes files (default.att and special.att), enter the command: pdpr -X default.att -X special.att File5 Overriding an Attribute Value in an Attributes FileTo submit the file File1 to the default logical printer and override the value of 2 for the sides attribute specified in a given attributes file, enter the command: pdpr -X default.att -x sides=1 File1 Requesting Feedback Concerning the Job as Each Event HappensTo submit the file File1 to the default logical printer and have all possible event notifications sent to your display screen, enter the command: pdpr -x "notification-profile={delivery-method=message \ event-identifiers=job-modified class-job-problem \ class-job-attention}" File1 To submit the file File1 to the default logical printer and have the default event notification sent to you by electronic-mail, enter the command: pdpr -x "notification-profile={delivery-method=electronic-mail}" File1 SEE ALSOpdclean(1), pdcreate(1), pddelete(1), pddisable(1), pdenable(1), pdls(1), pdmod(1), pdpause(1), pdpromote(1), pdq(1), pdresubmit(1), pdresume(1), pdrm(1), pdset(1), pdshutdown(1) For information about:
To view information about all supported attributes, see manpage pd_att(5). It contains a list of files by object from which you can select the attribute listing that you want. |
|