ok, questo problema l'ho risolto (sono un pirla, non chiudevo il file una volta aperto)
ora rimane il problam di come generare dalla lista un file CSV... qualcuno mi può aiutare? Grazie in anticipo. Igor >> Igor Longhi ha scritto: >> >> >>> import socket >>> >>> #Hostname >>> host = socket.gethostname() >>> >>> #primo file >>> f=open ("/etc/ver_1") >>> voi=f.readline() >>> print voi >>> >>> #secondo file >>> v=open("/etc/ver_2") >>> vcti=v.readline() >>> >>> >>> lista=[host, voiper, vcti] >>> >>> #creiamo il CSV >>> csv=open("/etc/dati.csv", "a") >>> for item in lista: >>> csv.write(lista) >>> >>> _______________________________________________ >>> >>> >>> >>> >>> >> _______________________________________________ >> Python mailing list >> Python@lists.python.it >> http://lists.python.it/mailman/listinfo/python >> >> >> >> > > _______________________________________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/mailman/listinfo/python > > > _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python