6.0
Table Of Contents
- Capturing Data
- Overview
- Key Concepts
- Detailed Directions
- Capture Sample Data for a Document You Install on a Printer
- Capture Sample Data for a Document You Install in PlanetPress Watch
- Capture Sample Data in Windows NT
- Capture Sample Data in Windows 2000/Server 2003/XP
- Capture Sample Data in Windows Host Using a Novell Print Server
- Capture Sample Data in UNIX (Solaris)
- Capture Sample Data using an AS/400 Systems
- Capture Sample Data From a Serial Port
- Creating Triggers
- Overview
- Key Concepts
- Detailed Directions
- Implement a Trigger under Novell 3.x
- Implement a Trigger under Novell 4.x and 5.x with NDS or Bindery Printers
- Implement a Trigger under Windows NT 4.0 with TCP/IP
- Implement a Trigger under BSD Printing Systems (BSDi, FreeBSD, Linux)
- Implement a Trigger under UNIX System V (Solaris)
- Implement a Trigger and Configure an AIX 4.3 Printer
- Implement a Trigger under VMS
- Implement a Trigger with AS/400 Systems
- Prepare SAP Device Type for PlanetPress Design
- Implement a Trigger under HP 3000
- Special Printer Requirements
- ASCII Conversion Table
- CL Program for AS/400 Systems
- Index
50
Creating Triggers
2
exit
Edit a Script File
To edit a script file:
1. Issue the following commands:
cd /etc/lp/interfaces
vi ./myscriptfile
2. In the vi text editor, use the dG command to delete all default text inside the script file.
3. Enter the following text inside your script file:
#!/bin/sh
#
options=$5
shift 5
for FILE in $*
do
cat /etc/lp/interfaces/mytrigger $FILE | lp -d queuename
-t $FILE
done
exit 0
4. Save your script file and exit the editor (press ESCAPE, then enter :wq).
5. Set the permissions on the script file as follows:
chmod 755/etc/lp/interfaces/myscriptfile
Create the Trigger File
To create a trigger file for UNIX:
1. Issue the following commands:
cd /etc/lp/interfaces
vi ./mytrigger
2. In the vi text editor, use the dG command to delete all default text inside the script file.