Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to kill parallel program of R in Linux

Tags:

linux

r

rparallel

I use R to do parallel computing. Every time, when I want to kill the parallel program, I always use kill 2130 2131 6456(PID). Is there a way to kill all the programs of R?enter image description here

like image 720
Ben Avatar asked Apr 15 '15 02:04

Ben


1 Answers

Do

 killall R

or

 killall -9 R

So see the help pages for pgrep and related utilities. Also useful is htop instead of top and just hitting k for kill in it.

There are a bazillion such helper programs -- google for 'useful command-line programs' and eg this tutorial comes up.

like image 137
Dirk Eddelbuettel Avatar answered Nov 01 '22 12:11

Dirk Eddelbuettel