[Bio] / FigKernelPackages / JobScheduler.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/JobScheduler.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Tue May 17 16:04:08 2005 UTC revision 1.5, Sun Jul 10 01:05:36 2005 UTC
# Line 92  Line 92 
92      return $job;      return $job;
93  }  }
94    
95    =head1 job_delete
96    
97    Remove a job directory and all associated files. This will completely remove the job, so be sure you really want to do this :)
98    
99    Returns 1 on success and 0 on error, and writes the error to STDERR
100    
101    =cut
102    
103    sub job_delete
104    {
105        my($self, $job)=@_;
106        my $job_dir = "$self->{dir}/$job";
107        unless (-e $job_dir) {print STDERR "No directory found for requested job $job\n"; return 0}
108        my $result=`rm -rf $job_dir`;
109        if ($result) {print STDERR "Removing caused this error:\n$result\n"; return 0}
110        else {return 1}
111    }
112    
113  =pod  =pod
114    
115  =head1 get_job_to_execute  =head1 get_job_to_execute

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3