5
नोड.जेएस में शेल कमांड का उत्पादन और निष्पादित करें
एक नोड.जेएस में, मैं एक यूनिक्स टर्मिनल कमांड के आउटपुट को प्राप्त करने का एक तरीका खोजना चाहता हूं। क्या इसे करने का कोई तरीका है? function getCommandOutput(commandString){ // now how can I implement this function? // getCommandOutput("ls") should print the terminal output of the shell command "ls" }