job.py (1392:aabce7923b3b) | job.py (1712:3bb2f82d705c) |
---|---|
1#!/usr/bin/env python 2# Copyright (c) 2005 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 120 unchanged lines hidden (view full) --- 129 130 try: 131 os.chdir(workdir) 132 except OSError,e: 133 sys.exit(e) 134 135 os.symlink(joinpath(jobdir, 'output'), 'status.out') 136 | 1#!/usr/bin/env python 2# Copyright (c) 2005 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 120 unchanged lines hidden (view full) --- 129 130 try: 131 os.chdir(workdir) 132 except OSError,e: 133 sys.exit(e) 134 135 os.symlink(joinpath(jobdir, 'output'), 'status.out') 136 |
137 args = [ joinpath(basedir, 'm5'), joinpath(basedir, 'run.mpy') ] | 137 args = [ joinpath(basedir, 'm5'), joinpath(basedir, 'run.py') ] |
138 if not len(args): 139 sys.exit("no arguments") 140 141 print 'starting job... %s' % date() 142 print ' '.join(args) 143 print 144 sys.stdout.flush() 145 --- 38 unchanged lines hidden --- | 138 if not len(args): 139 sys.exit("no arguments") 140 141 print 'starting job... %s' % date() 142 print ' '.join(args) 143 print 144 sys.stdout.flush() 145 --- 38 unchanged lines hidden --- |