7 lines
193 B
Bash
7 lines
193 B
Bash
|
#!/bin/bash
|
||
|
inotifywait -m OPUS -e create -e moved_to |
|
||
|
while read fpath action file; do
|
||
|
echo "The file '$file' appeard in directory '$fpath' via '$action'"
|
||
|
Rscript OpusData.R $file
|
||
|
done
|