shell 脚本执行方式 echo "show collections;" | mongo -u admin -p passw0rd table_name --shell 转载于:https://my.oschina.net/u/2328235/blog/1509661