[so] [Tema1][Windows]Comanda sort test 9

Radu Ciobanu crusher2004ro at yahoo.com
Sat Mar 28 10:00:14 EET 2009


Iata un output al unei comenzi simple sort si al comenzii din testul 9:

Administrator at scarlet:~/Test_mini-shell_win$ ./mini-shell.exe 
> ls -l .. | tr -s ' ' | cut -d ' ' -f 2 > fisier.txt
> cat fisier.txt
0
3
2
4
2
> sort fisier.txt
?????
> ls -l .. | tr -s ' ' | cut -d ' ' -f 2 | sort
?????
> sort --help
--helpThe system cannot find the file specified.
> exit
Administrator at scarlet:~/Test_mini-shell_win$ 


Modul in care creez procesul este
CreateProcess(NULL, command_string, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &startup_info, &process_info);
unde command_string in cazul exemplului este "sort fisier.txt" (am verificat). Mai vorbeam ieri cu un coleg, si la rularea comenzii sort pentru acelasi fisier are acelasi output ca si mine.


      


More information about the so mailing list