Access remote port from local machine:
ssh -f -L <local_port>:localhost:<remote_port> <remote_host> -N
Execute command on file/dir change:
watchmedo shell-command --patterns="*.rmd" --command="Rscript compile.rscript"
Access remote port from local machine:
ssh -f -L <local_port>:localhost:<remote_port> <remote_host> -N
Execute command on file/dir change:
watchmedo shell-command --patterns="*.rmd" --command="Rscript compile.rscript"