Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-18-2004, 07:09 PM   #1
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Rep: Reputation: 15
CUPS job list

Hopefully this is an easy one.

I'm trying to create a custom job list (in PHP at present - but bash is fine cause i can export the output to PHP) from my cups print queus to display on a webpage

Cups provides

PHP Code:
echo shell_exec("lpstat -o"
and exploding the resultant value i am able to display
Job ID
Submit Time
but NOT the three main ones i am currently after
Filename - e.g. "STDIN" or "Document 1 - Microsoft Word"
Status - e.g. "Processing" "Queued" "Printing" "Held"
and (if it's possible)
IP Address of the sending machine.

I want this as a quick overview of whats printing, and so it can be included in the main systems, so the user can click "My Print Jobs" and (if i can use the IP Address as most users appear as NWUSER, USERXP, USER2K, USER98 - defeating the point of having a username [changed for security]) display all jobs in the queues that that machines IP address has sent.

If i can get the RAW data out i can do other stuff on it i want.

I'd also like to avoid using "lynx --dump http://192.168.#.#:631/jobs" if i can help it.

Anyone any ideas?

Running on Mandrake 9.1 and Mandrake 10.0 Official


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 09:31 AM
cups doesn't list ltp for printer munkie_poo Slackware 1 09-04-2004 04:26 PM
Clearing CUPS print job? Jonah86 Linux - Newbie 2 05-24-2004 03:11 PM
Why does CUPS print after 15 seconds whether the job is ready or not? Izzard Linux - General 2 12-11-2003 04:36 AM
samba/cups print job size carpman Linux - Networking 1 01-25-2002 06:40 AM

All times are GMT -5. The time now is 01:49 AM.

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