<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div>Buna,</div><div><br></div>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). <div><br></div><div>Spor,</div><div> Silvia</div><br>--- On <b>Fri, 3/23/12, Stanciu Alexandru <i><the_marian_2006@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Stanciu Alexandru <the_marian_2006@yahoo.com><br>Subject: Re: [so] Testul 3 Windows<br>To: "so@cursuri.cs.pub.ro" <so@cursuri.cs.pub.ro><br>Date: Friday, March 23, 2012, 4:47 PM<br><br><div id="yiv1520001222"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york,
times, serif;font-size:12pt;"><div><font size="2" face="Arial"><b><span style="font-weight:bold;">From:</span></b> Razvan Crainea <razvan.crainea@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> Stanciu Alexandru <the_marian_2006@yahoo.com>; Sisteme de Operare <so@cursuri.cs.pub.ro> <br> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 23, 2012 6:26 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [so] Testul 3 Windows<br> </font> </div><div style="font-size:12pt;"><div style="font-size:12pt;"> <br>
/3/23 Stanciu Alexandru <<a rel="nofollow" ymailto="mailto:the_marian_2006@yahoo.com" target="_blank" href="/mc/compose?to=the_marian_2006@yahoo.com">the_marian_2006@yahoo.com</a>>:<br>><br>> Obtin asta:<br>>> cat test.txt<br>> test1<br>> test2<br>><br><br>Și dacă folosești prima oară operatorul ">", ca în exemplul de mai<br>jos, ce obții?<br><br>rm test.txt<br>echo "test1" > test.txt<br>echo "test2" >> test.txt<br>cat test.txt<br><br>-- <br>Răzvan Crainea<br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;" class="yiv1520001222yui_3_2_0_17_133252110741961"><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;" class="yiv1520001222yui_3_2_0_17_133252110741961">Obtin asta.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"
class="yiv1520001222yui_3_2_0_17_133252110741961">Alex@Alex-PC:/cygdrive/c/Users/Alex/Desktop/tema1-checker-win1$ ./mini-shell.exe <br>> rm
test.txt<br>> echo "test1" > test.txt<br>> echo "test2" >> test.txt<br>> cat test.txt<br>test1<br>test2</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;" class="yiv1520001222yui_3_2_0_17_133252110741961"><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;" class="yiv1520001222yui_3_2_0_17_133252110741961">Poate sa fie problema din alta parte? Am verificat, si reverificat totul de o gramada de ori.<br><br><br> </div> </div> </div></div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br><a href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii" target="_blank">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></div></blockquote></td></tr></table>