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