how to determine whether (first) printer is lp0 or lp1?
Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? Thanks, Daniel -- Daniel Barclay [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to determine whether (first) printer is lp0 or lp1?
On Sat, Feb 08, 2003 at 12:43:05PM -0500, Daniel Barclay wrote: Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? echo yes /dev/lp0 -- Seneca [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to determine whether (first) printer is lp0 or lp1?
On Sat, 2003-02-08 at 13:45, Seneca wrote: On Sat, Feb 08, 2003 at 12:43:05PM -0500, Daniel Barclay wrote: Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? echo yes /dev/lp0 Doesnt always work. For instance on my printer, youll get nothing. A better way is cat /var/log/kern.log | grep lp That should show you what port your printer is on. -- Scott Henson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to determine whether (first) printer is lp0 or lp1?
On Sat, Feb 08, 2003 at 02:17:58PM -0500, Scott Henson wrote: On Sat, 2003-02-08 at 13:45, Seneca wrote: On Sat, Feb 08, 2003 at 12:43:05PM -0500, Daniel Barclay wrote: Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? echo yes /dev/lp0 Doesnt always work. For instance on my printer, youll get nothing. A better way is cat /var/log/kern.log | grep lp That should show you what port your printer is on. That, too, doesn't always work. On this system, lp0 (my printer) is not mentioned in /var/log/*. dmesg | grep lp, does mention lp0, and only because the lp module was loaded last night (I decided to get around to getting this system to print, and I wanted to make sure I entered the right device into magicfilterconfig). -- Seneca [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to determine whether (first) printer is lp0 or lp1?
Seneca wrote: On Sat, Feb 08, 2003 at 02:17:58PM -0500, Scott Henson wrote: On Sat, 2003-02-08 at 13:45, Seneca wrote: On Sat, Feb 08, 2003 at 12:43:05PM -0500, Daniel Barclay wrote: Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? ... Doesnt always work. ... That, too, doesn't always work. Is there any relevant node in the /proc filesystem ? Daniel -- Daniel Barclay [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to determine whether (first) printer is lp0 or lp1?
On Saturday 08 February 2003 18:43, Daniel Barclay wrote: Is there a direct way determine whether the (first) printer is /dev/lp0 or /dev/lp1? I'd suggest using devfs. Makes it terribly easy since you get the /dev/printers directory. -- Got Backup? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]