bash - How to run multiple R scripts simultaneously? -



bash - How to run multiple R scripts simultaneously? -

i run r script (script1.r, script2.r, ...) stored in directory (~/sims). each script run in separate terminal. os i'm using os x 10.9.5.

i used bash script next commands:

#!/bin/bash files=~/sims/*.r f in $files xterm -e bash -c "r --vanilla < $f; exec bash" & done i find alternative xterm (given under os x require install bundle x11 , on machine can't install it) part of os x (like terminal app) i not exit r environment @ end of r script

this mimic xterm configuration utilize new terminal.app sessions instead:

for f in *.r osascript -e "tell app \"terminal\" script \"r --vanilla < /full/path/to/${f}\"" done

as far keeping r session alive, i'm not sure that's possible.

r bash

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -