Nodejs Childexec execute command for each line in file but wait for the first command to exit before running the next
问题 I am using nodejs to communicate with a casperjs script i have made. first of all i will tell you what my Casperjs script does. i have set it up with command line input. i the run this command casperjs script.js "Inputdata1" "inputdata2" this script then executes and visits one of my servers submits the input data 1 & 2. then waits for a server response and rights a line to one of 10 text files depending on the result the script gets from my server this then exit. this casperjs script works