实现linux于windows双向收发消息!!

由 Snoopy 在 07-01-2003 10:05 发表:

实现linux于windows双向收发消息!!

1.我能像2k一样在linux下使用net send发送消息吗?

A.可以,easy点的, echo "hello baby!"|smbclient -M nukq(计算机名)

稍微高档点的,安装一个叫LinPopUp的图形前端,还是比较好使的哦

2.那我怎么接收人家发给我的消息呢?

A.稍为不easy一点,首先你要安装并运行samba(要不也不会有smbclient这东东了^-^),

然后修改smb.conf 一般位于/etc/samba/smb.conf

在[global]段加如下内容:

a. 如果你想把消息发到邮箱

message command = cat %s |mail root -s "PopMsg from f-%m";rm %s;

b. 如果你想再加点效果

message command = cat %s |mail root -s "PopMsg form f-%m";

/usr/local/bin/beep -f800 -l100 -D100 -n -f800 -l100 -D100 -n -f800 -l100;rm

%s;

(说明:写成一行,beep是一个小工具,用于发出一定频率的叫声.这样,有人发消息给你,就会

听到三声"嘟嘟嘟"的叫声,然后你打入mail,是不是有标题"PopMsg from:xxx"的邮件)

c. 如果你安装了LinPopUp,那么再让我们完善点

message command = cat %s |mail root -s "PopMsg form f-%m";/

usr/local/bin/beep -f800 -l100 -D100 -n -f800 -l100 -D100 -n -f800 -l100;

/usr/local/bin/LinPopUp "%f" "%m" %s; rm %s

(注意,还是要写成一行,好了,听到"嘟嘟嘟"

mail察看.或者打开LinPopUp察看,它有历史功能,可以察看前面的信息,可以直接回复..

桌面上做个LinPopUp的快捷方式,太方便了 yiyayiyayi~~~~

)

注意:编译安装LinPopUp的时候,把目录里的 i18npatch等那些补丁文件打上.

要不然LinPoUp中会不能输入和显示中文消息的.


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 07-01-2003 10:33 发表:


echo "hello baby!"|smbclient -M nukq(计算机名)

不行啊,然后我改成

echo "hello baby!"|smbclient -i ip也不行

谁知道可以帮帮我呢??


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 hongfeng 在 07-01-2003 11:15 发表:


echo "hellp" | smbclient -M 机器名


比石头更坚硬的是水滴;

比水滴更坚硬的是时间。


由 Snoopy 在 07-01-2003 13:51 发表:


可以变成ip的而不要机器名的吗 ???


And then in the evening light, when the bars of freedom

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus