钉钉实现用户登陆服务器发出提示消息
1.再钉钉群中找到智能群助手
2.选择添加机器人
3.选择自定义机器人
4.按照提示创建机器人。
5.复制登陆的webhook,将会用来发送钉钉消息。
6.在服务器编写shell脚本,因为要实现用户登录就触发脚本,所有脚本可以放在全局变量中,/etc/profile.d/中。
vim /etc/profile.d/logininfo.sh
(1)适用于centos6
#!/bin/bash
ip=`ifconfig |grep "inet add...
原创
2020-05-21 14:46:47 ·
935 阅读 ·
0 评论