09-22-05 01:49 AM
Hello, I'm a *novice* at both using php and UNIX, and came across a
problem while trying to modify an ex-coworkers php code for printing.
The original script sent one huge print job to our printing server,
which worked fine since we weren't printing duplex. We'd like to now
split the jobs up and send them individually, which we easily achieved
using a while loop to send each job.
The problem is that since the printer is in duplex mode now, if you
have two jobs which are 1 sheet each they will print them each on one
side of the paper. Obviously not a good thing for two seperate bills.
My question is that since we're using the system command lp to print
the jobs, is there a variable or command we can test that will tell us
if the printer is free of jobs?
There might be a php function that will do this which is why I will
mirror this message in a php group, but in the mean time I would like
to know if there was a UNIX specific solution to this problem.
Best regards,
Chris Bennett, NapaNet
[ Post a follow-up to this message ]
|