[pso] [Tema 1] Intrebari
Drutu Bogdan
bogdandrutu at gmail.com
Tue Mar 16 21:20:01 EET 2010
Din cate am programat eu (numai in masina virtuala am testat) la toate
mesajele apare un prefix de genul: "[ 1224.652270]". Deci da mai sunt
caractere inaintea mesajului.
2010/3/16 Drutu Bogdan <bogdandrutu at gmail.com>:
> spook 1 # dmesg | tail -1
> [ 1224.652270] [1b43]36(4322346c,57c6ec,710b9ad6,4eba7454,28706f66,405fb446)=fffffff7
>
>
> 2010/3/16 Cosmin Ratiu <cosminratiu at gmail.com>:
>> 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.
>>
>> _______________________________________________
>> pso mailing list
>> pso at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>
>>
>
>
>
> --
> Bogdan.
>
--
Bogdan.
More information about the pso
mailing list