2021年1月12日

Shell 脚本查看是谁调用的自己

摘要: 用 ps aux | grep shell_script_name 可以看到父进程,也就是调用者。 output = 'ps aux | grep shell_script_name' logger -s $output 可以把结果记录在 syslog 里面 ps aux | grep system 阅读全文

posted @ 2021-01-12 09:36 liujx2019 阅读(1568) 评论(0) 推荐(0)

导航