opus-data/dirMonitor.sh

6 lines
147 B
Bash
Executable File

#!/bin/bash
inotifywait -m -q OPUS -e create -e moved_to |
while read fpath action file; do
Rscript OpusData.R $fpath $file >& /dev/null
done