[pso] [tema2][lin] test - problema cu grep

Andrei Dragus adragus at gmail.com
Sat Apr 3 00:02:23 EEST 2010


De fapt m-am grabit :).
Nu merge nici asa, erau sursele in care stersesem de tot redirectarile.

Andrei.

2010/4/2 Andrei Dragus <adragus at gmail.com>

> De fapt se pare ca ar conta.
> Daca pun pe liniile respective ' in loc de " merge.
>
>
>
> 2010/4/2 Andrei Dragus <adragus at gmail.com>
>
>> Este comanda de pe linia 207 din test.c. Este exact asa ( am observat ca
>> altereneaza " cu ' prin teste dar nu conteaza)
>> Daca dau comanda din consola imi returneaza 1.
>>
>> Mentionez ca e ultima masina virtuala.
>>
>> Mersi,
>> Andrei
>>
>> 2010/4/2 Daniel Baluta <daniel.baluta at gmail.com>
>>
>> 2010/4/2 Andrei Dragus <adragus at gmail.com>:
>>> > Incerc urmatoarele bucati de cod:
>>> >
>>> > int x = system("cat /proc/interrupts | grep \"3:.*uart16550\" &>
>>> /dev/null")
>>> > ;
>>> > printf("Got:%d\n",x); //Got: 0
>>> >
>>> > int x = system("cat /proc/interrupts | grep \"3:.*uart16550\"") ;
>>> > printf("Got:%d\n",x);// Got:256
>>> Dacă rulezi de mână comenzile ce se întâmplă?
>>>
>>> De unde ai luat comanda dată lui system? În teste arată un pic diferit ("
>>> -> ')
>>>
>>> thanks,
>>> Daniel.
>>> _______________________________________________
>>> pso mailing list
>>> pso at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/pso.html/attachments/20100403/1e046c8a/attachment.htm>


More information about the pso mailing list