Da, asta era problema:). Multumesc mult!

________________________________
 From: Silvia Marcu <[email protected]>
To: Stanciu Alexandru <[email protected]>; Sisteme de Operare 
<[email protected]> 
Sent: Friday, March 23, 2012 7:16 PM
Subject: Re: [so] Testul 3 Windows
 

Buna,
Am avut si eu problema asta. Cauza era ca nu alocam suficient spatiul pentru 
comanda pe care i-o dadeam ca parametru functiei CreateProcess inainte de a 
concatena parametrii comenzii (foloseam strdup si apoi strcat => solutie: 
malloc + strcpy si apoi strcat). 

Spor,
  Silvia
--- On Fri, 3/23/12, Stanciu Alexandru <[email protected]> wrote:


>From: Stanciu Alexandru <[email protected]>
>Subject: Re: [so] Testul 3 Windows
>To: "[email protected]" <[email protected]>
>Date: Friday, March 23, 2012, 4:47 PM
>
>
>From: Razvan Crainea <[email protected]>
>To: Stanciu Alexandru <[email protected]>; Sisteme de Operare 
><[email protected]> 
>Sent: Friday, March 23, 2012 6:26 PM
>Subject: Re: [so] Testul 3 Windows
> 
>
>/3/23 Stanciu Alexandru <[email protected]>:
>>
>> Obtin asta:
>>> cat test.txt
>> test1
>> test2
>>
>
>Și dacă folosești prima oară operatorul ">", ca în exemplul de mai
>jos, ce obții?
>
>rm test.txt
>echo "test1" > test.txt
>echo "test2" >> test.txt
>cat test.txt
>
>-- 
>Răzvan Crainea
>
>
>
>Obtin asta.
>Alex@Alex-PC:/cygdrive/c/Users/Alex/Desktop/tema1-checker-win1$ 
>./mini-shell.exe 
>> rm
 test.txt
>> echo "test1" > test.txt
>> echo "test2" >> test.txt
>> cat test.txt
>test1
>test2
>
>
>Poate sa fie problema din alta parte? Am verificat, si reverificat totul de o 
>gramada de ori.
>
>
>
>-----Inline Attachment Follows-----
>
>
>_______________________________________________
>http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii 
_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii

Raspunde prin e-mail lui