Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. printf '#!/usr/bin/env mongo\nvar db = new Mongo().getDB("someDatabase");\ndb.dropDatabase();\n' >foo
  2. chmod 0755 foo
  3. ./foo >/dev/null 2>/dev/null && echo success with foo
  4. mv foo foo.js
  5. ./foo.js >/dev/null 2>/dev/null && echo success with foo.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement