Cups-lpd filters for virtual printing

S

Shera

Guest
Switching from hp unix servers to Linux using cups-Lpd. Need to be able to use a "dump printer interface" like in hp unix for virtual printing. Tried using a "filter", example below, but only the variable $filename was valid, and it's really the data not the file name. What am I missing? Tried to GOOGLE for filter example and just not finding anything.

Any help is greatly appreciated.

#! /bin/sh
# Command line arguments
job="$1"
user="$2"
title="$3"
numcopies="$4"
options="$5"
filename="$6"
# Pass through
cat "$filename"
 


to send a job to your printer
cat filename.txt |lp -d printername
 

Members online


Top