Annotation of coherent/f/usr/spool/mlp/backend/default, revision 1.1

1.1     ! root        1: :
        !             2: #
        !             3: # A sample backend script.
        !             4: #
        !             5: # The despooler opens the spool request and device.  It connects these files
        !             6: # to THIS process's standard input and output.  Anything you send to
        !             7: # standard output here is likely to end up on paper.  The "cat" command below
        !             8: # transfers the request data to the device.  Notice how we put banners
        !             9: # on the front of each request and how we ensure that the printer is at
        !            10: # top-of-form for the next request in line.
        !            11: #
        !            12: # You can get as fancy or spartan as you want insofar as banners are
        !            13: # concerned.  Business users in particular hate banners because they
        !            14: # consume paper.
        !            15: #
        !            16: # You can also use this backend as an opportunity to transform the raw
        !            17: # report text in some way before you write it to the device.
        !            18: #
        !            19: # These parameters are passed to this process:
        !            20: #
        !            21: #    $1 = request sequence number
        !            22: #    $2 = user name
        !            23: #    $3 = number of copies
        !            24: 
        !            25: 
        !            26: banner " "; banner "#""$1"; banner "$2"; echo "\f\c"  # Banner page
        !            27: 
        !            28: cat      # Move the application text lines to the device
        !            29: 
        !            30: echo "\f\c"   # Make sure that the printer is at top-of-form

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.