Skip to content

Instantly share code, notes, and snippets.

Last active Dec 19, 2015
What would you like to do?
incorporating with cmp.sql
import shlex, subprocess
raw_args = "sqlcmd -S -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