Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- # Compile the code
- subprocess.run(["gcc", "mycode.c", "-o", "mycode"])
- # Send data to the code base
- data = "Hello, world!"
- codebase_url = "http://example.com/codebase"
- # TODO: Send data to code base
- # Restart the code
- subprocess.run(["./mycode"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement