许多人认为,这段代码应该同时运行。所有这一切只是运行文件,但它总是留下一个随机文件等待接收输入。你知道吗
#!/bin/bash
echo "SCRIPT START"
echo "user = ${USER}"
cd
service nginx start
cd /var/app/scripts
python script_reset.py -1
python script_print_ticket.py 18 &
python script_reset.py 23 &
python script_balcony.py 5 1 &
python script_balcony.py 6 2 &
python script_balcony.py 13 3 &
python script_balcony.py 19 4 &
python script_balcony.py 26 5 &
在每个python文件中,我都使用GPIO输入(来自Raspberry Pi的pin),但我认为这是不相关的,但不管怎样。你知道吗
while True:
#Read button input status
btn_input_state = GPIO.input(button)
谢谢你
卢卡斯
为什么不在一个
.py
中运行这些?例如:
相关问题 更多 >
编程相关推荐