orion-muf / KHU-2017-2-Capstone2-RENEW

0 stars 0 forks source link

JS에서 shell 명령 실행하기 #18

Open muf opened 6 years ago

muf commented 6 years ago

03 router.post('/apsp1_test', function (req, res, next) { 104 console.log('post /apsp1_test'); 105 var option = { 106 mode: 'text', 107 pythonPath: '', 108 pythonOptions: ['-u'], 109 scriptPath: './private/python/', 110 args: [req.body['path'], req.body['option']], 111 code: 'apsp_cluster_module.py' 112 }; 113 get_JSON_from_python(req,res,option); 114 });