Feb-10-2021, 08:05 PM
Try
import subprocess as sub sub.call(["sh", "/home/pi/MagicMirror/restartMM.sh"])
executing a bash file - revisited
|
|
Messages In This Thread |
executing a bash file - revisited - by ebolisa - Feb-09-2021, 08:56 PM
RE: executing a bash file - revisited - by Serafim - Feb-09-2021, 10:28 PM
RE: executing a bash file - revisited - by BashBedlam - Feb-09-2021, 10:28 PM
RE: executing a bash file - revisited - by ebolisa - Feb-10-2021, 11:06 AM
RE: executing a bash file - revisited - by BashBedlam - Feb-10-2021, 04:38 PM
RE: executing a bash file - revisited - by ebolisa - Feb-10-2021, 04:57 PM
RE: executing a bash file - revisited - by BashBedlam - Feb-10-2021, 05:16 PM
RE: executing a bash file - revisited - by Gribouillis - Feb-10-2021, 08:05 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Function not executing each file in folder | mathew_31 | 9 | 4,142 |
Aug-22-2022, 08:40 PM Last Post: deanhystad |
|
Showing and saving the output of a python file run through bash | Rim | 3 | 5,640 |
Oct-06-2021, 10:48 AM Last Post: gerpark |
|
file.write stops while true loop from executing in python3 | boonr | 3 | 3,993 |
Mar-25-2019, 12:50 PM Last Post: ichabod801 |
|
Executing external Python file in background and get output in python | nakiscia | 0 | 5,485 |
Feb-15-2018, 02:07 PM Last Post: nakiscia |
|
executing a file saved in memory | Skaperen | 0 | 2,915 |
Sep-04-2017, 04:23 AM Last Post: Skaperen |