我试图通过python跟踪文件的内容。我使用的代码如下所示# Call subprocess and get last 10 lines from file
spTailFile = subprocess.Popen(["tailfilepath执行tail命令,我将看到输出。tail -10 /hostname/user/app/fil
我正在试图读取文件名和文件标记的两个命名方案中的每一个最近的文件,如代码所示。我有以下代码,大致如下: p2 = subprocess.Popen(getmostrecent_cmd.split(), stdin=p1.stdoutpath/to/file/*CA*.txt: No such file or direc