Re: Possible bugs in Trinity Control Center - Printers and OS Installer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> 
> Best,
> Michael
> ____________________________________________________
> tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
> Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx
> 



-- 
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux