to stderr
This commit is contained in:
parent
cd8ab469ff
commit
fcf2f0a03d
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
|
import sys
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description='TODO')
|
parser = argparse.ArgumentParser(description='TODO')
|
||||||
@ -17,7 +18,8 @@ def main():
|
|||||||
for machine in machines:
|
for machine in machines:
|
||||||
host_file = os.path.join(args.host_dir, 'hosts%d' % machine)
|
host_file = os.path.join(args.host_dir, 'hosts%d' % machine)
|
||||||
cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, nrepeat[i])
|
cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, nrepeat[i])
|
||||||
print 'data=%d, repeat=%d, machine=%d' % (data, nrepeat[i], machine)
|
sys.stderr.write('data=%d, repeat=%d, machine=%d\n' % (data, nrepeat[i], machine))
|
||||||
|
sys.stderr.flush()
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user