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.make - Function Up: executive - Tool Previous: executive.runscript - Function


executive.run - Function



Package utility
Module misc
Tool executive


Run a sequence of commands


Synopsis
run(commands, inc, host, log)


Description
Run a sequence of commands, optionally on another host. Specification of a log file is optional - if not specified, output is logged in the current glish session. An include file may be specified.

The number returned is the job number, which is a monotonically increasing number starting at one. You can use this number to kill or remove a given job.

Important Note that the scripts run in a separate instance of glish. Thus variables such as tools defined in the current glish session will not be available inside the script.



Arguments

commands   Commands to be executed
    Allowed: String
    Default: None
inc   Include file to be invoked on start
    Allowed: String
    Default: ''
host   Host where script is to be run: default is current host
    Allowed: String
    Default: ''
log   Log file
    Allowed: String
    Default: ''


Returns
job number


Example
include 'executive.g';
myexecutive:=executive();
myexecutive.run('doit()', inc='ireallydoit.g', host='zeus');





next up previous contents index
Next: executive.make - Function Up: executive - Tool Previous: executive.runscript - 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