summaryrefslogtreecommitdiff
path: root/agent/apps/code
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-09-30 16:28:53 +0800
committershihaoyue <[email protected]>2024-09-30 16:28:53 +0800
commitdd3d1937cb29f67809a163adf37de86ba762b20b (patch)
tree4a45f46fd35b2f93296a08387f43d33fc006626e /agent/apps/code
parentd5a8e188c7ca3a4fb9916152d5e360221b2b57b6 (diff)
mod code list
Diffstat (limited to 'agent/apps/code')
-rw-r--r--agent/apps/code/test/README.md5
-rw-r--r--agent/apps/code/test/hello.py20
2 files changed, 0 insertions, 25 deletions
diff --git a/agent/apps/code/test/README.md b/agent/apps/code/test/README.md
deleted file mode 100644
index 91c1b86..0000000
--- a/agent/apps/code/test/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# 简介
-
-hello.py 是一个测试文件,用于验证主控端任务下发到代理执行的可行性
-
-hello.py接收一个字符串,并返回对应的执行输出,循环10次 \ No newline at end of file
diff --git a/agent/apps/code/test/hello.py b/agent/apps/code/test/hello.py
deleted file mode 100644
index e62e8a5..0000000
--- a/agent/apps/code/test/hello.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import subprocess
-
-proc = subprocess.Popen('/root/yserver/agent/apps/code/test/prober comm.e64.fun 10000 124.221.228.62 198.13.47.39 45.32.24.138',
- shell=True,
- stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT,
- universal_newlines=True,
- text=True,
- encoding='utf-8')
-
-# for line in proc.stdout:
-# print(line)
-while proc.poll() is None:
-
- line = proc.stdout.readline()
- if line:
- # 发送每行日志到服务器
- print(line)
-
-proc.stdout.close()