Le Thu, 23 May 2013 02:10:02 +0200, Sylvain L. Sauvage a écrit :
Par ailleurs, si ton awk
est en réalité gawk ou mawk, ca fait une différence, dans ce cas
http://www.perkin.org.uk/posts/how-to-fix-stdio-buffering.html pourra
t'aider.
confirmation le awk Raspbian est un mawk. Je n'ai pas
Sur mon Raspberry avec une interface IR maison et Raspbian wheezy (le
Debian spécial pour), j'ai installé lirc qui fonctionne bien.
J'ai reconfiguré les touches ça fonctionne bien aussi.
Le problème : c'est quand je veux utiliser le résultat.
je fais une fifo : mkfifo -a /tmp/lirc que je lis
Si j'essaie :
irw tmp/lirc : je relis impec la fifo
irw |awk '{print $0}' /tmp/lirc : rien ne ressort sur la fifo
Essaie de jouer avec la command stdbuf, par exemple (non testé):
stdbuf -i0 -o0 -e0 irw |awk '{print $0}' /tmp/lirc
Par ailleurs, si ton awk est en réalité gawk ou mawk, ca fait
Le mercredi 22 mai 2013 à 23:59:30, Jean-Damien Durand a écrit :
Si j'essaie :
irw tmp/lirc : je relis impec la fifo
irw |awk '{print $0}' /tmp/lirc : rien ne ressort sur la
fifo
Essaie de jouer avec la command stdbuf, par exemple (non
testé): stdbuf -i0 -o0 -e0 irw |awk '{print $0}'
4 matches
Mail list logo