Your Name 3 년 전
부모
커밋
a22d98b5a3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      hhh/aws-monitor/cl-test.py

+ 4 - 1
hhh/aws-monitor/cl-test.py

@@ -2,5 +2,8 @@ import subprocess
 cmd='aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=RunInstances --max-results 20 --region us-east-1'
 cmds=cmd.split(' ')
 cl=subprocess.run(cmds, capture_output=True)
-print(cl)
+
+lines=cl.readlines()
+
+print(lines)