Read remote file using python subprocess and ssh?

前端 未结 4 1168
感情败类
感情败类 2021-02-10 02:25

How can I read data from a big remote file using subprocess and ssh?

4条回答
  •  不知归路
    2021-02-10 03:22

    Use iter with readline to read each full line:

    for i in iter(f.stdout.readline,"")
    

提交回复
热议问题