MongoDB scripts triggered by cron - how to achieve reasonable password security
First.. It's better to use --eval='command' and not echo a string to mongo... What comes to that password, you could use -p $(cat /etc/secret/password) and files chmod is like 0400