is it possible to run multiple linux command using PHP. I am using Mongodb database and if I want to import multiple collections, I am running the following command for each collection individually.
mongoimport --db test --collection colour --file colour.json
mongoimport --db test --collection shape --file shape.json
mongoimport --db test --collection size --file size.json
Now I have at least 10 collections and I have to run each of them individually in linux command line. There should be a better way to do this. What I am thinking is to write a php script which will do this for me.
Any idea, suggestions will be really helpful. Thanks in advance.