[so] Testul 3 Windows
Stanciu Alexandru
the_marian_2006 at yahoo.com
Fri Mar 23 20:07:27 EET 2012
Da, asta era problema:). Multumesc mult!
________________________________
From: Silvia Marcu <silviamarcu90 at yahoo.com>
To: Stanciu Alexandru <the_marian_2006 at yahoo.com>; Sisteme de Operare <so at cursuri.cs.pub.ro>
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 <the_marian_2006 at yahoo.com> wrote:
>From: Stanciu Alexandru <the_marian_2006 at yahoo.com>
>Subject: Re: [so] Testul 3 Windows
>To: "so at cursuri.cs.pub.ro" <so at cursuri.cs.pub.ro>
>Date: Friday, March 23, 2012, 4:47 PM
>
>
>From: Razvan Crainea <razvan.crainea at gmail.com>
>To: Stanciu Alexandru <the_marian_2006 at yahoo.com>; Sisteme de Operare <so at cursuri.cs.pub.ro>
>Sent: Friday, March 23, 2012 6:26 PM
>Subject: Re: [so] Testul 3 Windows
>
>
>/3/23 Stanciu Alexandru <the_marian_2006 at yahoo.com>:
>>
>> 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20120323/1c72aaa5/attachment.html>
More information about the so
mailing list