I am writing a C++ program for MAC OSX and I have a third parity program "parse" which is for uploading some .js to their server. There are just few cmd line to run in Terminal.
>parse new [folder]
Login>[email]
Pw>[pw]
projectID>[pid]
I want to auto. this process in my program, but I don't know how to pack all cmd togather.
when I call system("parse new [folder] && [email] && [pw] && [pid]");
the process hold at Login>
then I call system("parse new [folder] && wait && [email] && wait && [pw] && wait && [pid]");
it still hold at Login>
I would like to ask how can I input parameters for the cmd? thanks