Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: executive.gui - Function Up: executive - Tool Previous: executive.list - Function


executive.stop - Function



Package utility
Module misc
Tool executive


Stop a specified job


Synopsis
stop(id)


Description
Stop a specified job, either by killing the glish client executing it (if it is running) or by removing it from the waiting queue. The job is identified by the job id number returned by run or runscript.



Arguments

id   Job id from run or runscript
    Allowed: Int
    Default: None


Returns
Bool


Example
include 'executive.g';
myexecutive:=executive();
myexecutive.setconcurrent(2);
myexecutive.run('doit()', inc='ireallydoit.g', host='zeus');
myexecutive.run('doitaswell()', inc='ireallydoit.g', host='zeus');
myexecutive.run('doiteventually()', inc='ireallydoit.g', host='zeus');
myexecutive.stop(2);
print myexecutive.list();





next up previous contents index
Next: executive.gui - Function Up: executive - Tool Previous: executive.list - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15