Created
September 26, 2014 03:40
-
-
Save rajiteh/18554cd875e64124b4c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#mongod on terminal with logging to stdout (so dirty it smells) | |
#alias to 'mongod' for extra points | |
tail -f /usr/local/var/log/mongodb/mongo.log &;mongod --config /usr/local/etc/mongod.conf;kill $(ps | grep 'tail -f /usr/local/var/log/mongodb/mongo.log' | head -1 | awk '{ print $1 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment