ubuntu >導向不能用在subprocess - Linux

By Rae
at 2021-05-24T19:03
at 2021-05-24T19:03
Table of Contents
各位前輩您好,由於不知道要放在linux還是python版,若有錯版我會馬上刪文
當我在terminal執行sudo ./sync_to_gps8 >123.txt時,都能夠順利執行,但因為我需要
用python去統整,所以我使用了python的subprocess 模組,但是當我一樣執行sudo ./sy
nc_to_gps8 >123.txt,卻遇到了這個問題,但我也不知道這是錯在哪裡,希望各位前輩
指導,謝謝各位前輩
正常在terminal執行:
https://i.imgur.com/m3CBuSH.jpg
用subprocess模組執行(發生錯誤):
https://i.imgur.com/y9fmwq9.jpg
程式碼:
https://i.imgur.com/dmIp5Dk.jpg
--
當我在terminal執行sudo ./sync_to_gps8 >123.txt時,都能夠順利執行,但因為我需要
用python去統整,所以我使用了python的subprocess 模組,但是當我一樣執行sudo ./sy
nc_to_gps8 >123.txt,卻遇到了這個問題,但我也不知道這是錯在哪裡,希望各位前輩
指導,謝謝各位前輩
正常在terminal執行:
https://i.imgur.com/m3CBuSH.jpg

用subprocess模組執行(發生錯誤):
https://i.imgur.com/y9fmwq9.jpg

程式碼:
https://i.imgur.com/dmIp5Dk.jpg

--
Tags:
Linux
All Comments

By James
at 2021-05-25T14:18
at 2021-05-25T14:18

By Kelly
at 2021-05-26T09:33
at 2021-05-26T09:33

By Hedda
at 2021-05-27T04:48
at 2021-05-27T04:48

By Sierra Rose
at 2021-05-28T00:03
at 2021-05-28T00:03

By Jacob
at 2021-05-28T19:18
at 2021-05-28T19:18

By Rachel
at 2021-05-29T14:33
at 2021-05-29T14:33

By Zenobia
at 2021-05-30T09:48
at 2021-05-30T09:48

By Irma
at 2021-05-31T05:03
at 2021-05-31T05:03

By Madame
at 2021-06-01T00:18
at 2021-06-01T00:18

By Candice
at 2021-06-01T19:33
at 2021-06-01T19:33

By Oliver
at 2021-06-02T14:49
at 2021-06-02T14:49

By Isla
at 2021-06-03T10:04
at 2021-06-03T10:04

By Agnes
at 2021-06-04T05:19
at 2021-06-04T05:19

By Erin
at 2021-06-05T00:34
at 2021-06-05T00:34

By Brianna
at 2021-06-05T19:49
at 2021-06-05T19:49

By Suhail Hany
at 2021-06-06T15:04
at 2021-06-06T15:04

By Hedwig
at 2021-06-07T10:19
at 2021-06-07T10:19

By Oscar
at 2021-06-08T05:34
at 2021-06-08T05:34

By Margaret
at 2021-06-09T00:49
at 2021-06-09T00:49

By Robert
at 2021-06-09T20:04
at 2021-06-09T20:04

By Tom
at 2021-06-10T15:19
at 2021-06-10T15:19

By Audriana
at 2021-06-11T10:34
at 2021-06-11T10:34
Related Posts
請問有熟rapidminer資料探勘工具的人嗎?

By George
at 2021-05-23T08:38
at 2021-05-23T08:38
args特殊字元輸入請益

By Regina
at 2021-05-21T23:53
at 2021-05-21T23:53
Linux 學習資源請益

By John
at 2021-05-21T20:57
at 2021-05-21T20:57
有使用Debian10安裝Bugzilla 成功過的嗎?

By Mary
at 2021-05-21T16:04
at 2021-05-21T16:04
Parallel --retries使用上的問題

By Una
at 2021-05-21T13:08
at 2021-05-21T13:08