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.run - Function Up: executive - Tool Previous: executive - Constructor


executive.runscript - Function



Package utility
Module misc
Tool executive


Run a script


Synopsis
runscript(script, host, log)


Description
Run a script, optionally on another host. Specification of a log file is optional - if not specified, output is logged in the current glish session.

Important The script must exit explicitly if executive is to detect the end of processing. Thus, you must put as the last executed line exit(1).

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

script   Script to be executed
    Allowed: String
    Default: None
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.runscript('doit.g', host='zeus');
myexecutive.run('doitagain()', inc='ireallydoit.g', host='zeus');





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