From: Robert L K. <rl...@al...> - 2000-02-17 00:53:39
|
Date: Wed, 16 Feb 2000 20:32:49 +0100 (CET) From: regis rampnoux <re...@re...> On 15-Feb-00 Robert L Krawitz wrote: > That patch AS IS isn't going to work. On my system (using > PrintPro/CUPS), lpstat -d -v prints out in a slightly different > format: The commands to obtain the list of printer seems to be a real problem. May be you can add a tool to write the list of printers (printrc) manualy? This is something we're looking at doing. There are entirely too many complaints about the present method, and it simply isn't reliable. On FreeBSD, with the native spooler I use: (I have yet sent it to rlk for 3.0.5, this is for 3.0.6) This patch does not work for me: [2(rlk)||{!258}<rlkppp>/home/rlk/bin/setiathome-1.2.i686-pc-linux-gnulibc1-static] $ lpc status epson: printer is on device 'parallel' speed -1 queuing is enabled printing is enabled no entries daemon present epson-big: printer is on device 'parallel' speed -1 queuing is enabled printing is enabled no entries daemon present foo: printer is on device '/tmp/out' speed -1 queuing is enabled printing is enabled no entries daemon present null: printer is on device '/dev/null' speed -1 queuing is enabled printing is enabled no entries daemon present [2(rlk)||{!259}<rlkppp>/home/rlk/bin/setiathome-1.2.i686-pc-linux-gnulibc1-static] $ lpc status all *** print.c.orig Wed Feb 16 19:58:01 2000 --- print.c Wed Feb 16 19:58:27 2000 *************** *** 3195,3201 **** plist[0].v.output_type = OUTPUT_COLOR; #ifdef LPC_COMMAND ! if ((pfile = popen(LPC_COMMAND " status", "r")) != NULL) { while (fgets(line, sizeof(line), pfile) != NULL && plist_count < MAX_PLIST) --- 3195,3201 ---- plist[0].v.output_type = OUTPUT_COLOR; #ifdef LPC_COMMAND ! if ((pfile = popen(LPC_COMMAND " status all", "r")) != NULL) { while (fgets(line, sizeof(line), pfile) != NULL && plist_count < MAX_PLIST) |