nestrun Module
nestrun.py - run commands based on control dictionaries.
-
class nestly.scripts.nestrun.NestlyProcess(command, working_dir, popen, log_name='log.txt')[source]
Bases: object
Metadata about a process run
-
complete(return_code)[source]
Mark the process as complete with provided return_code
-
log_tail(nlines=10)[source]
Return the last nlines lines of the log file
-
running_time[source]
-
terminate()[source]
-
nestly.scripts.nestrun.extant_file(x)[source]
‘Type’ for argparse - checks that file exists but does not open.
-
nestly.scripts.nestrun.invoke(max_procs, data, json_files)[source]
-
nestly.scripts.nestrun.main()[source]
-
nestly.scripts.nestrun.parse_arguments()[source]
Grab options and json files.
-
nestly.scripts.nestrun.template_subs_file(in_file, out_fobj, d)[source]
Substitute template arguments in in_file from variables in d, write the
result to out_fobj.
-
nestly.scripts.nestrun.worker(data, json_file)[source]
Handle parameter substitution and execute command as child process.
-
nestly.scripts.nestrun.write_summary(all_procs, summary_file)[source]
Write a summary of all run processes to summary_file in tab-delimited
format.