where
logical_destination
is
email1-ld
and
emailfilename
could be named
/
email_script/samp.script
and stored on your local system. Note that you must
have defined a
body.txt
file and a
sig.txt
file for this script to work correctly.
This attribute file sends a report to a 'johndoe' Internet ID, using a logical
destination (printer) named
email1-ld
that you specify from the command line.
Note that the convention
us.name.com
is used to indicate a company-wide
addressing system, where it indicates the country (
us
), the company name
(name
)
and the communications name (
com
) for all fully qualified addresses in the
company.
Note that you cannot put comments in an attributes file using the
-Z
option.
This script does not print ASCII input data. To print ASCII input files, see
Submitting Text Files with a Korn Shell Script.
Submitting files with a Korn shell script
You can create a Korn shell script (named
sendfile
for this example) with a simpler
command syntax because the
pdpr
command is included in the shell script.
Create a file that contains the
pdpr
command and all its attributes. Create the
following Korn shell script and place it in a directory on the AIX system where
you have installed the
pdpr
command.
The file should look similar to this:
# Sample Attribute File for InfoPrint Manager Email
# using a script to submit
# sendemail $1 $2
# $1 is required as the name of the file to send.
# $2 is optional as the recipient of the email.
#
#! /usr/bin/ksh
if [[ -a $1 && -n $1] ]
then
if [ $2 ]
then
WHOTO=$2
else
WHOTO="[email protected]"
fi
/usr/lpp/pd/bin/pdpr -p email1-ld \
-r brief \
-x email-to-address=$WHOTO \
-x [email protected] \
-x "subject-text='Your requested Email file'" \
-x document-type=printable $1 \
-x document-type=email-body /email_script/body.txt \
-x document-type=email-signature /email_script/sig.txt
else
echo " sendfile: could not locate file [$1]"
fi
At the command-line, this Korn shell script would use this syntax:
sendfile
outputfilename [destination]
where
outputfilename
specifies the file that you are sending (
sample.pdf
) and
destination is the email address (
johndoe
) to which you are sending the file.
52
InfoPrint Manager for AIX: Procedures
Содержание InfoPrint Manager for AIX
Страница 1: ...InfoPrint Manager for AIX Procedures Version 4 Release 3 G550 1066 04 ...
Страница 2: ......
Страница 3: ...InfoPrint Manager for AIX Procedures Version 4 Release 3 G550 1066 04 ...
Страница 6: ...iv InfoPrint Manager for AIX Procedures ...
Страница 8: ...vi InfoPrint Manager for AIX Procedures ...
Страница 16: ...2 InfoPrint Manager for AIX Procedures ...
Страница 20: ...6 InfoPrint Manager for AIX Procedures ...
Страница 58: ...44 InfoPrint Manager for AIX Procedures ...
Страница 62: ...48 InfoPrint Manager for AIX Procedures ...
Страница 70: ...56 InfoPrint Manager for AIX Procedures ...
Страница 96: ...82 InfoPrint Manager for AIX Procedures ...
Страница 110: ...96 InfoPrint Manager for AIX Procedures ...
Страница 156: ...142 InfoPrint Manager for AIX Procedures ...
Страница 169: ...Part 2 Administrative procedures Customizing for special jobs Copyright InfoPrint Solutions Company 1998 2010 155 ...
Страница 170: ...156 InfoPrint Manager for AIX Procedures ...
Страница 234: ...220 InfoPrint Manager for AIX Procedures ...
Страница 236: ...222 InfoPrint Manager for AIX Procedures ...
Страница 256: ...242 InfoPrint Manager for AIX Procedures ...
Страница 326: ...312 InfoPrint Manager for AIX Procedures ...
Страница 330: ...316 InfoPrint Manager for AIX Procedures ...
Страница 331: ...Part 3 Operator and user procedures Copyright InfoPrint Solutions Company 1998 2010 317 ...
Страница 332: ...318 InfoPrint Manager for AIX Procedures ...
Страница 348: ...334 InfoPrint Manager for AIX Procedures ...
Страница 365: ...Part 4 Appendixes Copyright InfoPrint Solutions Company 1998 2010 351 ...
Страница 366: ...352 InfoPrint Manager for AIX Procedures ...
Страница 370: ...356 InfoPrint Manager for AIX Procedures ...
Страница 378: ...364 InfoPrint Manager for AIX Procedures ...
Страница 382: ...368 InfoPrint Manager for AIX Procedures ...
Страница 406: ...392 InfoPrint Manager for AIX Procedures ...
Страница 416: ...402 InfoPrint Manager for AIX Procedures ...
Страница 417: ......
Страница 418: ...Program Number 5648 F35 Printed in USA G550 1066 04 ...