[pso] [Tema 1] Intrebari
Cosmin Ratiu
cosminratiu at gmail.com
Tue Mar 16 20:59:38 EET 2010
2010/3/16 Drutu Bogdan <bogdandrutu at gmail.com>
> De ce la linia asta: (test.c:77):
>
> sprintf(dummy, "dmesg | grep
> '^\\[%lx\\]%lx(%lx,%lx,%lx,%lx,%lx,%lx)=%lx' &> /dev/null",
> (long)getpid(), sno, args[0],
> args[1], args[2], args[3], args[4], args[5], ret);
>
> Avem ^ in formarea mesajului de grep? Din cauza asta mie imi pica
> testul... Este normal sa fie acolo? Daca da de ce?
>
'^' matchuieste inceputul liniei. Ai cumva caractere in plus la inceputul
liniei?
Cosmin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20100316/4e266594/attachment-0001.htm>
More information about the pso
mailing list