Skip to content

Instantly share code, notes, and snippets.

@xiaom
Last active Dec 19, 2015
Embed
What would you like to do?
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