From: Jose on 16 Apr 2010 08:02 Hello everyone, when I try to destroy jobs from my cluster, I use the next commands to see the jobs (jm) running in the cluster: j=get(jm,'Jobs') get(j,'Name') then, appear all the jobs: claire jose jose jose claire ..... .... 100 jobs for example, How can I destroy only the jobs with the name 'Jose'... only the way to do that is: destroy(j(2:4)).......but it is very dangerous, because I can destroy other jobs that there not mine. Please, I need help with it Thanks in advance
From: Jose on 16 Apr 2010 08:49 I got it, it was easy......but my question is : is not possible to protect your jobs in Distributed computing Matlab to avoid that anyone else remove your jobs for mistakes?...in other linux distributions it is possible...but, whay not in MATLAB? Someone can help me with this question? j=get(jm,'jobs'); isjose=zeros(1,length(j)); for n=1:length(j) a=get(j(n),'Name') if a(1)=='J' isjose(n)=1; end end b=find(isjose==1) get(j(b),'Name') % to be sure there are only your jobs destroy(j(b)) "Jose " <jose.l.vega(a)gmail.com> wrote in message <hq9jjv$lb2$1(a)fred.mathworks.com>... > Hello everyone, when I try to destroy jobs from my cluster, I use the next commands to see the jobs (jm) running in the cluster: > > j=get(jm,'Jobs') > > get(j,'Name') > > then, appear all the jobs: > > > claire > jose > jose > jose > claire > .... > ... > 100 jobs for example, > > How can I destroy only the jobs with the name 'Jose'... > > only the way to do that is: > > destroy(j(2:4)).......but it is very dangerous, because I can destroy other jobs > that there not mine. > > Please, I need help with it > > Thanks in advance
|
Pages: 1 Prev: load matrix from workspace to simulink Next: Reconstructing Image File using XML File |