-
-
Save mostafahussein/93188554c1ba055b65c0 to your computer and use it in GitHub Desktop.
Fire and Forget Salt module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import Popen | |
def start_server(): | |
cmd_str = 'sleep 60 && echo "hello!" >> /tmp/test.txt' | |
proc = Popen([cmd_str], shell=True, | |
stdin=None, stdout=None, stderr=None, close_fds=True) | |
return cmd_str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment