Stop matlab process for tck file process. [INPUT] work_dir : tck file directory. worker_number : The worker number to stop. Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function dmri_fiber_tck_file_worker_stop(work_dir) 0002 % Stop matlab process for tck file process. 0003 % 0004 % [INPUT] 0005 % work_dir : tck file directory. 0006 % worker_number : The worker number to stop. 0007 % 0008 % Copyright (C) 2011, ATR All Rights Reserved. 0009 % License : New BSD License(see VBMEG_LICENSE.txt) 0010 0011 cmd=['ps aux | grep ' work_dir ' | grep -v grep | awk ''{ print "kill -9 ", $2}'' | sh']; 0012 system(cmd);