On Thursday 12 November 2020 10:25:57 Dr. Nikolaus Klepp wrote:
Anno domini 2020 Thu, 12 Nov 11:38:47 -0600
Michael via tde-users scripsit:
On Thursday 12 November 2020 11:05:40 am BorgLabs
- Kate Draven wrote:
>
That's half of it Kate, the cups installed on the clients needs to
> have "browser" enabled. Once that's done you can keep the
> chainsaws busy. Until you run out of ink or toner.
Oh my ... that's the reason why I set up a "drop stuff here" folder
on the
only computer that's connected to a printer. Whenever I drop a file
into it, it gets printed and deleted.
Oh that's interesting. Never used that.
Hi Nik,
Do you use incron (incrontab) for this? You willing to share your script
(assuming it's in bash)?
Oh, that's just some lines in /etc/rc.local:
(
mkdir /tmp/xxx
inotifywait -m /tmp/xxx -e CLOSE_WRITE | while read a; do
b=$(echo "$a" | cut -d ' ' -f 3-)
lpr "$b" && rm "$b"
done
) &
now copy anything you want to print to /tmp/xxx ... hopefully you have set
up filters for all the strange files that are not ps, pdf ot txt ... and
you could do some better sanity checking :) Oh, you need inotify-tools,
too.
Curiosity, best time waster ever invented!
That's why smartphones were invented. with smatphones nobody will ever feel
curiosity again!
Nik
As a much younger person once very patiently tried to explain to me: one must
be "smart enough" to use a smartphone.
:-\
Bill