removeStuff.py
Go to the documentation of this file.
1 import os, time
2 
3 start_time = time.time()
4 
5 f = open("crap.txt")
6 lines = f.readlines()
7 f.close()
8 
9 for line in reversed(lines):
10  blah = line.split()[0]
11  os.system("jobsub_rm -G lbne --jobid="+blah);
12  # Don't let job go on for more than a day -- kerberos ticket dies
13  current_time = time.time()
14  if current_time - start_time > 60*60*23:
15  sys.exit()
16 
int open(const char *, int)
Opens a file descriptor.