Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automatically printing
#3
At least for Ubuntu, incron will save the incrontab file in /var/spool/incron/

First you need to add yourself to the allowed users in:

/etc/incron.allow

Just your user name on one line.

Then you can edit your incrontab with

incrontab -e (this calls nano editor on my system)

I put this:

Quote:/home/pedro/temp IN_MODIFY /home/pedro/myBashscripts/lp_JPGv2.sh

Now, if I copy a .jpg file to /home/pedro/temp it will immediately be sent to the printer of my choice, set in the bash script.
Reply


Messages In This Thread
automatically printing - by homg1968 - Jan-16-2022, 08:08 PM
RE: automatically printing - by Pedroski55 - Jan-17-2022, 09:57 AM
RE: automatically printing - by Pedroski55 - Jan-18-2022, 10:50 PM
RE: automatically printing - by Pedroski55 - Jan-22-2022, 02:54 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020