Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- # Sorry this is a very lame code
- lst = []
- data = os.popen('df -i').readlines()
- data = data[1].split(' ')
- for i in data:
- if i != '':
- lst.append(i)
- exhaust_count = int(lst[3])
- print "Total free inodes:",exhaust_count
- count = 0
- for i in range(exhaust_count+100):
- os.system('touch '+str(i)+'.txt')
- count+=1
- print "So far:",count, "Remaining:",exhaust_count-count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement