TotalNET Advanced Server 5.2 Reference Manual

For BSD UNIX:

  1. Add the following entry for ruprint printcap to the /etc/printcap file:

    dosq|lp:\

     

    :lp=/dev/null:\

     

    :lf=/usr/adm/lpd-errs:\

     

    :sd=/usr/spool/dosqd:\

     

    :mx#0:\

     

    :rw:\

     

    :sh:\

     

    :sf:\

     

    :if=/usr/bin/dosq.rup:

  2. Create the spool directory, indicated by :sd in the printcap entry, as follows:

    cd /usr/spool

    mkdir dosqd

    chown root dosqd

    chgrp bin dosqd

    chmod 775 dosqd

    chmod gas dosqd

  3. Create an input filter, indicated by :if in the printcap entry, as follows:

    #!/bin/sh

    # lp filter for ruprint

    PATH=/bin:/usr/bin:/usr/local/bin:TNHOME/usr/bin

    export PATH

    TF=/tmp/dosq.$$

    cat - $TF

    If you need to make the file a PostScript file, run it through the psf filter using the script below. Some operating systems, like Solaris, do this automatically.

    grep '%!PS-Adobe' $TF /tmp/grep.out 2&1

    if [$? -ne 0]; then

    psf $TF ${TF}.1 2>&1

    rm $TF

    TF=${TF}.1

    fi

    ruprint $TF //dosserver/prn 2>&1

    rm -f $TF

    exit 0