Thread Subject:
command "destroy" jobs in the cluster

Subject: command "destroy" jobs in the cluster

From: Jose

Date: 16 Apr, 2010 12:02:07

Message: 1 of 2

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

Subject: command "destroy" jobs in the cluster

From: Jose

Date: 16 Apr, 2010 12:49:23

Message: 2 of 2

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@gmail.com> wrote in message <hq9jjv$lb2$1@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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
protected yur jobs... Jose 16 Apr, 2010 08:49:26
rssFeed for this Thread

Contact us