auto run
This commit is contained in:
parent
a778e1f48e
commit
3f13931f13
@ -13,6 +13,7 @@ import datetime
|
||||
import threading
|
||||
import csv
|
||||
import pexpect
|
||||
import time
|
||||
from multiprocessing import Process
|
||||
from subprocess import Popen, PIPE
|
||||
#stock_ticker = StockTicker()
|
||||
@ -32,8 +33,10 @@ ALLOWED_EXTENSIONS = {'csv', 'png'}
|
||||
#ticker.stdin.write(b'from server')
|
||||
#print(ticker.stdout.readlines())
|
||||
#(output, errs)
|
||||
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
|
||||
|
||||
time.sleep(10) # let api calls finish
|
||||
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
|
||||
ticker.sendline('S') # run by default
|
||||
#stock_ticker = StockTicker()
|
||||
|
||||
def allowed_file(filename):
|
||||
|
Loading…
Reference in New Issue
Block a user