Apr 14, 2017 10:47 AM
(This post was last modified: Apr 14, 2017 11:27 AM by TheWarOwl.)
NEVERMIND! Here's a working example for anyone interested:
PHP Code
<?php
import subprocess
cmd = 'script.py' #How I'd start the script in cmd
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
out, err = p.communicate()
result = out.split('\n')
for lin in result:
if not lin.startswith('#'):
print(lin)
![[Image: 5BgQiIm.gif]](https://i.imgur.com/5BgQiIm.gif)

