kprinter to remove file after printing
Till Kamppeter
kde-print@mail.kde.org
Fri, 07 Mar 2003 14:20:45 +0100
Michael Goffioul wrote:
>>Why not simply using a wrapper named "kprinterrm" like
>>
>>#!/bin/sh
>>kprinter $1
>>rm -f $1
>
>
> You may need to add a small delay before removing the file because
> of the current internal implementation. Otherwise, you might remove
> the file before it is actually sent to the print spooler.
>
> Michael.
>
So then perhaps
#!/bin/sh
cat $1 | kprinter
rm -f $1
is the better as kprinter would for sure read STDIN up to the end before
it exits.
Till