LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2003, 08:15 AM   #1
Reginald0
LQ Newbie
 
Registered: Dec 2002
Location: Brazil
Posts: 26

Rep: Reputation: 15
Linux printing questions


Hi, folks!

I have two questions concerning linux printing:

1) How can I log all the printer usage with informations like user, filename, time, number of pages, etc. for individual printers (e.g. printer_name.log)?
2) How can I redirect a printer to a file (print to file instead of paper) using variable names, by user (e.g. printer_name.user1, printer_name.user2, ...)?

I'm using LPRng with Red Hat 7.2

Thanks in advance.

PS: Sorry about my english mistakes, I'm brazilian :-)
 
Old 09-03-2003, 04:43 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"1) How can I log all the printer usage with informations like user, filename, time, number of pages, etc. for individual printers (e.g. printer_name.log)?"

You can start a print log by placing an entry in /etc/printcap:
lf=var/log/printer_name.log
I do not know what information is logged. You could try starting a print log and see what you get.

"2) How can I redirect a printer to a file (print to file instead of paper) using variable names, by user (e.g. printer_name.user1, printer_name.user2, ...)?"

I would guess that you use the "lpc redirect" command but that is just a guess. Take a look at:
man lpc


Last edited by jailbait; 09-03-2003 at 04:46 PM.
 
Old 09-15-2003, 08:01 AM   #3
Reginald0
LQ Newbie
 
Registered: Dec 2002
Location: Brazil
Posts: 26

Original Poster
Rep: Reputation: 15
Hi folks, it's me again!

After a few searches, I decided to learn more about the LPRng, and reading it's HOWTO I found the options was looking for, except that I couldn't get to make the page counter work, so I started another thread to discuss this subject.

Thanks anyway.

Reginald0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing questions BigCdaAnswer3 Linux - Hardware 2 01-30-2005 01:56 AM
Printing Questions trieder Linux - Networking 2 08-22-2003 04:48 PM
Printing Questions...... Bawheid Linux - General 0 08-19-2003 03:41 AM
Printing to Windows with Samba and CUPS, error questions messenjah Linux - Software 1 07-22-2003 07:15 PM
couple of newbie printing questions samiam Linux - Newbie 1 11-03-2001 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration