diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2013-06-27 11:33:14 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2013-06-27 11:33:14 -0400 |
commit | 53ad220f55ed139dbb8cd9d366101556bfc69bb6 (patch) | |
tree | 72780c21e7d0f3066a865bf9cbabb40c7d7e6d15 | |
parent | 677386220607063ae83e5c4443feacaf22c288f8 (diff) | |
download | steuermann-53ad220f55ed139dbb8cd9d366101556bfc69bb6.tar.gz |
hack run_cron to work with other modifications
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@992 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r-- | steuermann/run_cron.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/steuermann/run_cron.py b/steuermann/run_cron.py index f2a01b3..edb0451 100644 --- a/steuermann/run_cron.py +++ b/steuermann/run_cron.py @@ -52,12 +52,16 @@ def main() : node.table = None node.cmd = None node.script = script + node.resources = { } if host == 'localhost' : node.script_type = 'l' # local else : node.script_type = 'r' # remote - runner = steuermann.run.runner( nodes = { node.name : node } ) + hosts_ini = os.path.join(os.path.dirname(__file__), 'hosts.ini') + + runner = steuermann.run.runner( nodes = { node.name : node }, hosts_ini = hosts_ini ) + logname = logfile_name = steuermann.config.logdir + '/cron/' + logfile st = runner.run( node=node, run_name='', logfile_name = logname ) |