linux 脚本问题求解

root@center1:~# ps -ef|grep msg_test
root       683   675  0 11:00 ?        00:00:00 /bin/sh -c /usr/bin/python3 -u ./douyin/DYSECOO/msg_test.py>>./douyin/DYSECOO/DYSECOO.log
root       687   668  0 11:00 ?        00:00:00 /bin/sh -c /usr/bin/python3 -u ./douyin/SecooShanghai/msg_test.py>>./douyin/SecooShanghai/SecooShanghai.log
root       693   674  0 11:00 ?        00:00:00 /bin/sh -c /usr/bin/python3  -u ./douyin/panjian99/msg_test.py>>./douyin/panjian99/panjian99.log
root       697   683  3 11:00 ?        00:00:01 /usr/bin/python3 -u ./douyin/DYSECOO/msg_test.py
root       698   687  3 11:00 ?        00:00:01 /usr/bin/python3 -u ./douyin/SecooShanghai/msg_test.py
root       699   693  3 11:00 ?        00:00:01 /usr/bin/python3 -u ./douyin/panjian99/msg_test.py
root       862 31696  0 11:00 pts/3    00:00:00 grep --color=auto msg_test
root     31133     1  2 10:30 ?        00:00:45 /usr/bin/python3 -u ./douyin/SecooShanghai/msg_test.py

现在通过linux 查找获得第一个参数(./douyin/DYSECOO/msg_test.py)
然后通过这个参数里面的"DYSECOO","SecooShanghai"这个关键词 是否运行这个下面的脚本,(./douyin/DYSECOO/msg_test.py)(./douyin/SecooShanghai/msg_test.py)

最佳答案

这人是机器人