cucumber Posted August 29, 2006 Report Share Posted August 29, 2006 Viss nostrada paraizi , kad ka parametru sanem ps aux, bet kad ierakstu, 'top', neko nerada ? $last = exec('ps aux', $output, $return); print_r($output); echo "Return [$return]"; Link to comment Share on other sites More sharing options...
v3rb0 Posted August 29, 2006 Report Share Posted August 29, 2006 tāpēc ka ps atgriež kaut kādu textu un viss, bet top griežas visu laiku. Link to comment Share on other sites More sharing options...
cucumber Posted August 29, 2006 Author Report Share Posted August 29, 2006 Ka var izdarit ta ka es shella palaizu C++ nokompiletu failu, kursh uztaisa citu failu. exec('createfile.exe', $output, $return); ? Kas notiks ar procesu, tas fails izpildisies un pazudis vai ka Link to comment Share on other sites More sharing options...
Delfins Posted August 29, 2006 Report Share Posted August 29, 2006 ja pareizi atceros: top -n 1 !? imho, RTFM!!! (--help) Link to comment Share on other sites More sharing options...
cucumber Posted August 29, 2006 Author Report Share Posted August 29, 2006 top -n 1, uz php neiet Specifies the maximum number of iterations, or frames, top should produce before ending. Link to comment Share on other sites More sharing options...
Delfins Posted August 29, 2006 Report Share Posted August 29, 2006 izpildi konsolē... topam ir `jānobeidzās` pēc vien freima... bet imho viņš citā pipe-ā zīmē.. tā kā nāksies tev čakarēties ar paipiem... (stipri šaubos ka tev pa spēkam, ņemot vērā iepriekšējos topikus) Link to comment Share on other sites More sharing options...
cucumber Posted August 29, 2006 Author Report Share Posted August 29, 2006 Kas isti exec japadot, lai palaistu failu uz windows sistemas "/D/B pathtofile/file.exe", vai ka ir pareizak? Link to comment Share on other sites More sharing options...
Delfins Posted August 29, 2006 Report Share Posted August 29, 2006 (edited) failu lasa, nevis palaiž, palaiž programmu... Edited August 29, 2006 by Delfins Link to comment Share on other sites More sharing options...
cucumber Posted August 29, 2006 Author Report Share Posted August 29, 2006 (edited) ir nocompilets uz c++ (1991) programma ka tad vinu var palaist (win os)? Edited August 29, 2006 by cucumber Link to comment Share on other sites More sharing options...
bubu Posted August 29, 2006 Report Share Posted August 29, 2006 fails.exe Link to comment Share on other sites More sharing options...
tiy Posted September 19, 2006 Report Share Posted September 19, 2006 Ir programma, kura sanem parametrus, no shella, ieksh windows viss ir stradanevainojami CMD.EXE vai CMD.EXE [log] ,programma palaizas izvadas ka log fails ir veigsmigi uztaisits, bet uz linux kaut ko vispar nepalaizas return 127. Ka pareizi sho pashu programmnu var palaist uz linux'a.?<?php $last = exec('CMD.EXE [log]', $output, $return); print_r($output); echo "Return [$return]"; ?> pati programma http://tiy.codeff.com/CMD.EXE Link to comment Share on other sites More sharing options...
Klez Posted September 19, 2006 Report Share Posted September 19, 2006 (edited) linux != windows + lai uz linux palaistu failu, tam jaapieshkir premisijas (lai tas buutu izpildaams [+x]) Edited September 19, 2006 by Klez Link to comment Share on other sites More sharing options...
Delfins Posted September 20, 2006 Report Share Posted September 20, 2006 kas tas pat cmd.exe?... uz linuxa to var dabūt tikai izmantojot kādu emulatoru (ja gribi tieši to programmu un kurai nav linux versija) Link to comment Share on other sites More sharing options...
tiy Posted September 20, 2006 Report Share Posted September 20, 2006 ir kads c vai c++ compilators, kas uz windows comile exe failu, ka prieksh linux sistemas? cmd.exe ir tikai tads faila nosaukums, tik pat labu varetu but fails.exe , abc utt Link to comment Share on other sites More sharing options...
Delfins Posted September 20, 2006 Report Share Posted September 20, 2006 rofl, domā ko runā. binārie linux un windows ir tāpat kā balts pret melnu - citi libi, cits binārais kods. Var vienīgi uztaisīt `portu`, kurš kompilēsies gan vienā, gan otrā, gan citā... Link to comment Share on other sites More sharing options...
Recommended Posts