Lines Matching refs:printer
23 # Workaround Win95 printer driver/Impressario bug by removing
27 # printer type I configure on the Win95-side for printing with
31 # 1. remove the JCL statements added by some HP printer drivers to the
55 print STDERR "usage: $PROG printer file [user] [system]\n";
59 $printer = $ARGV[0];
67 open(LPSTAT,"/usr/bin/lpstat -t|") || die("Can't get printer list.\n");
70 next unless /^printer (\w+)/;
77 # Untaint the printer name
78 if (defined($prtname = $printers{$printer})) {
79 $printer = $prtname;
81 die("Unknown printer: \"$printer\"\n");
101 # then become that user so that the printer header page looks right
121 $lpcommand = "/usr/bin/lp -c -d$printer -t'$name on $system'";