Now my boss whats me to change my daemon process and hook into the spooler
or que or whatever and grab the que'd up files that are queued up from
another running application that I can't work with, 3rd party app. Actually,
I don't think its impossible.
Is this possilble to do? Or is there a work around to force the queued spool
file to forcefully make it print to a file? Remember, I have no control
whats so ever with that 3rd party application that is creating the queued
file to the spooler.
If so, where can I get the information?
Your help is much, much appreciated.
Thanks,
Jeff
> Now my boss whats me to change my daemon process and hook into the spooler
> or que or whatever and grab the que'd up files that are queued up from
> another running application that I can't work with, 3rd party app. Actually,
> I don't think its impossible.
if it's a sysV type spooler you can easily create an "interface script" that
pipes the data to anything. All that is needed is to create a new printer
and a corresponding interface script.
A BSD system can do simular by using "filters" on a printqueue.
In essence you create a "dummy" print-queue whos only purpose is to
grab the data into your process.
> Is this possilble to do? Or is there a work around to force the queued spool
> file to forcefully make it print to a file? Remember, I have no control
> whats so ever with that 3rd party application that is creating the queued
> file to the spooler.
> If so, where can I get the information?
> Your help is much, much appreciated.
> Thanks,
> Jeff
--
--
Peter Håkanson
Manet Networking (At the Riverside of Gothenburg, home of Volvo)
Sorry about my e-mail address, but i'm trying to keep spam out.
echo "peter (at) manet (dot) nu" | sed "s/(at)/@/g " | sed "s/(dot)/\./g"|sed "s/ //g"