LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2004, 06:09 PM   #1
AcerKev
Member
 
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
ID
Name
User
Size
State

using
PHP Code:
echo shell_exec("lpstat -o"
and exploding the resultant value i am able to display
Job ID
Name
Size
Size
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
 
  


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 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 08:31 AM
cups doesn't list ltp for printer munkie_poo Slackware 1 09-04-2004 03:26 PM
Clearing CUPS print job? Jonah86 Linux - Newbie 2 05-24-2004 02:11 PM
Why does CUPS print after 15 seconds whether the job is ready or not? Izzard Linux - General 2 12-11-2003 03:36 AM
samba/cups print job size carpman Linux - Networking 1 01-25-2002 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:25 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