User guide

IOLAN+, IOLAN+ Rack & IOLAN+ 102/104 User guide
Using RCP
Page 111
Chapter 8 Printing
Using RCP with Unix System V line printer spoolers.
1. Log in as root and create a print queue for the printer with /dev/null as the device port. For
example, create an HP LaserJet printer queue via the command:
/usr/lib/lpadmin -hpjet -v/dev/null -mHPLaserJet
Do not accept or enable the printer at this stage.
2. Go into the directory containing the interface scripts for all printers. This is normally found
in:
/usr/spool/lp/admins/lp/interfaces (Rel 3 Unix).
/etc/lp/interfaces (Rel 4 Unix).
/usr/spool/lp/interfaces (XENIX).
3. Find the interface shell script for this printer and copy it to a file with the suffix ‘.orig’. using
the example: cp hpjet hpjet.orig
4. Copy the Server RCP shell script from the TSSD support disk to the interface script,
e.g:cp /etc/perle/src/perle.rcp hpjet
5. Having created the hpjet file set the permissions to allow execution of the script, e.g:
chmod a+x hpjet
6. Edit the interface script and insert the desired server name and port number. For
example, if the name is ‘iceland’ and the printer is attached to port 8 (numbering from 1 to
16). Then the line:
rcp $TMP <server name>:tty<port number>
becomes:
rcp $TMP iceland:tty8
Some Unix systems may require the full pathname of the ‘RCP’ command. For example:
/usr/ucb/rcp $TMP iceland:tty8
7. Activate the printer for use, e.g:
/usr/lib/accept hpjet enable hpjet
8. Set up the IOLAN+ port for RCP printing by changing the Local Port field in the Access
section of the Port Setup Menu to 514.