Score:0

How to make a scrip to run a program right after a file is created in specific folder?

in flag

To be specific, I want to use rclone to move file to remote folder right after it is created. The program itself doesnt have built-in monitoring function. How do I do this? Since cron doesnt monitor

in flag
One option would be to use Facebook's [Watchman](https://github.com/facebook/watchman) utility. Another would be to use [iNotifyWait](https://askubuntu.com/a/893162/1222991) ... which is generally how I approach this sort of action. Be careful with the size of the directory being monitored, though, as there is a performance hit with this.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.