--- On Tue, 11/17/09, Lie Ryan <lie.1...@gmail.com> wrote:
> From: Lie Ryan <lie.1...@gmail.com> > Subject: Re: IOError: [Errno 28] No space left on device > To: python-list@python.org > Date: Tuesday, November 17, 2009, 6:59 PM > hong zhang wrote: > > 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. > > Apparently the harddisk where you stored the file is full? I have plenty space see: $ df -l Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 74027808 4910016 65357380 7% / but following is good. 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 > -- http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list