root@center1:~/douyin/dyxbhjks5p73# ps -ef|grep msg_test
root 12511 869 0 12:47 pts/1 00:00:00 /usr/bin/python3 ./douyin/SecooShanghai/msg_test.py
root 13886 8786 2 13:15 pts/4 00:00:30 /usr/bin/python3 -u ./douyin/DYSECOO/msg_test.py
root 14601 14596 0 13:30 ? 00:00:00 /bin/sh -c /usr/bin/python3 -u ./douyin/dyxbhjks5p73/msg_test.py>>./douyin/dyxbhjks5p73/dyxbhjks5p73.log
root 14605 14597 0 13:30 ? 00:00:00 /bin/sh -c /usr/bin/python3 -u ./douyin/SecooShanghai/msg_test.py>>./douyin/SecooShanghai/SecooShanghai.log
root 14608 14605 2 13:30 ? 00:00:05 /usr/bin/python3 -u ./douyin/SecooShanghai/msg_test.py
root 14614 14601 2 13:30 ? 00:00:06 /usr/bin/python3 -u ./douyin/dyxbhjks5p73/msg_test.py
我在crontab 里面配置了
/bin/sh -c /usr/bin/python3 -u ./douyin/dyxbhjks5p73/msg_test.py>>./douyin/dyxbhjks5p73/dyxbhjks5p73.log
但是我在搜索ps -ef|grep msg_test 时候发现
怎么还有这个进程呢?
root 14614 14601 2 13:30 ? 00:00:06 /usr/bin/python3 -u ./douyin/dyxbhjks5p73/msg_test.py
不明白原因 这是为啥?
msg_test.py里面加个启动,结束的状态日志,怀疑是msg_test.py这个一直没有运行结束,进程还在运行中