Есть ли способ запустить os.system между разными хостами? Для удобства я хочу упаковать все команды linux в файл python и выполнить их между моим компьютером и внешней платой (coral dev board). Однако код останавливается один раз I mdt shell
(смена хоста) и продолжается только при I exit
и возвращении на начальный хост.
carl@carl-IdeaPad-L340-15IRH-Gaming:~/code_fyp$ python3 code.py --cmd=pose
29/03/2020--08:39
Waiting for a device...
Connecting to fyp at 192.168.0.109
/home/carl/code_fyp/retrain
100% |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| /home/carl/code_fyp/retrain...
Waiting for a device...
Connecting to fyp at 192.168.0.109
|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| /home/carl/code_fyp/pose/si
100% |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| /home/carl/code_fyp/pose/si...
Waiting for a device...
Connecting to fyp at 192.168.0.109
Linux fyp 4.14.98-imx #1 SMP PREEMPT Fri Nov 8 23:28:21 UTC 2019 aarch64
The programs included with the Mendel GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Mendel GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Mar 29 00:34:58 2020 from 192.168.0.110
mendel@fyp:
mendel@fyp:~$ exit
logout
Connection to fyp at 192.168.0.109 closed
mv: cannot stat 'simple_pose.py': No such file or directory
python3: can't open file '/home/carl/simple_pose.py': [Errno 2] No such file or directory
rm: cannot remove '/home/carl/simple_pose.py': No such file or directory
carl@carl-IdeaPad-L340-15IRH-Gaming:~/code_fyp$