From 53ad220f55ed139dbb8cd9d366101556bfc69bb6 Mon Sep 17 00:00:00 2001 From: sienkiew Date: Thu, 27 Jun 2013 15:33:14 +0000 Subject: 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 --- steuermann/run_cron.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'steuermann/run_cron.py') 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 ) -- cgit