IOError: [Errno 28] No space left on device

hong zhang henryzhang62 at yahoo.com
Tue Nov 17 19:02:57 EST 2009


List,

My python script has a strange error.

cont_tx = 1
for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
	with open(i, 'w') as f:
		print >>f, cont_tx

work perfectly.

But following get error like:
print >>f, cont_tx
IOError: [Errno 28] No space left on device

def do_cont_tx( is_start):
	global cont_tx_started, stdscr
	if is_start == START and not cont_tx_started:
		cont_tx = 1
		for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
			with open(i, 'w') as f:
				print >>f, cont_tx

Too many layers?
Thanks for help.

---henry


      



More information about the Python-list mailing list