On Nov 20, 2003, at 12:50 AM, Chien-Yu Chen wrote:

I am trying to set up cups for printing...
however, the data file for the print job would somehow disappear before
pstops is about to process the job. (I put a few sleep(30) in the cupsd
source)....but I can't exactly figure out where in the source is the data
file got erased...


so my question is, are there any ways to monitor a file, and see which
process is accessing it?

This is a difficult one ;)


I would recommend grepping cups source for unlink() or rename().
You could also try strace, looking for those sys calls, or for fork/exec calls and see if cups is using the shell to do it.
You could attach a debugger to the cups server and set breakpoints on unlink, rename, and fork. (This would probably be best.)


Are you sure cups is not just moving the file from one queue to another or something like that?

_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to