n'avez-vous pas un alias de grep, quelque chose comme "alias grep='grep --color=auto' " ? chez moi ça marche avec une Ubuntu 10.10, mais j'ai remplacé "grep" par "/bin/grep"...<div>
Bonne soirée, Paul<br><div><br> <br><div class="gmail_quote">2011/5/8 Arnaud <span dir="ltr"><<a href="mailto:listes.00@gmail.com">listes.00@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 08. 05. 11 13:02, Félix Hauri a écrit :<br>
>> ou même ça, pour l'affichage sur une ligne à chaque fois:<br>
>> $ ps aux | grep sleep | grep -v "grep sleep" | gawk '{ printf "%s;%s;",<br>
>> $1, $7; system("date -d ""\"now +"$12"secs\"") }'<br>
>><br>
> Hem non, ce n'est pas encoee ça: l'heure affichée ne correspond à rien.<br>
<br>
Chez moi, ça affiche la date et l'heure à laquelle j'ai lancé le sleep.<br>
Mon bon, je n'utilise pas/plus de distribution debian/ubuntu ^^<br>
<br>
C'est peut-être que ce n'est pas le champ 12 sur ce genre de distribution.<br>
_______________________________________________<br>
gull mailing list<br>
<a href="mailto:gull@forum.linux-gull.ch">gull@forum.linux-gull.ch</a><br>
<a href="http://forum.linux-gull.ch/mailman/listinfo/gull" target="_blank">http://forum.linux-gull.ch/mailman/listinfo/gull</a><br>
</blockquote></div><br></div></div>