Hi. 2011/5/27 LASKE, Lionel (C2S) <lla...@c2s.fr>
> > > Hi all, > > > > Is there a simple way to get the XO serial number and/or the XO name from > the command line and/or from a python script ? > Also you could use this script: _ _ _ #!/usr/bin/python -tt import subprocess getserial = subprocess.Popen(['cat /ofw/serial-number'], shell=True, stdout=subprocess.PIPE) for line in getserial.stdout: print(line.decode().strip()) _ _ _ there is an easier way with "subprocess.call". But with this script you can catch the output and to use it, almost, as you wish. I hope it helps you. Regards > > > Lionel. > > _______________________________________________ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > > -- Henry Vélez Molina Administrador de red OLPC Fundación MArina Orth Tel :341 23 59 Móvil: 312 769 0169 www.fundacionmarinaorth.org
_______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel