Hello,

We have a RH 7,2 application server running applications developed using
PHP and Postgresql.

In the application I am printing documents on remote printer...

For ex.:

If the user is running application from 192.168.20.201 from the browser
than the document should be printed on the printer connected to the
machine 192.168.20.201. For this I have created a lpd printer queue on
the server with name Q19216820201 and from the application I am printing
with 

lp -d Q19216820201 filename

What happens is the job is spooled to the Queue on 192.168.20.201 but it
goes with the user rights of apache... I am using exec() from php to
print.

Now I want to give the user a button to clear this print queue... 
If I put the same command in PHP script

lprm -P Q19216820201

nothing happens... 

The job is still in the queue....

When I use exec() to print and the same function to delete the print
queue..., the same user should be used.. isn't it.. ie: apache... 

Than why the queue is not getting deleted... ? 

Hope I have made my problem clear....

Can anybody throw some light on this ?

Thanks in advance.

Peace

--
Rajesh
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Procmail recipe to split digests               LOST #076

A procmail recipe to split digests from mailing lists into its
component mails, would be as shown .. (This example is for LIH
digests). In your .procmailrc (or /etc/procmailrc) add:
 
  :0:
  * (^To:.*|^Cc:.*)linux-india-help
    | formail +1 -ds >> $HOME/mail/LIH

####[rfowkar (at) yahoo.com]##################################
:


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to