Skip to content

Instantly share code, notes, and snippets.

@suuuch
suuuch / subprocess_run_shell.py
Last active April 24, 2019 02:43
Use Subprocess run shell
#coding = utf8
from builtins import bytes
import os
import signal
import logging
from subprocess import Popen, STDOUT, PIPE
from tempfile import gettempdir, NamedTemporaryFile
class BashOperator(object):