#!/usr/bin/env python3 # Note: this utility can run under python2.7 or python3 from sys import argv from os import system if '-h' in argv or '--help' in argv or len(argv) <= 1: print('Usage: %s [ ... ]\n' % argv[0]) print(' is a DiFX job name, such as bb344a_34') else: for a in argv[1:]: cmd = 'mk5control "killmpifxcorr %s" all' % a print('Executing: %s' % cmd) system(cmd)