R
Rainer Hubovsky
Hello Python-Gurus,
==========================
f = open(LOGFILE,'w')
f.write(time + '\n')
f.close
command = 'ping -n 20' + target + '>>' + LOGFILE
system(command)
==========================
produces an error saying that a file cannot be accessed because it is used
by another process. I asume it is f which is used but don't understand why.
Any ideas?
Thanks a lot!
Cheers,
Rainer
==========================
f = open(LOGFILE,'w')
f.write(time + '\n')
f.close
command = 'ping -n 20' + target + '>>' + LOGFILE
system(command)
==========================
produces an error saying that a file cannot be accessed because it is used
by another process. I asume it is f which is used but don't understand why.
Any ideas?
Thanks a lot!
Cheers,
Rainer