Skip to content

Instantly share code, notes, and snippets.

@xiaom
Last active December 19, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaom/5945903 to your computer and use it in GitHub Desktop.
Save xiaom/5945903 to your computer and use it in GitHub Desktop.
incorporating with cmp.sql
import shlex, subprocess
raw_args = "sqlcmd -S cypress.csil.sfu.ca -d cmpt354_bank -i %s.sql"%(test)
args = shlex.split(raw_args)
output = subprocess.check_output(args)
print output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment