5
Wykonaj i pobierz dane wyjściowe polecenia powłoki w node.js.
W node.js chciałbym znaleźć sposób na uzyskanie danych wyjściowych polecenia terminala systemu Unix. Czy jest na to sposób? function getCommandOutput(commandString){ // now how can I implement this function? // getCommandOutput("ls") should print the terminal output of the shell command "ls" }