从Linux上给Windows发送PopUp消息
2008-02-14 17:46
330 查看
把下面脚本保存为/usr/local/bin/net:
再给该文件加上执行权限,命令如下:
#chmod +x /usr/local/bin/net
使用net脚本的例子如下:
#net send 192.168.12.1 "hello, Linux!"
#!/bin/bash #/usr/local/bin/net case “$1” in send) echo “$3”|smbclient -I “$2” -M `nmblookup -A “$2”|sed -e ‘1d’ -e ‘3,/*/d’|cut -f2|cut -d‘ ’ -f1` ;; *) echo “Usage:net send <IPaddr.> <message>” exit 1 esac |
#chmod +x /usr/local/bin/net
使用net脚本的例子如下:
#net send 192.168.12.1 "hello, Linux!"
相关文章推荐
- 关于C# windows发送消息
- linux 终端中向其他用户发送消息
- linux 终端中向其他用户发送消息
- linux 终端中向其他用户发送消息
- JavaMail在Windows平台下正常发送邮件,部署到Linux后则发送失败
- 如何在Qt中处理(接收/发送)MFC或Windows消息(message)
- Linux--网络通信命令(给其它用户发送广播消息)
- Linux的消息队列,Windows的邮件槽,使用有感
- 自己主动化脚本ssh以及telnet发送命令并退出(windows和linux都适用)
- C# 重写WndProc 拦截 发送 系统消息 + windows消息常量值(2)
- 关于Windows消息的发送和接收入门
- ROS_Kinetic_26 使用rosserial_windows实现windows与ROS master发送与接收消息
- Linux给指定用户或全部用户(已登录)发送消息
- C# 重写WndProc 拦截 发送 系统消息 + windows消息常量值(2)
- [原创]C#应用WindowsApi实现查找\枚举(FindWindow、EnumChildWindows)窗体控件,并发送消息。
- Windows 消息发送顺序!!
- linux 终端中向其他用户发送消息
- linux 终端中向其他用户发送消息
- linux 终端中向其他用户发送消息
- linux向用户发送消息