we have a printer in our office and want to print out files which have been uploaded to the server via rsync.
Using incron with the following does not seem to work when uploaded from rsync:
/var/ordersFolder/orders IN_CLOSE_WRITE lp $@/$#
If I write a file to this folder normally with vim, this works and prints.
The rsync command I'm running on a crontab is the following:
rsync -t --ignore-existing [email protected]:/var/otherServer/orders/* /var/ordersFolder/orders/
Is there a way to properly do this? Thank you.