Score:0

Running inotify im bg using nohup workig only once

dz flag

I am trying to run inotifywait with nohup so that inotifywait shall run despite of closing terminal. i tried with nohup but it run only once. Next time when i add file to the folder it is not being executed. Below is codesnip which i am using for inotify.

nohup inotifywait -m -r "/var/www/html/demo-ni-post/company" -e create -e moved_to |
while read dir action file; do
    python3 /var/www/html/demo-ni-post/runExtractFile.py $file
done
</dev/null >/dev/null 2>&1 &

Request all to please help us on same.

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.