bonjour ,
Après exécution d'un script sh par python , je ne sais pas comment récupérer
avec python les 4 lignes , depuis la console .
Ligne console :Code:
1
2
3
4
5
6
7
8 #! /usr/bin/python # -*- coding: utf-8 -*- import os import glob import time os.system('sh capt.sh')
25/12/14 -- 15:14
Using pin #4
Data (40): 0x32 0x0 0x17 0x0 0x49
Temp = 23 *C, Hum = 50 %
Ces lignes dans un string , permettra un reformatage ne gardant que les val numériques .
@+