Question about logging printer jobs...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question about logging printer jobs...
# 1  
Old 12-02-2005
Question about logging printer jobs...

Is there anyway for me to run a script or something so when the network printer is activated that it logs the job name and the amount of paper used, then emaisl it to a designated email *Konicapaper@whatever.com*? For example i print job name test Konica and it uses 20 sheets of paper. then i print out test#2 and it uses 80 pieces of paper. I am running apple OSX if that helps any. I am also using the bourne shell, and Darwin. If any more info is needed just ask.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Remote Script command logging question

I've noticed that when running a script that connects to a number of our servers (to essentially run batch commands) that the commands aren't logged in the user's .sh_history or .bash_history files. Is there a place where this is logged (assuming the script itself isn't doing the logging and I'm... (3 Replies)
Discussion started by: kneemoe
3 Replies

2. Shell Programming and Scripting

waiting on jobs in bash, allowing limited parallel jobs at one time, and then for all to finish

Hello, I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies

3. AIX

AIX v5.2 Printer Question

Hi All, I have an AIX server runing v5.2.0.0 OS and i am trying to print to a printer attached to the parallel port. I have successfully configured a printer and a print queue. However, when i submit the job i get the following error Message from queueing system: 0781-088 Queue z:lp0 went... (4 Replies)
Discussion started by: rramanuj
4 Replies

4. Linux

Question about cron jobs

with the cron format * * * * * | | | | | | | | | | | | | | | +---- Day of the Week (range: 1-7, 1 standing for Monday) | | | +------ Month of the Year (range: 1-12) | | +-------- Day of the Month (range: 1-31) | +---------- Hour (range: 0-23) +------------ Minute ... (1 Reply)
Discussion started by: buyog
1 Replies

5. UNIX for Advanced & Expert Users

AIX v5.2 Printer Question

Hi All, I have an AIX server runing v5.2.0.0 OS and i am trying to print to a printer attached to the parallel port. I have successfully configured a printer and a print queue. However, when i submit the job i get the following error Message from queueing system: 0781-088 Queue z:lp0 went... (1 Reply)
Discussion started by: rramanuj
1 Replies

6. UNIX for Dummies Questions & Answers

Question about Cron jobs?

I can see where the nohup command can come in very handy. My question is, do you have to do something like this (nohup) in order to run certain cron jobs? On the windows side, I have a couple of scripts that basically run continuously, so all I have to do is ctrl-alt-del to lock my workstation,... (2 Replies)
Discussion started by: wmosley2
2 Replies

7. UNIX for Dummies Questions & Answers

Printer question

This question may sound very stupid to you guys... I am having a problem with a dot-matrix printer, which is named printer16 in our SunOS 5.6 system. Since it is a hardware problem, I want to use an alternate dot-matrix printer as a spare. But, before replacing the printer physically, I need to... (2 Replies)
Discussion started by: annedeb
2 Replies

8. UNIX for Dummies Questions & Answers

logging question

Does anyone know if there is any logging of events by the system when running a solaris server? What I'm specifically looking for is to see why a shell stopped. Thanks! (1 Reply)
Discussion started by: gillbates
1 Replies

9. UNIX for Dummies Questions & Answers

Samba Printer question

While running Samba on a linux box on my network I have discovered that when I try to add a printer to a windows host my samba box apears as a print server. This has caused a slow down on the generation of the print server list. What I would like to do is set up samba so that it does not apear... (1 Reply)
Discussion started by: xaviorm
1 Replies

10. UNIX for Dummies Questions & Answers

Logging question

Is there a log I can go to that will give me the filesystem opeations of all users. I wrote a script to delete some files and I want to make sure none were deleted out of a particular directory. Dave (1 Reply)
Discussion started by: nucca
1 Replies
Login or Register to Ask a Question
lpq(1)							      General Commands Manual							    lpq(1)

Name
       lpq - spool queue examination program

Syntax
       lpq [ options ] [ job #...  ] [ user...	]

Description
       The  command  examines  the  spooling  area used by for printing files on the printer, and reports the status of jobs.  The command invoked
       without any arguments reports on any jobs currently in the default queue.

       When jobs are being printed, reports the queue as being ``active''.  For each job submitted, reports the user's name, current rank  in  the
       queue,  the names of files comprising the job, the job identifier and the total size in bytes.  The job identifier is a number which may be
       supplied to to remove a specific job.

       Job ordering is determined by the FIFO (First In, First Out) algorithm used to scan the spooling  directory.   When  the  queue	is  empty,
       reports that there are ``no entries''.

       File  names  may  be unavailable for some jobs, for example, if the command is used without specifying a file name, or if is used in a pipe
       line.  If file names are unavailable, the file name reported by is ``standard input''.

Arguments
       job #...    Causes to report on only the job number(s) specified.

       user...	   Causes to report on only the jobs for the specified user(s).

Options
       +n   Scan and display the spool queue until the queue is empty.	The queue is scanned every n seconds, if  no  argument	is  specified  the
	    queue is scanned every 30 seconds.

       -l   Display the status of each job on more than one line if necessary.	If this option is not used, the status of each job is displayed on
	    one line.

       -Pprinter
	    Report the status of the spool queue for the printer specified.  If this option is not used, the spool  queue  displayed  is  the  one
	    defined by the PRINTER environment variable.  If a queue is not defined by the PRINTER environment variable, the spool queue displayed
	    is for the printer named ``lp'' in the file.

Restrictions
       The displayed status of the spool queue may not always be the current status.  This is because jobs may be completed after  the	queue  has
       been examined, but before the status has been displayed.

Error Messages
       Two of the most common error messages from are:

       Warning: no daemon present (R)
       A daemon is not available for the specified printer.  Refer to the command to find out how to restart the printer daemon.

       unknown printer (R)
       The printer specified as an argument to the -P option, doesn't have an entry in the file.

Files
       For manipulating the screen for repeated display

       To determine printer characteristics

       The spooling directory, as determined from printcap

       Control files specifying jobs

       The lock file to obtain the currently active job

See Also
       lpr(1), lprm(1), lpc(8), lpd(8)

																	    lpq(1)