Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf '#!/usr/bin/env mongo\nvar db = new Mongo().getDB("someDatabase");\ndb.dropDatabase();\n' >foo
- chmod 0755 foo
- ./foo >/dev/null 2>/dev/null && echo success with foo
- mv foo foo.js
- ./foo.js >/dev/null 2>/dev/null && echo success with foo.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement