LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 07: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


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 06:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration